6to4隧道(华为eNSP)

文章描述了一个网络拓扑,其中包含三台路由器R1,R2,R3,每台路由器配置了IPv4和IPv6地址,以及6to4隧道。路由器通过OSPF协议进行路由交换,并使用静态IPv6路由。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、拓扑如下:

 ipv4地址:1.1.1.1 对应 2002:101:101:ffff::1中0101:0101

2、路由器配置

(1)R1配置

interface GigabitEthernet0/0/0
 ip address 10.0.13.1 255.255.255.0 
#
interface LoopBack0
 ip address 1.1.1.1 255.255.255.255 
#
interface LoopBack1
 ipv6 enable 
 ipv6 address 2002:101:101:FFFF::1/64 
#
interface Tunnel0/0/0
 ipv6 enable 
 ipv6 address 2001:13::1/64 
 tunnel-protocol ipv6-ipv4 6to4
 source 1.1.1.1
#
ospf 1 router-id 1.1.1.1 
 area 0.0.0.0 
  network 1.1.1.1 0.0.0.0 
  network 10.0.13.1 0.0.0.0 
#
ipv6 route-static 2002:: 16 Tunnel0/0/0

(2)R2配置

interface GigabitEthernet0/0/0
 ip address 10.0.13.2 255.255.255.0 
#
interface LoopBack0
 ip address 2.2.2.2 255.255.255.255 
#
interface LoopBack1
 ipv6 enable 
 ipv6 address 2002:202:202:FFFF::2/64 
#
interface Tunnel0/0/0
 ipv6 enable 
 ipv6 address 2001:13::2/64 
 tunnel-protocol ipv6-ipv4 6to4
 source 2.2.2.2
#
ospf 1 router-id 2.2.2.2 
 area 0.0.0.0 
  network 2.2.2.2 0.0.0.0 
  network 10.0.13.2 0.0.0.0 
#
ipv6 route-static 2002:: 16 Tunnel0/0/0

(3)R3配置

interface GigabitEthernet0/0/0
 ip address 10.0.13.3 255.255.255.0 
#
interface LoopBack0
 ip address 3.3.3.3 255.255.255.255 
#
interface LoopBack1
 ipv6 enable 
 ipv6 address 2002:303:303:FFFF::3/64 
#
interface Tunnel0/0/0
 ipv6 enable 
 ipv6 address 2001:13::3/64 
 tunnel-protocol ipv6-ipv4 6to4
 source 3.3.3.3
#
ospf 1 router-id 3.3.3.3 
 area 0.0.0.0 
  network 3.3.3.3 0.0.0.0 
  network 10.0.13.3 0.0.0.0 
#
ipv6 route-static 2002:: 16 Tunnel0/0/0

3、实验结果

 

 SLA:65535 对应 2002:202:202:ffff::2中的 ffff

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值