IPv6 over IPv4 GRE隧道(锐捷) 拓扑:
实验目的 R1的Loo0和R5的Loo0接口实现通信 操作步骤 1.路由器配置各接口IP R1(config)#ipv6 unicast-routing R1(config)#int g0/1 R1(config-if-GigabitEthernet 0/1)#no switchport R1(config-if-GigabitEthernet 0/1)#ipv6 enable R1(config-if-GigabitEthernet 0/1)#ipv6 address 2001:12:1:1::1/64 R1(config-if-GigabitEthernet 0/1)#exit R1(config)#int loo0 R1(config-if-Loopback 0)#ipv6 enable R1(config-if-Loopback 0)#ipv6 address 2001:194:1:10::254/128 R1(config-if-Loopback 0)#exit R2(config)#ipv6 unicast-routing R2(config)#int g0/1 R2(config-if-GigabitEthernet 0/1)#no switchport R2(config-if-GigabitEthernet 0/1)#ipv6 enable R2(config-if-GigabitEthernet 0/1)#ipv6 address 2001:12:1:1::254/64 R2(config-if-GigabitEthernet 0/1)#exit R2(config)#int g0/0 R2(config-if-GigabitEthernet 0/0)#no switchport R2(config-if-GigabitEthernet 0/0)#ip add 23.1.1.2 255.255.255.0 R2(config-if-GigabitEthernet 0/0)#exit R3(config)#int g0/0 R3(config-if-GigabitEthernet 0/0)#no switchport R3(config-if-GigabitEthernet 0/0)#ip add 23.1.1.3 255.255.255.0 R3(config-if-GigabitEthernet 0/0)#exit R3(config)#int g0/1 R3(config-if-GigabitEthernet 0/1)#no switchport R3(config-if-GigabitEthernet 0/1)#ip add 34.1.1.3 255.255.255.0 R3(config-if-GigabitEthernet 0/1)#exit R4(config)#int g0/1 R4(config-if-GigabitEthernet 0/1)#no switchport R4(config-if-GigabitEthernet 0/1)#ip add 34.1.1.4 255.255.255.0 R4(config-if-GigabitEthernet 0/1)#exit R4(config)#ipv6 unicast-routing R4(config)#int g0/0 R4(config-if-GigabitEthernet 0/0)#ipv6 add R4(config-if-GigabitEthernet 0/0)#no switchport R4(config-if-GigabitEthernet 0/0)#ipv6 enable R4(config-if-GigabitEthernet 0/0)#ipv6 address 2001:45:1:1::254/64 R4(config-if-GigabitEthernet 0/0)#exit R5(config)#ipv6 unicast-routing R5(config)#int g0/0 R5(config-if-GigabitEthernet 0/0)#no switchport R5(config-if-GigabitEthernet 0/0)#ipv6 enable R5(config-if-GigabitEthernet 0/0)#ipv6 address 2001:45:1:1::1/64 R5(config-if-GigabitEthernet 0/0)#exit R5(config)#int loo0 R5(config-if-Loopback 0)#ipv6 enable R5(config-if-Loopback 0)#ipv6 address 2001:195:1:10::254/128 R5(config-if-Loopback 0)#exit 2.R1和R2;R4和R5之间启用OSPFv3 R1(config)#ipv6 router ospf 1 R1(config-router)#router-id 1.1.1.1 Change router-id and update OSPFv3 process! [yes/no]:y R1(config-router)#exit R1(config)#int loo0 R1(config-if-Loopback 0)#ipv6 ospf 1 area 0 R1(config-if-Loopback 0)#exit R1(config)#int g0/1 R1(config-if-GigabitEthernet 0/1)#ipv6 ospf 1 area 0 R1(config-if-GigabitEthernet 0/1)#exit R2(config)#ipv6 router ospf 1 R2(config-router)#router-id 2.2.2.2 Change router-id and update OSPFv3 process! [yes/no]:y R2(config-router)#default-information originate always metric-type 1 R2(config-router)#exit R2(config)#int g0/1 R2(config-if-GigabitEthernet 0/1)#ipv6 ospf 1 area 0 R2(config-if-GigabitEthernet 0/1)#exit R4(config)#ipv6 router ospf 1 R4(config-router)#router-id 4.4.4.4 Change router-id and update OSPFv3 process! [yes/no]:y R4(config-router)#default-information originate always metric-type 1 R4(config-router)#exit R4(config)#int g0/0 R4(config-if-GigabitEthernet 0/0)#ipv6 ospf 1 area 0 R4(config-if-GigabitEthernet 0/0)#exit R5(config)#ipv6 router ospf 1 R5(config-router)#router-id 5.5.5.5 Change router-id and update OSPFv3 process! [yes/no]:y R5(config-router)#exit R5(config)#int loo0 R5(config-if-Loopback 0)#ipv6 ospf 1 area 0 R5(config-if-Loopback 0)#exit R5(config)#int g0/0 R5(config-if-GigabitEthernet 0/0)#ipv6 ospf 1 area 0 R5(config-if-GigabitEthernet 0/0)#exit 3.R2和R4分别写ipv4默认路由指向R3 R2(config)#ip route 0.0.0.0 0.0.0.0 23.1.1.3 R4(config)#ip route 0.0.0.0 0.0.0.0 34.1.1.3 4.R2和R4配置tunnel口 R2(config)#interface tunnel 0 R2(config-if-Tunnel 0)#tunnel mode gre ip R2(config-if-Tunnel 0)#tunnel source g0/0 R2(config-if-Tunnel 0)#tunnel destination 34.1.1.4 R2(config-if-Tunnel 0)#ipv6 enable R2(config-if-Tunnel 0)#ipv6 address 2001:24:1:1::1/64 R2(config-if-Tunnel 0)#exit R4(config)#int tunnel 0 R4(config-if-Tunnel 0)#tunnel mode gre ip R4(config-if-Tunnel 0)#tunnel source g0/1 R4(config-if-Tunnel 0)#tunnel destination 23.1.1.2 R4(config-if-Tunnel 0)#ipv6 enable R4(config-if-Tunnel 0)#ipv6 address 2001:24:1:1::2/64 R4(config-if-Tunnel 0)#exit 5.R2和R4配置IPv6默认路由 R2(config)#ipv6 route ::/0 tunnel 0 R4(config)#ipv6 route ::/0 tunnel 0 5.测试连通信 R1#ping 2001:195:1:10::254 source 2001:194:1:10::254 Sending 5, 100-byte ICMP Echoes to 2001:195:1:10::254, timeout is 2 seconds: < press Ctrl+C to break > !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 5/6/8 ms. R1#trace 2001:195:1:10::254 source 2001:194:1:10::254 < press Ctrl+C to break > Tracing the route to 2001:195:1:10::254 1 2001:12:1:1::254 1 msec <1 msec 2 msec 2 2001:12:1:1::254 <1 msec 2001:24:1:1::2 7 msec 3 msec 3 2001:195:1:10::254 10 msec 10 msec 11 msec R5#ping 2001:194:1:10::254 source 2001:195:1:10::254 Sending 5, 100-byte ICMP Echoes to 2001:194:1:10::254, timeout is 2 seconds: < press Ctrl+C to break > !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 5/6/7 ms. R5#trace 2001:194:1:10::254 source 2001:195:1:10::254 < press Ctrl+C to break > Tracing the route to 2001:194:1:10::254 1 2001:45:1:1::254 1 msec <1 msec <1 msec 2 2001:45:1:1::254 <1 msec 2001:24:1:1::1 1 msec 3 msec 3 2001:194:1:10::254 4 msec 6 msec 8 msec
2024最新激活全家桶教程,稳定运行到2099年,请移步至置顶文章:https://sigusoft.com/99576.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。 文章由激活谷谷主-小谷整理,转载请注明出处:https://sigusoft.com/63113.html