IPV6to4隧道配置

合集下载

实验八IvoverIvto隧道

实验八IvoverIvto隧道

F0/24 61.16.3.1 3.4.1. 实验七 IPv6 over IPv4 6to4隧道【实验名称】IPv6 Automatic 6to4 Tunnel 隧道【实验目的】在IPv4和IPv6之间建立隧道【实验知识】自动隧道技术简介:这种隧道的建立和拆除是动态的,它的端点根据分组的目的地址确定,适用于单独的主机之间或不经常通信的站点之间。

自动配置的隧道需要站点采用IPv4兼容的IPv6地址,这些站点之间必须有可用的IPv4连接,每个采用这种机制的主机都需要有一个全球唯一的IPv4地址。

采用这种机制不能解决IPv4地址空间耗尽的问题(采用手工配置隧道的站点就不需要IPv4地址)。

另外还有一种危险就是如果把Internet 上全部IPv4路由表包括到IPv6网络中,那么会加剧路由表膨胀的问题。

这种隧道的两个端点都必须支持双协议栈(手工配置就不需要)。

在隧道要经过NAT 设施的情况下这种机制不可用。

【拓扑结构】【实验设备】RG-S3760 交换机3台,windows xp pc 机2台,直通双绞线4条F0/1:61.16.2.1F0/1:3::1/64F0/24:1::1/64PC1(Winxp)IPv6:1::2/64 PC2(Winxp)IPv6:3::2/64tunnel 0: 2002:3d10:0201::/128S3760-1 S3760-2 S3760-3 图1F0/1:61.16.2.2F0/24 61.16.3.2【实验过程】1. 配置交换机1)配置交换机s3760-1端口f 0/1S3760-1(config)#ipv6 unicast-routingS3760-1(config)# interface fast 0/1S3760-1(config-if)# no switchportS3760-1(config-if)# ip address 61.16.2.1 255.255.255.0 S3760-1(config-if)# no shutdownS3760-1(config-if)# exit2)配置交换机s3760-1端口f 0/24S3760-1(config-if)# interface fast 0/24S3760-1(config-if)# no switchportS3760-1(config-if)# ipv6 address 1::1/64S3760-1(config-if)# ipv6 enableS3760-1(config-if)# no ipv6 nd suppress-raS3760-1(config-if)# no shutdownS3760-1(config-if)# exitS3760-1(config)# end3)查看交换机s3760-1的配置S3760-1# show ip interface(如图1-3)S3760-1# show ipv6 interface(如图1-4)图1-3图1-44)配置交换机s3760-2端口f 0/1S3760-2(config)# interface fast 0/1S3760-2(config-if)# no switchportS3760-2(config-if)# ip address 61.16.2.2 255.255.255.0 S3760-2(config-if)# no shutdownS3760-2(config-if)# exit5)配置交换机s3760-2端口f 0/24S3760-2(config-if)# interface fast 0/24S3760-2(config-if)# no switchportS3760-2(config-if)# ip address61.16.3.1 255.255.255.0 S3760-2(config-if)# no shutdownS3760-2(config-if)# exitS3760-2(config)# end6)查看交换机s3760-2的配置S3760-2# show ip interface(如图1-7)图1-77)配置交换机s3760-3端口f 0/1S3760-1(config)#ipv6 unicast-routingS3760-3(config-if)# interface fast 0/1S3760-3(config-if)# no switchportS3760-3(config-if)# ipv6 address 3::1/64S3760-3(config-if)# ipv6 enableS3760-3(config-if)# no ipv6 nd suppress-raS3760-3(config-if)# no shutdownS3760-3(config-if)# exit8)配置交换机s3760-3端口f 0/24S3760-3(config-if)# interface fast 0/24S3760-3(config-if)# no switchportS3760-3(config-if)# ip address 61.16.3.2 255.255.255.0 S3760-3(config-if)# no shutdownS3760-3(config-if)# exitS3760-3(config)# end9)查看交换机s3760-3的配置S3760-3# show ip interface(如图1-10)S3760-3# show ip6 interface(如图1-11、1-12)图1-10图1-11图1-122.配置隧道1)配置S3760-1上的隧道S3760-1(config)# interface tunnel 0S3760-1(config-if)# tunnel mode ipv6ip 6to4S3760-1(config-if)# tunnel source f 0/1S3760-1(config-if)# ipv6 address 2002:3d10:0201::1/128 S3760-1(config-if)# exit2)查看S3760-1上的隧道S3760-1# show interfaces tunnel 0(如图2-2)图2-23)配置S3760-3上的隧道S3760-3(config)# interface tunnel 0S3760-3(config-if)# tunnel mode ipv6ip 6to4S3760-3(config-if)# tunnel source f 0/24S3760-3(config-if)# ipv6 address 2002:3d10:0302::1/128 S3760-3(config-if)# exit4)查看S3760-3上的隧道S3760-3# show interfaces tunnel 0(如图2-4)图2-43.配置交换机上的路由1)配置S3760-1上的路由S3760-1(config)# ip route 0.0.0.0 0.0.0.0 61.16.2.2 S3760-1(config)# ipv6 route 2002: :/16 tunnel 0S3760-1(config)# ipv6 route : :/0 2002:3d10:0302::1 S3760-1(config)# end2)查看S3760-1上的路由S3760-1#show ip route(如图3-2)图3-23)配置S3760-2上的路由S3760-2(config)# ip route 0.0.0.0 0.0.0.0 61.16.3.2 S3760-2(config)# end4)查看S3760-2上的路由S3760-2# show ip route(如图3-4)图3-45)配置S3760-3上的路由S3760-3(config)# ip route 0.0.0.0 0.0.0.0 61.16.3.1 S3760-3(config)# ipv6 route 2002: :/16 tunnel 0S3760-3(config)# ipv6 route : :/0 2002:3d10:0201::1 S3760-3(config)# exit6)查看S3760-3上的路由S3760-3# show ip route(如图3-6)图3-64.查看主机连通性PC1 ping PC2C:\>ping 3::2(如图4-1)PC2 ping PC1C:\>ping 1::2(如图4-2)图4-1图4-2。

