配置IPv6overIPv4手动隧道示例

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

配置IPv6overIPv4手动隧道示例本举例介绍IPv6overIPv4手动隧道的配置过程。组网需求如图1所示,两个IPv6网络分别通过RouterA和RouterC与IPv4骨干网络中的RouterB连接,要求在RouterA和RouterC之间配置IPv6overIPv4手动隧道,使两个IPv6网络可以互通。说明:在实际的组网环境中,为保证报文的正常转发,建议隧道的源接口地址指定为本端设备LoopBack接口的IP地址(或源接口指定为本端设备的LoopBack接口),目的地址指定为对端设备LoopBack接口的IP地址。图1配置IPv6overIPv4手动隧道组网图配置思路配置IPv6overIPv4手动隧道的思路如下:1.配置物理接口的IP地址2.配置隧道接口的IPv6地址、源接口、目的地址3.配置协议类型为IPv6-IPv4数据准备为完成此配置例,需准备如下的数据:接口的IP地址隧道的IPv6地址、源接口和目的地址操作步骤1.配置RouterA#配置接口的IP地址。HUAWEIsystem-view[HUAWEI]sysnameRouterA[RouterA]ipv6[RouterA]interfacegigabitethernet1/0/0[RouterA-GigabitEthernet1/0/0]ipaddress192.168.50.2255.255.255.0[RouterA-GigabitEthernet1/0/0]undoshutdown[RouterA-GigabitEthernet1/0/0]quit#配置协议类型为IPv6-IPv4。[RouterA]interfacetunnel1/0/0[RouterA-Tunnel1/0/0]tunnel-protocolipv6-ipv4#配置隧道接口的IPv6地址、源接口、目的地址。[RouterA-Tunnel1/0/0]ipv6enable[RouterA-Tunnel1/0/0]ipv6address3001::1/64[RouterA-Tunnel1/0/0]source192.168.50.2[RouterA-Tunnel1/0/0]destination192.168.51.2[RouterA-Tunnel1/0/0]quit#配置静态路由。[RouterA]iproute-static192.168.51.2255.255.255.0192.168.50.12.配置RouterB#配置接口的IP地址。HUAWEIsystem-view[HUAWEI]sysnameRouterB[RouterB]interfacegigabitethernet1/0/0[RouterB-GigabitEthernet1/0/0]ipaddress192.168.50.1255.255.255.0[RouterB-GigabitEthernet1/0/0]undoshutdown[RouterB-GigabitEthernet1/0/0]quit[RouterB]interfacegigabitethernet2/0/0[RouterB-GigabitEthernet2/0/0]ipaddress192.168.51.1255.255.255.0[RouterB-GigabitEthernet2/0/0]undoshutdown[RouterB-GigabitEthernet2/0/0]quit3.配置RouterC#配置接口的IP地址。HUAWEIsystem-view[HUAWEI]sysnameRouterC[RouterC]ipv6[RouterC]interfacegigabitethernet1/0/0[RouterC-GigabitEthernet1/0/0]ipaddress192.168.51.2255.255.255.0[RouterC-GigabitEthernet1/0/0]undoshutdown[RouterC-GigabitEthernet1/0/0]quit#配置协议类型为IPv6-IPv4。[RouterC]interfacetunnel1/0/0[RouterC-Tunnel1/0/0]tunnel-protocolipv6-ipv4#配置隧道接口的IPv6地址、源接口、目的地址。[RouterC-Tunnel1/0/0]ipv6enable[RouterC-Tunnel1/0/0]ipv6address3001::2/64[RouterC-Tunnel1/0/0]source192.168.51.2[RouterC-Tunnel1/0/0]destination192.168.50.2[RouterC-Tunnel1/0/0]quit#配置静态路由。[RouterC]iproute-static192.168.50.2255.255.255.0192.168.51.14.检查配置结果#在RouterC上PingRouterA的接口GE1/0/0的IPv4地址,可收到返回的报文。[RouterC]ping192.168.50.2PING192.168.50.2:56databytes,pressCTRL_CtobreakReplyfrom192.168.50.2:bytes=56Sequence=1ttl=255time=84msReplyfrom192.168.50.2:bytes=56Sequence=2ttl=255time=27msReplyfrom192.168.50.2:bytes=56Sequence=3ttl=255time=25msReplyfrom192.168.50.2:bytes=56Sequence=4ttl=255time=3msReplyfrom192.168.50.2:bytes=56Sequence=5ttl=255time=24ms---192.168.50.2pingstatistics---5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=3/32/84ms#在RouterC上Ping隧道的RouterA接口Tunnel1/0/0的IPv6地址,可收到返回的报文。[RouterC]pingipv63001::1PING3001::1:56databytes,pressCTRL_CtobreakReplyfrom3001::1bytes=56Sequence=1hoplimit=255time=28msReplyfrom3001::1bytes=56Sequence=2hoplimit=255time=27msReplyfrom3001::1bytes=56Sequence=3hoplimit=255time=26msReplyfrom3001::1bytes=56Sequence=4hoplimit=255time=27msReplyfrom3001::1bytes=56Sequence=5hoplimit=255time=26ms---3001::1pingstatistics---5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=26/26/28ms配置文件RouterA的配置文件#sysnameRouterA#ipv6#interfaceGigabitEthernet1/0/0undoshutdownipaddress192.168.50.2255.255.255.0#interfaceTunnel1/0/0ipv6enableipv6address3001::1/64tunnel-protocolipv6-ipv4source192.168.50.2destination192.168.51.2#iproute-static192.168.51.0255.255.255.0192.168.50.1#returnRouterB的配置文件#sysnameRouterB#interfaceGigabitEthernet1/0/0undoshutdownipaddress192.168.50.1255.255.255.0#interfaceGigabitEthernet2/0/0undoshutdownipaddress192.168.51.1255.255.255.0#returnRouterC的配置文件#sysnameRouterC#ipv6#interfaceGigabitEthernet1/0/0undoshutdownipaddress192.168.51.2255.255.255.0#interfaceTunnel1/0/0ipv6enableipv6address3001::2/64tunnel-protocolipv6-ipv4source192.168.51.2destination192.168.50.2#iproute-static192.168.50.0255.255.255.0192.168.51.1#return

1 / 7
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功