华为-IPv6与IPv4网络互通的6to4自动隧道配置实验

IPv4向IPv6的过渡不是一次性的,而是逐步地分层次地。在过渡时期,为了保证IPv4和IPv6能够共存、互通,人们发明了一些IPv4/IPv6的互通技术。

本实验以6to4技术为例,阐述如何配置IPv6过渡技术。

配置参考

R1


#
sysname R1
#
ipv6

#
interface GigabitEthernet0/0/1
 ip address 200.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2
 ipv6 enable
 ipv6 address 2002:C801:101::FFFF/64
#
interface Tunnel0/0/0
 ipv6 enable
 ipv6 address auto link-local
 tunnel-protocol ipv6-ipv4 6to4
 source 200.1.1.1
#
ip route-static 0.0.0.0 0.0.0.0 200.1.1.2
#
ipv6 route-static 2002:C802:202:: 64 Tunnel0/0/0

R2


#
sysname R2
#
ipv6
#
interface GigabitEthernet0/0/1
 ipv6 enable
 ipv6 address 2002:C802:202::FFFF/64
#
interface GigabitEthernet0/0/2
 ip address 200.2.2.2 255.255.255.0
#
interface Tunnel0/0/0
 ipv6 enable
 ipv6 address auto link-local
 tunnel-protocol ipv6-ipv4 6to4
 source 200.2.2.2
#
ip route-static 0.0.0.0 0.0.0.0 200.2.2.1
#
ipv6 route-static 2002:C801:101:: 64 Tunnel0/0/0

Internet


 #
sysname internet
#
ipv6
#
interface GigabitEthernet0/0/1
 ipv6 enable
 ip address 200.1.1.2 255.255.255.0
 ipv6 address 2002:C801:202::FFFF/64
#
interface GigabitEthernet0/0/2
 ip address 200.2.2.1 255.255.255.0
 

PC


PC1>ipconfig
Link local IPv6 address...........: fe80::5689:98ff:fe7d:4b9f
IPv6 address......................: 2002:c801:101::1 / 64
IPv6 gateway......................: 2002:c801:101::ffff

PC2>ipconfig
Link local IPv6 address...........: fe80::5689:98ff:fe8e:67e1
IPv6 address......................: 2002:c802:202::1 / 64
IPv6 gateway......................: 2002:c802:202::ffff

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值