v4兼容地址和IPv6隧道使用

v4兼容地址和IPv6隧道使用

使用 IPv4 兼容地址使用 IPv4 兼容地址派生自 IPv4 公用地址的 IPv4 兼容地址可以为通过现有 IPv4 Internet 结构连接 IPv6 主机或站点提供一种方法。

使用 IPv4 兼容地址时,IPv6 通信不要求其他的 IPv6 路由器。

将用 IPv4 标头封装它的通信。

下图显示了使用 IPv4 兼容地址跨 IPv4 路由器通信的独立子网上两个节点的配置。

启用兼容 IPv4 的 IPv6 地址时,Windows Server 2003 家族和 Windows XP 的IPv6 协议会将兼容 IPv4 的地址自动配置为“自动隧道伪接口(接口 ID 2)”上的 IPv4 公用地址。

IPv4 兼容地址的格式是 ::w.x.y.z,其中w.x.y.z是一个指派给计算机上接口的 IPv4 公用地址。

启用 IPv4 兼容地址时,IPv6 协议也自动创建一个 ::/96 路由,该路由使用“自动隧道伪接口”(接口 ID 为 2)转发所有 IPv4 兼容地址通信。

由此主机转发到 IPv4 兼容目标的所有通信都将用 IPv4 标头封装。

默认情况下,禁用 IPv4 兼容地址。

要启用兼容 IPv4 的地址,请打开“命令提示符”,然后键入:netsh interface ipv6 set state v4compat=enabled将通信发送到 IPv4 兼容地址时,将从 IPv4 兼容地址发送通信,并用 IPv4 标头封装。

IPv4 标头中的“协议”字段将被设置为 41,表示负载是 IPv6 数据包。

IPv4 标头允许跨 IPv4 结构进行通信。

嵌入在 IPv6 标头的源和目标 IPv4 兼容地址中的 IPv4 地址,将成为 IPv4 标头中的 IPv4 源和目标地址。

例如,当主机 A(用 IPv4 地址 131.107.41.17 配置)使用 IPv4 兼容地址将IPv6 通信发送给主机 B(用 IPv4 地址 157.60.15.93 配置)时,用于 IPv4 和IPv6 标头的源地址和目标地址在下表中列示。

IPV6隧道技术配置大全(详细全面不骗人)

