赞
踩
如图1所示,两台IPv6主机分别通过SwitchA和SwitchC与IPv4骨干网络连接,客户希望两台IPv6主机能通过IPv4骨干网互通。
配置IPv6 over IPv4手动隧道的思路如下:
配置IPv4网络。配置接口的IPv4地址和静态路由,使SwitchA、SwitchB和SwitchC三者之间路由互通。
配置IPv6网络。配置隧道边界设备(SwitchA和SwitchC)的IPv6地址,使隧道边界设备与下挂的IPv6主机之间网络互通。
配置IPv6 over IPv4手动隧道。配置隧道接口的IPv6地址、协议类型、源接口和目的地址,使IPv6报文可以在IPv4网络中传输。
配置IPv6报文指向隧道的静态路由,从而使IPv6报文进入隧道。
做业务环回聚合的接口必须是空闲的,没有承载业务的接口。
在Eth-Trunk接口上使能业务环回功能后,加入Eth-Trunk中的物理接口就会处于UP状态,否则Tunnel接口的链路层协议将无法正常运行。
SwitchA的配置文件
# sysname SwitchA # ipv6 # vlan batch 10 100 # interface Vlanif10 ipv6 enable ipv6 address FC00:1::1/64 # interface Vlanif100 ip address 192.168.50.2 255.255.255.0 # interface Eth-Trunk1 stp disable service type tunnel # interface GigabitEthernet0/0/1 port link-type hybrid port hybrid pvid vlan 100 port hybrid untagged vlan 100 # interface GigabitEthernet0/0/2 port link-type access port default vlan 10 # interface GigabitEthernet0/0/3 eth-trunk 1 # interface Tunnel0/0/0 ipv6 enable ipv6 address FC00:3::1/64 tunnel-protocol ipv6-ipv4 source Vlanif100 destination 192.168.51.2 eth-trunk 1 # ip route-static 192.168.51.0 255.255.255.0 192.168.50.1 # ipv6 route-static FC00:2:: 64 Tunnel0/0/0 # return
SwitchB的配置文件
# sysname SwitchB # vlan batch 100 200 # interface Vlanif100 ip address 192.168.50.1 255.255.255.0 # interface Vlanif200 ip address 192.168.51.1 255.255.255.0 # interface GigabitEthernet0/0/1 port link-type hybrid port hybrid pvid vlan 100 port hybrid untagged vlan 100 # interface GigabitEthernet0/0/2 port link-type hybrid port hybrid pvid vlan 200 port hybrid untagged vlan 200 # return
SwitchC的配置文件
# sysname SwitchC # ipv6 # vlan batch 20 200 # interface Vlanif20 ipv6 enable ipv6 address FC00:2::2/64 # interface Vlanif200 ip address 192.168.51.2 255.255.255.0 # interface Eth-Trunk1 stp disable service type tunnel # interface GigabitEthernet0/0/1 port link-type hybrid port hybrid pvid vlan 200 port hybrid untagged vlan 200 # interface GigabitEthernet0/0/2 port link-type access port default vlan 20 # interface GigabitEthernet0/0/3 eth-trunk 1 # interface Tunnel1 ipv6 enable ipv6 address FC00:3::2/64 tunnel-protocol ipv6-ipv4 source Vlanif200 destination 192.168.50.2 eth-trunk 1 # ip route-static 192.168.50.0 255.255.255.0 192.168.51.1 # ipv6 route-static FC00:1:: 64 Tunnel1 # return
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。