Mục tiêu thực hành:
- Cấu hình cơ bản và GRE VPN trên Cisco Router.
- Cấu hình GRE VPN trên Firewall Juniper SSG 320M bằng CLI.
- Kiểm tra kết nối GRE VPN trên Firewall Juniper SSG 320M bằng CLI.
Các bước triển khai:
Cấu hình cơ bản và GRE VPN trên Cisco Router.
interface f0/0ip address 10.10.10.1 255.255.255.0no shutdownexitinterface f0/1ip address 192.168.90.120 255.255.255.0no shutdownexitip route 0.0.0.0 0.0.0.0 192.168.90.254ip route 192.168.1.0 255.255.255.0 Tunnel0line vty 0 4privilege level 15no logintransport input telnet sshexit
interface Tunnel0ip address 10.1.1.2 255.255.255.0tunnel source FastEthernet0/1tunnel destination 192.168.100.54exit
Cấu hình GRE VPN trên Firewall Juniper SSG 320M bằng CLI.
SSG320M-> set interface ethernet0/0 ip 198.168.1.1/24SSG320M-> set interface ethernet0/2 ip 198.168.100.54/24SSG320M-> set interface tunnel.1 ip 10.1.1.1/24
SSG320M-> set interface tunnel.1 tunnel encap greSSG320M-> set interface tunnel.1 tunnel local-if ethernet0/2 dst-ip 192.168.90.120
SSG320M-> set policy id 1 from "Trust" to "Untrust" "192.168.1.0/24" "10.10.10.0/24" "ANY" permitSSG320M-> set policy id 2 from "Untrust" to "Trust" "10.10.10.0/24" "192.168.1.0/24" "ANY" permit
SSG320M-> set route 10.10.10.0/24 interface tunnel.1SSG320M-> set route 0.0.0.0/0 interface ethernet0/2 gateway 192.168.100.254
Kiểm tra kết nối GRE VPN trên Firewall Juniper SSG 320M bằng CLI.
SSG320M-> ping 10.10.10.1Type escape sequence to abortSending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 1 seconds!!!!!Success Rate is 100 percent (5/5), round-trip time min/avg/max=1/1/2 msSSG320M->
SSG320M-> get interface tunnel.1Interface tunnel.1:description tunnel.1number 20, if_info 20168, if_index 1, mode routelink readyvsys Root, zone Untrust, vr trust-vradmin mtu 1476, operating mtu 1476, default mtu 1500*ip 10.1.1.1/24*manage ip 10.1.1.1route-deny disablepmtu-v4 disabledping disabled, telnet disabled, SSH disabled, SNMP disabledweb disabled, ident-reset disabled, SSL disabledOSPF disabled BGP disabled RIP disabled RIPng disabled mtrace disabledPIM: not configured IGMP not configuredMLD not configuredNHRP disabledbandwidth: physical 0kbps, configured egress [gbw 0kbps mbw 0kbps]configured ingress mbw 0kbps, current bw 0kbpstotal allocated gbw 0kbpstunnel: local ethernet0/2, remote 192.168.90.120encap: GRE (1)keep-alive: off, interval 10(using default), threshold 3(using default)status: last send 0, last recv 0SSG320M->
SSG320M-> get interfaceA - Active, I - Inactive, U - Up, D - Down, R - ReadyInterfaces in vsys Root:Name IP Address Zone MAC VLAN State VSDeth0/0 192.168.1.1/24 Trust 3c94.d551.0d00 - U -eth0/1 0.0.0.0/0 DMZ 3c94.d551.0d05 - U -eth0/2 192.168.100.54/24 Untrust 3c94.d551.0d06 - U -eth0/3 0.0.0.0/0 HA 3c94.d551.0d07 - D -tun.1 10.1.1.1/24 Untrust N/A - R -vlan1 0.0.0.0/0 VLAN 3c94.d551.0d0f 1 D -null 0.0.0.0/0 Null N/A - U 0SSG320M->
SSG320M-> get policyTotal regular policies 3, Default deny, Software based policy search, new policy enabled.ID From To Src-address Dst-address Service Action State ASTLCB2 Trust Untrust 192.168.1.0~ 10.10.10.0/~ ANY Permit enabled ---X-X1 Trust Untrust Any Any ANY Permit enabled -----X3 Untrust Trust 10.10.10.0/~ 192.168.1.0~ ANY Permit enabled ---X-XSSG320M->
SSG320M-> get routeIPv4 Dest-Routes for <untrust-vr> (0 entries)--------------------------------------------------------------------------------------H: Host C: Connected S: Static A: Auto-ExportedI: Imported R: RIP P: Permanent D: Auto-DiscoveredN: NHRPiB: IBGP eB: EBGP O: OSPF E1: OSPF external type 1E2: OSPF external type 2 trailing B: backup routeIPv4 Dest-Routes for <trust-vr> (8 entries)--------------------------------------------------------------------------------------ID IP-Prefix Interface Gateway P Pref Mtr Vsys--------------------------------------------------------------------------------------* 5 0.0.0.0/0 eth0/2 192.168.100.254 S 20 1 Root* 8 10.1.1.1/32 tun.1 0.0.0.0 H 0 0 Root* 4 192.168.100.54/32 eth0/2 0.0.0.0 H 0 0 Root* 2 192.168.1.1/32 eth0/0 0.0.0.0 H 0 0 Root* 1 192.168.1.0/24 eth0/0 0.0.0.0 C 0 0 Root* 3 192.168.100.0/24 eth0/2 0.0.0.0 C 0 0 Root* 6 10.10.10.0/24 tun.1 0.0.0.0 S 20 1 Root* 7 10.1.1.0/24 tun.1 0.0.0.0 C 0 0 RootSSG320M->
Mọi thắc mắc các bạn vui lòng liên hệ với mình thông qua kênh Zalo (Jade Bùi) 076.877.2021.
0 comments