华为eNSP IPv6 over IPv4隧道配置
配置思路
1、配置各个路由器IP地址。 2、配置IPv4路由,把IPv4网络打通,本次实验我就使用静态路由。 3、配置tunnel隧道,协议使用ipv6-toipv4 4、AR1和AR3各配了环回口lo 0,用来模拟电脑PC,使用IPv6. 5、配置IPv6默认路由。
AR1配置
ipv6 interface GigabitEthernet0/0/0 ip address 12.1.1.1 255.255.255.0 interface LoopBack0 ipv6 enable ipv6 address 2021::10/64 # interface Tunnel0/0/1 ipv6 enable ipv6 address 2020::1/64 tunnel-protocol ipv6-ipv4 source GigabitEthernet0/0/0 destination 23.1.1.3 # ip route-static 0.0.0.0 0.0.0.0 12.1.1.2 # ipv6 route-static 2022:: 64 Tunnel0/0/1
AR2配置
interface GigabitEthernet0/0/0 ip address 12.1.1.2 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 23.1.1.2 255.255.255.0
AR3配置
ipv6 interface GigabitEthernet0/0/0 ip address 23.1.1.3 255.255.255.0 interface LoopBack0 ipv6 enable ipv6 address 2022::30/64 # interface Tunnel0/0/1 ipv6 enable ipv6 address 2020::2/64 tunnel-protocol ipv6-ipv4 source GigabitEthernet0/0/0 destination 12.1.1.1 # ip route-static 0.0.0.0 0.0.0.0 23.1.1.2 # ipv6 route-static 2021:: 64 Tunnel0/0/1
测试ipv连通性
验证tunnel接口IPv6的连通性:
验证AR1的lo 0 访问AR3 的lo 0 IPv6网络的连通性