IPV6隧道技术配置大全(详细全面不骗人)
更多资源请关注
ITm..................................................................................................................................... 1-1 1.1 隧道技术简介..................................................................................................................................... 1-1 1.1.1 IPv6 over IPv4 隧道 ................................................................................................................ 1-1 1.1.2 IPv4 over IPv4 隧道 ................................................................................................................ 1-5 1.1.3 IPv4 或IPv6 over IPv6 隧道 .................................................................................................... 1-5 1.1.4 6PE概述.................................................................................................................................. 1-6 1.1.5 协议规范 ................................................................................................................................. 1-7 1.2 隧道技术配置任务简介 ...................................................................................................................... 1-7 1.3 配置IPv6 手动隧道............................................................................................................................. 1-8 1.3.1 配置准备 ................................................................................................................................. 1-8 1.3.2 配置IPv6 手动隧道 .................................................................................................................. 1-8 1.3.3 配置举例 ................................................................................................................................. 1-9

RFC6343(中文) 6to4(IPv6 over IPv4自动隧道化)部署咨询指南

RFC6343(中文)  6to4(IPv6 over IPv4自动隧道化)部署咨询指南

本文翻译者:weicq2000RFC-6343 6to4部署咨询指南(2011年8月)摘要本文件就(针对IPv6 over IPv4自动隧道化的)6to4技术部署,向网络运营商提供建议。

主要是面向互联网服务提供商(ISPs),包括还没有对IPv6提供支持的ISPs,以及内容提供商。

也包括对实现者的某些建议。

建议的目的是最大程度降低用户不满,和在线帮助(help-desk)呼叫数量。

