配置IPv6 over IPv4手动隧道示例
配置IPv6 over IPv4手动隧道示例
组网需求
如图所示,两个IPv6网络分别通过RouterA和RouterC与IPv4骨干网络中的RouterB连接,客户希望两个IPv6网络能通过IPv4骨干网互通。
配置思路
配置IPv6 over IPv4手动隧道的思路如下:
配置物理接口的IP地址,使设备可以和IPv4骨干网进行通信。
配置隧道接口的IPv6地址、源接口、目的地址,使设备可以和网络进行通信。
配置协议类型为IPv6-IPv4,使IPv6网络可以通过IPv4骨干网进行通信。
操作步骤
配置RouterA
# 配置接口的IP地址。
<Huawei>system-view
[Huawei] sysname RouterA
[RouterA] ipv6
[RouterA] interface gigabitethernet 1/0/0
[RouterA-GigabitEthernet1/0/0] ip address 192.168.50.2 255.255.255.0
[RouterA-GigabitEthernet1/0/0] quit
# 配置协议类型为IPv6-IPv4。
[RouterA] interface tunnel 0/0/1
[RouterA-Tunnel0/0/1] tunnel-protocol ipv6-ipv4
# 配置隧道接口的IPv6地址、源接口、目的地址。
[RouterA-Tunnel0/0/1] ipv6 enable
[RouterA-Tunnel0/0/1] ipv6 address 2001::1/64
[RouterA-Tunnel0/0/1] source gigabitethernet 1/0/0
[RouterA-Tunnel0/0/1] destination 192.168.51.2
[RouterA-Tunnel0/0/1] quit
# 配置静态路由。
[RouterA] ip route-static 192.168.51.2 255.255.255.0 192.168.50.1
配置RouterB
# 配置接口的IP地址。
<Huawei> system-view
[Huawei] sysname RouterB
[RouterB] interface gigabitethernet 1/0/0
[RouterB-GigabitEthernet1/0/0] ip address 192.168.50.1 255.255.255.0
[RouterB-GigabitEthernet1/0/0] quit
[RouterB] interface gigabitethernet 2/0/0
[RouterB-GigabitEthernet2/0/0] ip address 192.168.51.1 255.255.255.0
[RouterB-GigabitEthernet2/0/0] quit
配置RouterC
# 配置接口的IP地址。
<Huawei> system-view
[Huawei] sysname RouterC
[RouterC] ipv6
[RouterC] interface gigabitethernet 1/0/0
[RouterC-GigabitEthernet1/0/0] ip address 192.168.51.2 255.255.255.0
[RouterC-GigabitEthernet1/0/0] quit
# 配置协议类型为IPv6-IPv4。
[RouterC] interface tunnel 0/0/1
[RouterC-Tunnel0/0/1] tunnel-protocol ipv6-ipv4
# 配置隧道接口的IPv6地址、源接口、目的地址。
[RouterC-Tunnel0/0/1] ipv6 enable
[RouterC-Tunnel0/0/1] ipv6 address 2001::2/64
[RouterC-Tunnel0/0/1] source gigabitethernet 1/0/0
[RouterC-Tunnel0/0/1] destination 192.168.50.2
[RouterC-Tunnel0/0/1] quit
# 配置静态路由。
[RouterC] ip route-static 192.168.50.2 255.255.255.0 192.168.51.1
验证配置结果
# 在RouterC上Ping RouterA的接口GE1/0/0的IPv4地址,可收到返回的报文。
[RouterC] ping 192.168.50.2
PING 192.168.50.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.50.2: bytes=56 Sequence=1 ttl=255 time=84 ms
Reply from 192.168.50.2: bytes=56 Sequence=2 ttl=255 time=27 ms
Reply from 192.168.50.2: bytes=56 Sequence=3 ttl=255 time=25 ms
Reply from 192.168.50.2: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 192.168.50.2: bytes=56 Sequence=5 ttl=255 time=24 ms
--- 192.168.50.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/32/84 ms
# 在RouterC上Ping隧道的RouterA接口Tunnel0/0/1的IPv6地址,可收到返回的报文。
[RouterC] ping ipv6 2001::1
PING 2001::1 : 56 data bytes, press CTRL_C to break
Reply from 2001::1
bytes=56 Sequence=1 hop limit=64 time = 28 ms
Reply from 2001::1
bytes=56 Sequence=2 hop limit=64 time = 27 ms
Reply from 2001::1
bytes=56 Sequence=3 hop limit=64 time = 26 ms
Reply from 2001::1
bytes=56 Sequence=4 hop limit=64 time = 27 ms
Reply from 2001::1
bytes=56 Sequence=5 hop limit=64 time = 26 ms
--- 2001::1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 26/26/28 ms
配置文件
RouterA的配置文件
#
sysname RouterA
#
ipv6
#
interface GigabitEthernet1/0/0
ip address 192.168.50.2 255.255.255.0
#
interface Tunnel0/0/1
ipv6 enable
ipv6 address 2001::1/64
tunnel-protocol ipv6-ipv4
source GigabitEthernet1/0/0
destination 192.168.51.2
#
ip route-static 192.168.51.0 255.255.255.0 192.168.50.1
#
return
RouterB的配置文件
#
sysname RouterB
#
interface GigabitEthernet1/0/0
ip address 192.168.50.1 255.255.255.0
#
interface GigabitEthernet2/0/0
ip address 192.168.51.1 255.255.255.0
#
return
RouterC的配置文件
#
sysname RouterC
#
ipv6
#
interface GigabitEthernet1/0/0
ip address 192.168.51.2 255.255.255.0
#
interface Tunnel0/0/1
ipv6 enable
ipv6 address 2001::2/64
tunnel-protocol ipv6-ipv4
source GigabitEthernet1/0/0
destination 192.168.50.2
#
ip route-static 192.168.50.0 255.255.255.0 192.168.51.1
#
return
IPv6(列表、list、全)ipv6list
http://www.zh-cjh.com/wenzhangguilei/1534.html
文章归类、所有文章列表、LISTLIST
http://www.zh-cjh.com/wangzhangonggao/2195.html
2、本资源基本为原创,部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
3、本站大部分文章的截图来源实验测试环境,请不要在生产环境中随意模仿,以免带来灾难性后果。
转载请保留出处: www.zh-cjh.com珠海陈坚浩博客 » 配置IPv6 over IPv4手动隧道示例
作者: cjh
手机扫一扫,手机上查看此文章: |
一切源于价值!
其他 模板文件不存在: ./template/plugins/comment/pc/index.htm