Mục tiêu thực hành:
- Cấu hình GRE VPN trên Cisco Router HROffice.RT.
- Cấu hình GRE VPN trên Cisco Router Site1.RT.
- Cấu hình GRE VPN trên Cisco Router Site2.RT.
- Cấu hình định tuyến Static Route trên các Cisco Router.
Truy cập vào "Lab 3-7 - Cau hinh GRE VPN tren Cisco Router v1" tại Public Unetlab Server 24/7 để thực hành.
Cấu hình GRE VPN trên Cisco Router HROffice.RT.
HROffice-RT>enableHROffice-RT#configure terminalEnter configuration commands, one per line. End with CNTL/Z.HROffice-RT(config)#interface tunnel1*Feb 23 09:40:30.943: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to downHROffice-RT(config-if)#ip address 172.16.0.1 255.255.255.252HROffice-RT(config-if)#tunnel source 203.0.3.2HROffice-RT(config-if)#tunnel destination 203.0.1.2*Feb 23 09:41:13.860: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to upHROffice-RT(config-if)#tunnel mode gre ipHROffice-RT(config-if)#endHROffice-RT#
HROffice-RT#configure terminalEnter configuration commands, one per line. End with CNTL/Z.HROffice-RT(config)#interface tunnel2*Feb 23 09:42:59.938: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel2, changed state to downHROffice-RT(config-if)#ip add 172.16.0.5 255.255.255.252HROffice-RT(config-if)#tunnel source 203.0.3.2HROffice-RT(config-if)#tunnel destination 203.0.2.2*Feb 23 09:43:29.993: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel2, changed state to upHROffice-RT(config-if)#tunnel mode gre ipHROffice-RT(config-if)#endHROffice-RT#
HROffice-RT#show running-config interface tunnel 1Building configuration...Current configuration : 119 bytes!interface Tunnel1ip address 172.16.0.1 255.255.255.252tunnel source 203.0.3.2tunnel destination 203.0.1.2endHROffice-RT#
HROffice-RT#show running-config interface tunnel 2Building configuration...Current configuration : 119 bytes!interface Tunnel2ip address 172.16.0.5 255.255.255.252tunnel source 203.0.3.2tunnel destination 203.0.2.2endHROffice-RT#
Cấu hình GRE VPN trên Cisco Router Site1.RT.
Site1-RT>enableSite1-RT#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Site1-RT(config)#interface tunnel 1*Feb 23 09:45:59.178: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to downSite1-RT(config-if)#ip address 172.16.0.2 255.255.255.252Site1-RT(config-if)#tunnel source 203.0.1.2Site1-RT(config-if)#tunnel destination 203.0.3.2*Feb 23 09:46:26.665: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to upSite1-RT(config-if)#tunnel mode gre ipSite1-RT(config-if)#endSite1-RT#
Site1-RT#show ip interface briefAny interface listed with OK? value "NO" does not have a valid configurationInterface IP-Address OK? Method Status ProtocolEthernet0/0 unassigned YES unset up upEthernet0/1 203.0.1.2 YES manual up upEthernet0/2 unassigned YES unset administratively down downEthernet0/3 unassigned YES unset administratively down downNVI0 unassigned NO unset up upTunnel1 172.16.0.2 YES manual up upSite1-RT#
Site1-RT#ping 172.16.0.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msSite1-RT#
Cấu hình GRE VPN trên Cisco Router Site2.RT.
Site2-RT>enableSite2-RT#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Site2-RT(config)#interface tunnel 2*Feb 23 09:49:35.721: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel2, changed state to downSite2-RT(config-if)#ip address 172.16.0.6 255.255.255.252Site2-RT(config-if)#tunnel source 203.0.2.2Site2-RT(config-if)#tunnel destination 203.0.3.2Site2-RT(config-if)#*Feb 23 09:50:10.508: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel2, changed state to upSite2-RT(config-if)#tunnel mode gre ipSite2-RT(config-if)#endSite2-RT#
Site2-RT#show ip interface briefAny interface listed with OK? value "NO" does not have a valid configurationInterface IP-Address OK? Method Status ProtocolEthernet0/0 unassigned YES unset up upEthernet0/1 203.0.2.2 YES manual up upEthernet0/2 unassigned YES unset administratively down downEthernet0/3 unassigned YES unset administratively down downNVI0 unassigned NO unset up upTunnel2 172.16.0.6 YES manual up upSite2-RT#
Site2-RT#ping 172.16.0.5Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.0.5, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msSite2-RT#
Cấu hình định tuyến Static Route trên các Cisco Router.
HROffice-RT#configure terminalEnter configuration commands, one per line. End with CNTL/Z.HROffice-RT(config)#ip route 172.16.1.0 255.255.255.0 tunnel1HROffice-RT(config)#ip route 172.16.2.0 255.255.255.0 tunnel2HROffice-RT(config)#endHROffice-RT#
Site1-RT#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Site1-RT(config)#ip route 10.0.0.0 255.255.255.0 tunnel1Site1-RT(config)#endSite1-RT#
Site2-RT#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Site2-RT(config)#ip route 10.0.0.0 255.255.255.0 tunnel2Site2-RT(config)#endSite2-RT#
Site2-RT#show running-config | include ip routeip route 0.0.0.0 0.0.0.0 203.0.2.1ip route 10.0.0.0 255.255.255.0 Tunnel2Site2-RT#
Site2-RT#show ip route staticCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop overrideGateway of last resort is 203.0.2.1 to network 0.0.0.0S* 0.0.0.0/0 [1/0] via 203.0.2.110.0.0.0/24 is subnetted, 1 subnetsS 10.0.0.0 is directly connected, Tunnel2Site2-RT#
Site2-RT#ping 10.0.0.1 source 172.16.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:Packet sent with a source address of 172.16.2.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msSite2-RT#
Tham khảo các videos lý thuyết Hướng dẫn thực hành CCNA R&S để biết thêm thông tin chi tiết.
Thực hành thêm các bài Lab cơ bản khác tại hạng mục Học Network CCNA R&S thông qua các bài thực hành.
0 comments