本备忘录状态This document is not an Internet Standards Track specification; it is published for informational purposes.This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Not all documents approved by the IESG are a candidate for any level of Internet Standard; see Section 2 of RFC 5741. Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at /info/rfc6343.版权声明Copyright (c) 2011 IETF Trust and the persons identified as the document authors. All rights reserved.This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating to IETF Documents (/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.目录第1章引言第2章工作原理2-1 路由器6to42-2 任播6to4第3章观察到的问题第4章咨询指南4-1 供应商问题4-2 不以任何方式支持IPv6的用户ISPs及企业网络4-2-1 任播地址可用性4-2-2 协议414-2-3 IPv4前缀问题4-2-4 DNS问题4-2-5 流氓路由器通告4-2-6 IPv6部署规划4-3 支持IPv6的用户ISPs及企业网络4-4 传输ISPs和互联网交换点4-5 内容提供商和他们的ISPs第5章由ISPs管理的隧道第6章安全考虑第7章致谢第8章参考文献8-1 标准类参考文献8-2 信息类参考文献撰写者通讯录第1章引言IPv6 over IPv4自动隧道化技术,适合这样情况,那里用户可能希望通过不支持IPv6的网络,访问基于IPv6的服务。

IPv6-over-IPv4 GRE隧道技术

IPv6-over-IPv4 GRE隧道技术

IPv6-over-IPv4 GRE隧道技术隧道机制隧道技术是一种通过互联网络基础设施在网络之间传递数据的方式。

使用隧道传递的数据可以是不同协议的数据帧或包,隧道协议将这些其它协议的数据帧或包重新封装在新的包头中发送,被封装的数据包在隧道的两个端点之间通过公共互联网络进行路由,一旦到达网络终点,数据将被解包并转发到最终目的地。

整个传递过程中,被封装的数据包在公共互联网络上传递时所经过的逻辑路径称为隧道。

简言之,隧道技术是指包括数据封装,传输和解包在内的全过程。

IPv6是新一代Internet通信协议,具有许多的功能特色:全新的表头格式、较大的地址空间、有效及阶层化的地址与路由架构、内建的安全性、与邻近节点相互作用的新型通信协议Neighbor Discovery Protocol for IPv6、可扩展性等。

作为网络管理者,有必要加强对IPv6的了解,为以后IPv4的全面升级做好准备。

I Pv6隧道是将IPv6报文封装在IPv4报文中,让IPv6数据包穿过IPv4网络进行通信。

对于采用隧道技术的设备来说,在隧道的入口处,将IPv6的数据报封装进IPv4,IPv4报文的源地址和目的地址分别是隧道入口和隧道出口的IPv4地址;在隧道的出口处,再将IPv6报文取出转发到目的节点。

隧道技术只要求在隧道的入口和出口处进行修改,对其他部分没有要求,容易实现。

但是,隧道技术不能实现IPv4主机与IPv6主机的直接通信。

IPv6-over-IPv4 GRE隧道技术使用标准的GRE隧道技术,可在IPv4的GRE隧道上承载IPv6数据报文。

GRE隧道是两点之间的连路,每条连路都是一条单独的隧道。

GRE隧道把IPv6作为乘客协议,将GRE 作为承载协议。

所配置的IPv6地址是在Tunnel接口上配置的,而所配置的IPv4地址是Tunnel 的源地址和目的地址(隧道的起点和终点)。

GRE隧道主要用于两个边缘路由器或终端系统与边缘路由器之间定期安全通信的稳定连接。

IPv4、v6互通技术之隧道技术 ( Tunnel)

IPv4、v6互通技术之隧道技术 ( Tunnel)

一:概述:隧道技术提供了一种以现有IPv4路由体系来传递IPv6数据的方法:将IPv6的分组作为无结构意义的数据,封装在IPv4数据报中,被IPv4网络传输。

根据建立方式的不同,隧道可以分成两类:(手工)配置的隧道和自动配置的隧道。

隧道技术巧妙地利用了现有的IPv4网络,它的意义在于提供了一种使 IPv6的节点之间能够在过渡期间通信的方法,但它并不能解决IPv6节点与IPv4节点之间相互通信的问题。

二:实验拓扑:R1(s2/1)-(s2/1)R2(s2/2)-(s2/1)R3(s2/2)-(s2/1)R44台路由,R1,R4运行IPV6R2,R3半边运行IPV4,半边运行IPV6三:配置信息R1#ipv6 unicast-routing //开启IPV6单播路由功能interface Loopback0ip address //配置环回接口做为它的router-idinterface Serial2/1ipv6 address12::1/64 //IPV6地址ipv6 ospf 1 area0 //接口下启用ospfR2#ipv6 unicast-routinginterface Serial2/1ipv6 address 12::2/64interface Serial2/2ip addressinterfaceTunnel0 //在s2/1接口下打隧道ipv6 address10::1/64 //给隧道配置IPV6地址ipv6 ospf 1 area0 //启用ospftunnel source Serial2/2 //申明隧道源端tunnel destination //申明隧道目的端tunnel mode ipv6ip //隧道模式是ipv6到ipv4R3#ipv6 unicast-routinginterface Serial2/1ip addressinterface Serial2/2ipv6 address 34::3/64ipv6 ospf 1 area 0interface Tunnel0ipv6 address 10::2/64tunnel source Serial2/1tunnel destinationtunnel mode ipv6ipR4#ipv6 unicast-routinginterface Loopback0ip addressinterface Serial2/1ipv6 address 34::4/64ipv6 ospf 1 area 0四:调试信息R1#show ipv6 routeIPv6 Routing Table - 6 entriesCodes: C - Connected, L - Local, S - Static, R - RIP, B - BGPU - Per-user Static routeI1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summaryO - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2O 10::/64 [110/11175]via FE80::C838:AFF:FE24:0, Serial2/1C 12::/64 [0/0]via ::, Serial2/1L 12::1/128 [0/0]via ::, Serial2/1O 23::/64 [110/11239] //用隧道模式学习到了隔着ipv4网络的远端ipv6路由via FE80::C838:AFF:FE24:0, Serial2/1L FE80::/10 [0/0]via ::, Null0L FF00::/8 [0/0]via ::, Null0R2#show ipv6 routeIPv6 Routing Table - 7 entriesCodes: C - Connected, L - Local, S - Static, R - RIP, B - BGPU - Per-user Static routeI1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summaryO - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2C 10::/64 [0/0]via ::, Tunnel0L 10::1/128 [0/0]via ::, Tunnel0C 12::/64 [0/0]via ::, Serial2/1L 12::2/128 [0/0]via ::, Serial2/1O 23::/64 [110/11175]via FE80::1700:3, Tunnel0L FE80::/10 [0/0]via ::, Null0L FF00::/8 [0/0]via ::, Null0R1#ping 23::4Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23::4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 344/380/420 msR1#trR1#traceroute 23::4Type escape sequence to abort.Tracing the route to 23::41 12::2 132 msec 84 msec 104 msec2 10::2 240 msec 352 msec 104 msec//^-^看到是杂过去的了吧?发到ipv6的源端地址上走隧道过去的3 23::4 332 msec 388 msec 356 msecR1#pingType escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:.... //注意这里不通Success rate is 0 percent (0/4)R1#show ip routeis subnetted, 1 subnetsC is directly connected, Loopback0R1#trR1#tracerouteType escape sequence to abort.Tracing the route to1 * * *2 * * *3 * * *4 * * *5 * * *6 * * *//traceroute也无路可走//这是ipv6想与ipv4通信,说明它们无法通信.所以隧道技术并不能解决IPv6节点与IPv4节点之间相互通信的问题。

15-ISATAP和6to4相结合使用的典型配置举例

15-ISATAP和6to4相结合使用的典型配置举例

H3C S5830V2&S5820V2 ISATAP隧道和6to4隧道相结合使用的典型配置举例Copyright © 2015 杭州华三通信技术有限公司版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。

本文档中的信息可能变动,恕不另行通知。

目录1 简介 (1)2 配置前提 (1)3 ISATAP隧道和6to4隧道相结合使用的典型配置举例 (1)3.1 组网需求 (1)3.2 配置思路 (2)3.3 使用版本 (2)3.4 配置注意事项 (2)3.5 配置步骤 (2)3.6 验证配置 (5)3.7 配置文件 (5)4 相关资料 (7)1 简介本文档介绍了ISATAP隧道和6to4隧道相结合使用的典型配置举例。

2 配置前提本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。

如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文假设您已了解ISATAP隧道和6to4隧道的相关特性。

3 ISATAP隧道和6to4隧道相结合使用的典型配置举例3.1 组网需求如图1所示,要求:•通过配置6to4隧道使各6to4网络分支机构与总部中的主机能够互通。

•Device A提供ISATAP接入服务使一些IPv4网络中的双协议栈主机可以访问总部。

图1ISATAP隧道和6to4隧道相结合使用的配置组网图设备接口 IP地址设备接口 IP地址Device A Vlan-int10 2.1.1.1/24 Device B Vlan-int10 3.1.1.1/24Vlan-int202002:0201:0101:1::1/64 Vlan-int202002:0301:0101:1::1/642002:0201:0101:2::1/64 Vlan-int302002:0301:0101:2::1/64 Vlan-int30Tunnel 1 3001::1/64 Tunnel 1 3001::2/642001::5EFE:0201:0101/642Tunnel3.2 配置思路•组网中的6to4网络可以表示为2002:IPv4地址::/64,其中内嵌在IPv6地址中的IPv4地址作为6to4隧道中封装后的IPv4报文头中的目的IP地址。

win7有多条隧道适配器(isatap、teredo、6to4)的原因及关闭方法

win7有多条隧道适配器(isatap、teredo、6to4)的原因及关闭方法

Win7有多条隧道适配器(isatap、teredo、6to4)的原因及关闭方法(转)如果大家在用笔记本,经常调试网络的话。

WINDOWS 会自发建立一条IPV6的隧道,通常我们用ipconfig /all就会看到很多条隧道,比如我这边有40多个隧道,想看ipv4信息的话,就会一闪而过,给使用带来不便。

这是因为windows 在IPv6迁移过程中需要使用一种或多种IPv6过渡技术。

只要使用以下3条命令把ipv6的接口关闭即可:CODE:netsh interface teredo set state disablenetsh interface 6to4 set state disablednetsh interface isatap set state disabled附录:我们只用运用以下3条命令把IPv6的接口关闭即可netsh interface teredo set state disable //netsh接口禁用Teredo的设置状态netsh interface 6to4 set state disabled //netsh接口的6to4设置状态禁用netsh interface isatap set state disabled //netsh接口isatap设置状态禁用若想复原IPv6隧道则用以下命令:netsh interface teredo set state default //netsh接口Teredo的默认设置状态netsh interface 6to4 set state default //netsh接口的6to4默认设置状态netsh interface isatap set state default //netsh接口isatap默认设置状态如果打算向IPV6迁移,下面我们介绍对ISATAP、6to4和Teredo提供拟定计划时应注意的事项。

1.ISATAP在默认情况下,ISATAP主机使用DNS及其他IP名称解析技术解析名称ISATAP 到一个IPv4地址,以获得ISATAP路由器的IPv4地址。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

6to4隧道连接IPV4/6网络
R1
Router>en
Router#conf t
Router(config)#ho r1
r1(config)#no ip domain-lo
r1(config)#lin con 0
r1(config-line)#no exec-t
r1(config-line)#logg sy
r1(config-line)#exi
r1(config)#ipv6 uni
r1(config)#ipv6 router ospf 1
r1(config-rtr)#router-id 1.1.1.1
r1(config-rtr)#default-information originate metric 30 metric-type 2 r1(config-rtr)#exi
r1(config)#int s1/0
r1(config-if)#ipv6 enable
r1(config-if)#ipv6 ospf 1 area 0
r1(config-if)#no sh
r1(config-if)#int lo0
r1(config-if)#ipv6 add 1:1::1/64
r1(config-if)#ipv6 ospf 1 area 0
R2
Router>en
Router#conf t
Router(config)#ho r2
r2(config)#no ip domain-lo
r2(config)#lin con 0
r2(config-line)#no exec-t
r2(config-line)#logg sy
r2(config-line)#exi
r2(config)#ipv6 u
r2(config)#int tunnel0
r2(config-if)#ipv6 enable
r2(config-if)#tunnel source lo0
r2(config-if)#tunnel mode ipv6ip 6to4
r2(config-if)#int lo0
r2(config-if)#ip add 2.2.2.2 255.255.255.0
r2(config-if)#int s1/1
r2(config-if)#ip add 11.1.1.1 255.255.255.0
r2(config-if)#no sh
r2(config-if)#int s1/0
r2(config-if)#ipv6 enable
r2(config-if)#ipv6 ospf 1 area 0
r2(config-if)#no sh
r2(config-if)#exi
r2(config)#router ospf 1
r2(config-router)#log-a
r2(config-router)#log-adjacency-changes
r2(config-router)#net 0.0.0.0 255.255.255.255 area 0 r2(config-router)#exi
r2(config)#ipv6 route 1:2::/64 tunnel0
r2(config)#ipv6 router ospf 1
r2(config-rtr)#redistribute static
R3
Router>en
Router#conf t
Router(config)#no ip domain-lo
Router(config)#ho r3
r3(config)#lin con 0
r3(config-line)#no exec-t
r3(config-line)#logg sy
r3(config-line)#exi
r3(config)#int s1/1
r3(config-if)#ip add 11.1.1.2 255.255.255.0
r3(config-if)#clock rate 64000
r3(config-if)#no sh
r3(config-if)#int s1/0
r3(config-if)#ip add 12.1.1.1 255.255.255.0
r3(config-if)#clock rate 64000
r3(config-if)#no sh
r3(config-if)#exi
r3(config)#router ospf 1
r3(config-router)#net 0.0.0.0 255.255.255.255 area 0
R4
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#ho r4
r4(config)#no ip domain-lo
r4(config)#lin con 0
r4(config-line)#no exec-t
r4(config-line)#logg sy
r4(config-line)#exi
r4(config)#ipv6 u
r4(config)#int tunnel0
r4(config-if)#ipv6 enable
r4(config-if)#tunnel source lo0
r4(config-if)#tunnel mode ipv6ip 6to4
r4(config-if)#int lo0
r4(config-if)#ip add 4.4.4.4 255.255.255.0
r4(config-if)#int s1/0
r4(config-if)#ip add 12.1.1.2 255.255.255.0
r4(config-if)#no sh
r4(config-if)#int s1/1
r4(config-if)#ipv6 enable
r4(config-if)#ipv6 ospf 1 area 0
r4(config-if)#no shu
r4(config-if)#exi
r4(config)#router ospf 1
r4(config-router)#net 0.0.0.0 255.255.255.255 area 0 r4(config-router)#exi
r4(config)#ipv6 route 1:1::/64 tunnel0
r4(config)#ipv6 router ospf 1
r4(config-rtr)#redistribute static
R5
Router>en
Router#conf t
Router(config)#ho r5
r5(config)#no ip domain-lo
r5(config)#lin con 0
r5(config-line)#no exec-t
r5(config-line)#logg sy
r5(config-line)#exi
r5(config)#ipv6 u
r5(config)#int lo0
r5(config-if)#ipv6 add 1:2::1/64
r5(config-if)#ipv6 ospf 1 area 0
r5(config-if)#exi
r5(config)#int s1/1
r5(config-if)#ipv6 enable
r5(config-if)#ipv6 ospf 1 area 0 r5(config-if)#no sh
r5(config-if)#exi
r5(config)#ipv6 router ospf 1
r5(config-rtr)#router-id 5.5.5.5
验证
Ping
R1上验证
R2上验证。

相关文档
最新文档