实验23 IPv6隧道配置
实验拓扑图,:
IPv6隧道配置实验拓扑图
实验说明:
;
本实验是在IPv6基础配置实验基础上做的,通过隧道的方式使两路由器loopback接口所连的IPv6网络互通
预配置:
同IPv6基础配置实验的配置,将两个F0/0口的IPv6地址去除,配置IPv4地址:
R1(config)#int f0/0
R1(config-if)#no ipv6 address
R1(config-if)#ip address
R2(config)#int f0/0
R2(config-if)#no ipv6 address
R2(config-if)#ip address
配置及调试过程:
在R1上设置tunnel:
R1(config)#interface tunnel 0 //设置tunnel 0
R1(config-if)#tunnel source f0/0 //设置tunnel 0的源
R1(config-if)#tunnel destination //设置tunnel 0的目的
R1(config-if)#ipv6 address 2001::1/64 //给tunnel 0配置IPv6地址
R1(config-if)#tunnel mode ipv6ip //将tunnel 0的模式配置为IPv6IP
在R2上设置tunnel:
R2(config-if)#int tu 0
R2(config-if)#tunnel source f0/0
R2(config-if)#tunnel destination
R2(config-if)#ipv6 address 2001::2/64
R2(config-if)#tunnel mode ipv6ip
测试隧道连通性:
R2(config-if)#do ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:
!!!!!
ess rate is 100 percent (5/5), round-trip min/avg/max = 4/16/40 ms
R2(config-if)#do ping 2001::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
!!!!!
ess rate is 100 percent (5/5), round-trip min/avg/max = 8/22/36 ms
配置IPv6路由:
R1(config)#ipv6 route 2::/64 tunnel 0
R2(config)#ipv6 route 1::/64 tunnel 0
测试IPv6网络连通性并调试IP报文:
R1(c
实验23 IPv6隧道配置 来自淘豆网m.daumloan.com转载请标明出处.