场景:AR1与AR3的Loopback0接口模拟IPv6客户,通过IPv6 Over IPv4手工隧道的方式进行互访,整体配置GRE和手工方式基本上配置一致,只需要修改一下tunnel-protocol即可配置如下:
AR1的配置:
#
sysname AR1
#
interface GigabitEthernet0/0/0
ip address 10.0.12.1 255.255.255.0
#
interface LoopBack0
ipv6 enable
ipv6 address FC00::1/128
#
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2000::1/64
tunnel-protocol ipv6-ipv4
#如果这里需要用IPv6 Over IPv4 GRE的方式需要修改 tunnel-protocol gre
source 10.0.12.1
destination 10.0.23.3
#
ospf 1
area 0.0.0.0
network 10.0.12.1 0.0.0.0
#
ipv6 route-static FC00::2 128 Tunnel0/0/0
#
return
实验结果:
报文封装方式:外层封装IPv4内层封装IPv6