linux 6to4 配置测试,65、IPv6配置实验之6to4 Tunnel

1、6to4 Tunnel解析

91392059c84bf25e5fdf2e33eeafe750.png

E0接口的网络号2002:c0a8:6301::/48的得来:

192.168.99.1转为16进制表示的话为c0a8:6301,在其前面加上20002:即可得到2002:c0a8:6301::/48的网络号。E0接口的IP地址可以手动配置,也可以通过eui-64自动生成。

2、实验拓扑

5dd43dab3c701c51c89c5c869bfee9c9.png

3、实验配置

R1配置

ipv6 unicast-routing

interface FastEthernet1/0

ipv6 address 2002:202:202::1/64

ipv6 ospf 110 area 0

interface FastEthernet2/0

ipv6 address 2002:202:202:15::1/64

ipv6 ospf 110 area 0

ipv6 router ospf 110

router-id 1.1.1.1

R2配置

ipv6 unicast-routing

interface Loopback0

ip address 2.2.2.2 255.255.255.0

interface Tunnel2

ipv6 unnumbered FastEthernet1/0

tunnel source Loopback0

tunnel mode ipv6ip 6to4

interface FastEthernet1/0

ipv6 address 2002:202:202::2/64

ipv6 ospf 110 area 0

interface FastEthernet2/0

ip address 23.1.1.2 255.255.255.0

ip route 3.3.3.0 255.255.255.0 23.1.1.3

ipv6 route 2002::/16 Tunnel2

ipv6 router ospf 110

router-id 2.2.2.2

redistribute static

R3配置

ipv6 unicast-routing

interface Loopback0

ip address 3.3.3.3 255.255.255.0

interface Tunnel3

ipv6 unnumbered FastEthernet1/0

tunnel source Loopback0

tunnel mode ipv6ip 6to4

interface FastEthernet1/0

ipv6 address 2002:303:303::3/64

ipv6 ospf 110 area 0

interface FastEthernet2/0

ip address 23.1.1.3 255.255.255.0

ip route 2.2.2.0 255.255.255.0 23.1.1.2

ipv6 route 2002::/16 Tunnel3

ipv6 router ospf 110

router-id 3.3.3.3

redistribute static

R4配置

ipv6 unicast-routing

interface FastEthernet1/0

ipv6 address 2002:303:303::4/64

ipv6 ospf 110 area 0

interface FastEthernet2/0

ipv6 address 2002:303:303:46::4/64

ipv6 ospf 110 area 0

ipv6 router ospf 110

router-id 4.4.4.4

R5配置

ipv6 unicast-routing

interface FastEthernet2/0

ipv6 address 2002:202:202:15::5/64

ipv6 ospf 110 area 0

ipv6 router ospf 110

router-id 5.5.5.5

R6配置

ipv6 unicast-routing

interface FastEthernet2/0

ipv6 address 2002:303:303:46::6/64

ipv6 ospf 110 area 0

ipv6 router ospf 110

router-id 6.6.6.6

4、实验测试

d156947465b63fe0b2a979c419d1959b.png

0360bd458b27d5711c3824cf1f716b06.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值