IPV6 TO IPV4 隧道
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隧道主要用于两个边缘路由器或终端系统与边缘路由器之间定期安全通信的稳定连接。
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隧道主要用于两个边缘路由器或终端系统与边缘路由器之间定期安全通信的稳定连接。
ipv6转换ipv4的方法

ipv6转换ipv4的方法标题:IPv6转换IPv4的方法正文:随着互联网的迅速发展,IPv4地址的短缺问题已经变得越来越严重。
为了解决这个问题,IPv6作为下一代互联网协议被引入,并逐渐得到广泛采用。
然而,由于IPv6和IPv4之间存在不兼容性,我们需要一些方法来实现IPv6转换IPv4。
以下是几种常用的IPv6转换IPv4的方法:1. 双栈技术(Dual Stack):这是最常用和最直接的方法之一。
双栈技术指的是在同一设备上同时部署IPv6和IPv4协议栈,使设备能够同时运行IPv6和IPv4。
在IPv6网络中,双栈技术可以实现IPv4和IPv6的互通。
当IPv6可以直接与对方通信时,就使用IPv6协议,当无法直接通信时,就通过IPv4来进行中间转换。
2. IPv6隧道(IPv6 Tunneling):这种方法允许在IPv6网络之间通过IPv4网络进行通信。
IPv6隧道将IPv6数据包封装在IPv4数据包中,然后通过IPv4网络传输,到达目的地后再解封装成IPv6数据包。
这种方法可以实现IPv6网络之间的互通,但需要在隧道端点进行配置。
3. 6to4隧道(6to4 Tunneling):这是一种IPv6隧道的特殊形式,它允许通过公共IPv4互联网连接IPv6网络。
在使用6to4隧道时,将IPv6地址封装在IPv4协议中,并使用IPv4地址中的一部分作为IPv6的前缀。
这样,IPv6节点可以通过IPv4互联网进行通信。
4. NAT64和DNS64:这种方法允许IPv6节点与仅支持IPv4的设备进行通信。
NAT64和DNS64结合使用,可以将IPv6数据包转换为IPv4数据包,从而使得IPv6节点可以直接与IPv4设备通信。
NAT64负责地址转换,而DNS64负责解析IPv6请求时的IPv4地址。
总结起来,IPv6转换IPv4的方法主要包括双栈技术、IPv6隧道、6to4隧道以及用于与仅支持IPv4的设备通信的NAT64和DNS64等。
ipv6转换成ipv4规则

ipv6转换成ipv4规则IPv6转换成IPv4规则随着互联网的快速发展,IPv4地址资源日益紧张,为了解决这一问题,IPv6应运而生。
IPv6是下一代互联网协议,相较于IPv4,其地址空间更为广阔,能够提供更多的IP地址。
然而,在IPv6广泛应用之前,仍然存在着大量的IPv4设备和应用,为了使IPv6和IPv4之间能够互通,就需要进行IPv6转换成IPv4的操作。
IPv6转换成IPv4是一种网络地址转换(NAT)技术,通过将IPv6的地址转换为IPv4的地址,实现IPv6和IPv4网络的互通。
下面,我们将详细介绍IPv6转换成IPv4的几种常见规则。
1. IPv6到IPv4映射规则(IPv6 to IPv4 Mapping Rule)这种规则是将IPv6地址映射到IPv4地址上。
其中,IPv6地址由8个16进制数构成,每个数之间用冒号分隔,而IPv4地址由4个10进制数构成,每个数之间用点分隔。
通过这种映射规则,将IPv6地址转换为IPv4地址,从而实现IPv6和IPv4之间的互通。
2. 双栈技术(Dual Stack)双栈技术是指在同一设备上同时支持IPv6和IPv4协议栈。
通过这种技术,设备能够同时运行IPv6和IPv4协议,实现IPv6和IPv4之间的互通。
在双栈技术中,IPv6和IPv4地址可以共存,设备可以根据需求选择使用IPv6或IPv4协议进行通信。
3. IPv6到IPv4隧道(IPv6 to IPv4 Tunnel)IPv6到IPv4隧道是一种将IPv6报文封装在IPv4报文中进行传输的技术。
通过这种技术,IPv6报文可以在IPv4网络中传输,实现IPv6和IPv4之间的互通。
在IPv6到IPv4隧道中,IPv6报文被封装在IPv4报文的数据部分,并在IPv4报文的头部添加一些额外的信息,以便在IPv4网络中正确地解析IPv6报文。
4. IPv6转换成IPv4代理(IPv6 to IPv4 Proxy)IPv6转换成IPv4代理是一种通过代理服务器来实现IPv6和IPv4之间互通的技术。
ipv6向ipv4过度的方法

ipv6向ipv4过度的方法
IPv6是下一代互联网协议,它的主要目的是解决IPv4地址不足的问题。
IPv4拥有大约42亿个地址,而IPv6拥有340万亿亿亿亿(3.4×10)个地址,极大地扩展了互联网的地址空间。
但是,由于IPv6的普及率相对较低,许多系统仍然使用IPv4。
因此,IPv6向IPv4过度的方法变得非常重要。
以下是一些IPv6向IPv4过度的方法:
1. 双栈机制:双栈机制是一种同时支持IPv4和IPv6的网络架构。
在这种情况下,IPv4和IPv6之间的通信是独立的,因此IPv6
的存在不会影响IPv4的运行。
但是,双栈机制需要更多的资源和管理,因此成本也更高。
2. 6to4:6to4是一种IPv6过渡技术,它允许IPv6数据包通过IPv4网络传输。
这种技术需要一个IPv4地址和一个IPv6地址,IPv6地址是从IPv4地址中派生的。
这种方法的优点是简单,但是在IPv4网络拥堵时可能会导致延迟和数据包丢失。
3. 隧道技术:隧道技术是一种将IPv6数据包封装在IPv4数据包中传输的技术。
IPv6数据包在源站点上被封装,并在目标站点上被解封。
隧道技术需要额外的头信息,因此会增加一些开销。
4. NAT64:NAT64是一种将IPv6地址转换为IPv4地址的技术。
它允许IPv6主机与IPv4主机进行通信,并且不需要IPv4地址。
但是,它可能会对性能产生负面影响,并且不支持某些IPv4应用程序。
总之,IPv6向IPv4过度的方法有多种,每种方法都有其优缺点。
选择合适的方法应该根据具体情况来决定。
ip隧道技术原理

ip隧道技术原理IP隧道技术原理是一种能够将IPv6数据包通过IPv4网络传输的技术,也被称为IPv6 over IPv4隧道。
IP隧道技术原理可以让IPv6数据包通过IPv4网络顺利传输,确保IPv6网络和IPv4网络之间的互通性。
一、隧道技术的概念在网络通信中,传输数据的方式有两种,一种是属于网络层,就是IP层,另一种是数据链路层,也就是MAC地址,网络层的IP地址和MAC层的物理地址是两种不同的形式。
网络隧道技术就是利用一个虚拟隧道,通过原本不能够直接交换数据报文的两个网络之间来建立连接,实现互通。
隧道本质上是一种数据封装技术,就是把一种协议的数据包包装成另一种协议的数据包以达到跨越不同网络的目的。
二、IP隧道技术的实现方式IP隧道技术的实现可以分为两种基本方式:手动隧道和动态隧道。
1. 手动隧道手动隧道需要人为配置两端的隧道,静态配置的方式存在缺陷,维护成本高,容易出现故障。
手动隧道需要在IPv4网络的内部模拟一个点对点的IPv6链路,将IPv6数据包封装在IPv4包中,通过IPv4网络到达目的地后再将IPv6数据包解封装出来。
手动隧道的缺点是需要繁琐的手动配置,因此只适用于较小规模、频繁联通的IPv6子网之间互连。
2. 动态隧道动态隧道是指利用隧道协议自动建立IPv6隧道的技术。
即隧道两端的网络设备可以通过配置,自动发现对端设备的IP地址,并自动建立隧道。
动态隧道协议有六种,其中最常用的是6to4隧道和ISATAP 隧道,目前广泛使用的是6to4隧道技术。
动态隧道的好处就是免去了手动配置的繁琐性,通过增加自动发现和自动配置功能来简化IPv6隧道的创建过程,并自动实现IPv6和IPv4的兼容性。
三、IP隧道技术的优缺点1. 优点(1) IPv6隧道技术解决了IPv4网络兼容性问题,可以让IPv6数据包在IPv4网络中传输,明显提高了IPv6的兼容性和可用性。
(2) IPv6隧道技术实现简单,可以节省实现成本。
IPv6通过IPV4隧道

实验23 IPv6隧道配置一、实验拓扑图,如图1.1所示:图1.1 IPv6隧道配置实验拓扑图二、实验说明:1.实验拓扑图如图1.1所示;2.本实验是在IPv6基础配置实验基础上做的,通过隧道的方式使两路由器loopback接口所连的IPv6网络互通三、预配置:同IPv6基础配置实验的配置,将两个F0/0口的IPv6地址去除,配置IPv4地址:R1(config)#int f0/0R1(config-if)#no ipv6 addressR1(config-if)#ip address 12.0.0.1 255.255.255.0R2(config)#int f0/0R2(config-if)#no ipv6 addressR2(config-if)#ip address 12.0.0.2 255.255.255.0四、配置及调试过程:1.在R1上设置tunnel:R1(config)#interface tunnel 0 //设置tunnel 0R1(config-if)#tunnel source f0/0 //设置tunnel 0的源R1(config-if)#tunnel destination 12.0.0.2 //设置tunnel 0的目的R1(config-if)#ipv6 address 2001::1/64 //给tunnel 0配置IPv6地址R1(config-if)#tunnel mode ipv6ip //将tunnel 0的模式配置为IPv6IP2.在R2上设置tunnel:R2(config-if)#int tu 0R2(config-if)#tunnel source f0/0R2(config-if)#tunnel destination 12.0.0.1R2(config-if)#ipv6 address 2001::2/64R2(config-if)#tunnel mode ipv6ip3.测试隧道连通性:R2(config-if)#do ping 12.0.0.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/16/40 msR2(config-if)#do ping 2001::1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/22/36 ms4.配置IPv6路由:R1(config)#ipv6 route 2::/64 tunnel 0R2(config)#ipv6 route 1::/64 tunnel 05.测试IPv6网络连通性并调试IP报文:R1(config)#do deb ip pacIP packet debugging is onR1(config)#do ping 2::2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2::2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/20/36 msR1(config)#*Mar 1 01:10:36.379: IP: s=12.0.0.1 (Tunnel0), d=12.0.0.2 (FastEthernet0/0), len 120, sending*Mar 1 01:10:36.403: IP: tableid=0, s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), routed via RIB*Mar 1 01:10:36.403: IP: s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), len 120, rcvd 3*Mar 1 01:10:36.411: IP: s=12.0.0.1 (Tunnel0), d=12.0.0.2 (FastEthernet0/0), len 120, sending*Mar 1 01:10:36.427: IP: tableid=0, s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), routed via RIB*Mar 1 01:10:36.427: IP: s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), len 120, rcvd 3*Mar 1 01:10:36.427: IP: s=12.0.0.1 (Tunnel0), d=12.0.0.2 (FastEthernet0/0), len 120, sending*Mar 1 01:10:36.435: IP: tableid=0, s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), routed via RIB*Mar 1 01:10:36.435: IP: s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), len 120, rcvd 3*Mar 1 01:10:36.435: IP: s=12.0.0.1 (Tunnel0), d=12.0.0.2 (FR1(config)#astEthernet0/0), len 120, sending*Mar 1 01:10:36.471: IP: tableid=0, s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), routed via RIB*Mar 1 01:10:36.471: IP: s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0),len 120, rcvd 3*Mar 1 01:10:36.471: IP: s=12.0.0.1 (Tunnel0), d=12.0.0.2 (FastEthernet0/0), len 120, sending*Mar 1 01:10:36.479: IP: tableid=0, s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), routed via RIB*Mar 1 01:10:36.479: IP: s=12.0.0.2 (FastEthernet0/0), d=12.0.0.1 (FastEthernet0/0), len 120, rcvd 3R1(config)#do und ip pacR1(config)#do deb ipv pacR1(config)#do ping 2::2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2::2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/18/40 msR1(config)#*Mar 1 01:14:08.271: IPv6: SAS picked source 2001::1 for 2::2 (Tunnel0)*Mar 1 01:14:08.275: IPV6: source 2001::1 (local)*Mar 1 01:14:08.279: dest 2::2 (Tunnel0)*Mar 1 01:14:08.279: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating*Mar 1 01:14:08.279: IPv6: Sending on Tunnel0*Mar 1 01:14:08.295: IPV6: source 2::2 (Tunnel0)*Mar 1 01:14:08.299: dest 2001::1*Mar 1 01:14:08.299: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp*Mar 1 01:14:08.303: IPV6: source 2001::1 (local)*Mar 1 01:14:08.303: dest 2::2 (Tunnel0)*Mar 1 01:14:08.307: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating*Mar 1 01:14:08.307: IPv6: Sending on Tunnel0*Mar 1 01:14:08.339: IPV6: source 2::2 (Tunnel0)*Mar 1 01:14:08.339: dest 2001::1*Mar 1 01:14:08.343: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp*Mar 1 01:14:08.347: IPV6: source 2001::1R1(config)#(local)*Mar 1 01:14:08.347: dest 2::2 (Tunnel0)*Mar 1 01:14:08.347: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating*Mar 1 01:14:08.347: IPv6: Sending on Tunnel0*Mar 1 01:14:08.355: IPV6: source 2::2 (Tunnel0)*Mar 1 01:14:08.355: dest 2001::1*Mar 1 01:14:08.355: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp*Mar 1 01:14:08.355: IPV6: source 2001::1 (local)*Mar 1 01:14:08.355: dest 2::2 (Tunnel0)*Mar 1 01:14:08.355: traffic class 0, flow 0x0, len 100+0, prot 58, hops 64, originating*Mar 1 01:14:08.355: IPv6: Sending on Tunnel0*Mar 1 01:14:08.363: IPV6: source 2::2 (Tunnel0)*Mar 1 01:14:08.363: dest 2001::1*Mar 1 01:14:08.363: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp*Mar 1 01:14:08.363: IPV6: source 2001::1 (local)*Mar 1 01:14:08.363: dest 2::2 (Tunnel0)*Mar 1 01:14:08.363: traffic class 0, flow 0x0, len 10R1(config)#0+0, prot 58, hops 64, originating*Mar 1 01:14:08.363: IPv6: Sending on Tunnel0*Mar 1 01:14:08.371: IPV6: source 2::2 (Tunnel0)*Mar 1 01:14:08.371: dest 2001::1*Mar 1 01:14:08.371: traffic class 0, flow 0x0, len 100+20, prot 58, hops 64, forward to ulp。
ipv6向ipv4过度的方法

ipv6向ipv4过度的方法
随着互联网的不断发展,IPv4地址已经逐渐不足以支撑互联网的需求。
为了解决这个问题,IPv6应运而生。
IPv6是一种新的互联网协议,它的地址空间比IPv4大得多,可以支持更多的设备连接到互联网上。
但是,由于IPv4和IPv6之间存在不兼容的问题,IPv6向IPv4的过渡也成为了一个重要的问题。
IPv6向IPv4的过渡有多种方法,其中一种比较常见的方法是使用IPv6隧道技术。
IPv6隧道技术是一种将IPv6数据包封装在IPv4数据包中传输的技术。
这种技术可以让IPv6数据包通过IPv4网络传输,从而实现IPv6向IPv4的过渡。
IPv6隧道技术有两种类型:6to4隧道和Teredo隧道。
6to4隧道是一种将IPv6数据包封装在IPv4数据包中传输的技术,它可以让IPv6数据包通过IPv4网络传输。
Teredo隧道是一种将IPv6数据包封装在UDP数据包中传输的技术,它可以让IPv6数据包通过IPv4网络传输。
除了IPv6隧道技术,还有一种比较常见的方法是使用双栈技术。
双栈技术是一种同时支持IPv4和IPv6的网络架构,它可以让IPv4和IPv6同时存在于同一个网络中。
这种技术可以让IPv6向IPv4的过渡更加平滑,同时也可以保证IPv4和IPv6之间的互通性。
总的来说,IPv6向IPv4的过渡是一个复杂的问题,需要采用多种
技术手段来解决。
IPv6隧道技术和双栈技术是比较常见的方法,它们可以让IPv6数据包通过IPv4网络传输,从而实现IPv6向IPv4的过渡。
随着IPv6的普及和应用,IPv6向IPv4的过渡问题也将逐渐得到解决。
IPv6过渡技术介绍

IPv6过渡技术介绍IPv6是下一代互联网协议,它的引入解决了IPv4地址不足的问题。
然而,由于互联网上广泛采用的IPv4系统仍然在使用中,需要一种过渡技术来平稳地将IPv4迁移到IPv6上。
本文将介绍几种常见的IPv6过渡技术。
1. 双栈技术(Dual Stack)双栈技术是一种较为简单的IPv6过渡技术,它同时支持IPv4和IPv6两种协议。
通过在主机或路由器上安装并配置IPv4和IPv6协议栈,实现对双协议的支持。
这样,当IPv6可用时,主机或路由器可以使用IPv6进行通信,当IPv6不可用时,仍然可以使用IPv4。
2. IPv6隧道(IPv6 Tunneling)IPv6隧道技术是一种将IPv6数据包通过IPv4网络传输的技术。
在IPv6隧道中,IPv6数据包被封装在IPv4数据包中,通过IPv4网络传输到目的地,然后再解封装出IPv6数据包。
这样可以在IPv4网络中传输IPv6数据,实现IPv6网络的扩展。
3. IPv6转换(IPv6 Transition)IPv6转换技术是将IPv6数据包转换为IPv4数据包或将IPv4数据包转换为IPv6数据包的过程。
常见的IPv6转换技术包括IPv6 over IPv4(IPV6在IPv4上运行)、IPv4 over IPv6(IPv4在IPv6上运行)、NAT64等。
4. 双协议栈(Bump-in-the-Stack)双协议栈是一种在传输层上进行IPv4与IPv6转换的技术,它通过在传输层拦截IPv4或IPv6数据包,然后将其转换为另一种协议,最后再交付给目标主机。
这种方法通过网络协议栈的修改来实现IPv4与IPv6互通。
5. NAT64(Network Address Translation IPv6 to IPv4)NAT64是一种IPv6到IPv4的网络地址转换技术,它允许IPv6主机访问IPv4资源。
在NAT64网络中,IPv6数据包被封装为IPv4数据包,并通过NAT64网关进行转换。
IPv6 over IPv4隧道示例

# 配置静态路由。 [RouterC] ip route-static 192.168.50.2 255.255.255.0 192.168.51.1
4. 检查配置结果
# 在 RouterC 上 Ping RouterA 的接口 GE1/0/0 的 IPv4 地址,可收到返回的报文。 [RouterC] ping 192.168.50.2
配置思路
配置 IPv6 over IPv4 GRE 隧道的思路如下: 1. 配置物理接口的 IP 地址,使设备可以和 IPv4 网络通信。 2. 在 RouterA 和 RouterC 上创建 Tunnel 接口,配置 GRE 隧道,指定 Tunnel 的源地址和目的地址,使报文封装
后可以通过路由转发。注意 Tunnel 的源地址是发出报文的物理接口 IP 地址,目的地址是接收报文的物理接口 IP 地址。 3. 为使 PC1 和 PC2 之间的流量通过 GRE 隧道传输,RouterA 和 RouterC 上配置静态路由,以对端 PC 所在网段 为目的地址,出接口为本端配置的 Tunnel 接口。
IPv6-OVER-IPV44 手动隧道

实验报告实验人:高承旺实验名称:H3C的ipv6-overipv4手工隧道配置实验目录:➢配置IP地址➢IPv4网络通信➢配置ipv6-overipv4手工隧道➢IPv6网络通信实验拓扑:实验步骤:根据实验拓扑配置IP地址[R1]int lo0[R1-LoopBack0]ipv6 add 1::1/128[R1-LoopBack0]undo ipv6 nd ra halt[R1]int s0/2/0[R1-Serial0/2/0]ip add 192.168.1.1 24[R2]int s0/2/0[R2-Serial0/2/0]ip add 192.168.1.1 24[R2]int s0/2/2[R2-Serial0/2/2]ip add 192.168.2.1 24[R3]int s0/2/0[R3-Serial0/2/0]ip add 192.168.2.2 24[R3]int lo0[R3-LoopBack0]ipv6 add 2::2/128[R3-LoopBack0]undo ipv6 nd ra halt➢IPv4网络通信(使用的rip路由协议)[R1]rip[R1-rip-1]ver 2[R1-rip-1]undo sum[R1-rip-1]net 192.168.1.0[R1-rip-1]q[R2]rip[R2-rip-1]ver 2[R2-rip-1]undo sum[R2-rip-1]net 192.168.1.0[R2-rip-1]net 192.168.2.0[R2-rip-1]q[R3]rip[R3-rip-1]ver 2[R3-rip-1]undo sum[R3-rip-1]net 192.168.2.0[R3-rip-1]q让IPv4网络通信没有问题[R3]ping 192.168.1.1PING 192.168.1.1: 56 data bytes, press CTRL_C to breakReply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=8 ms Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=255 time=10 ms--- 192.168.1.1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 1/11/20 ms➢配置ipv6-overipv4手工隧道并让IPv6网络通信[R1]ripng 1 //一定要在接口开启ripng之前开启全局ripng [R1]interface Tunnel 0(可以配置0到1023)[R1-Tunnel0]ipv6 address 2001::1/64[R1-Tunnel0]tunnel-protocol ipv6-ipv4[R1-Tunnel0]source s0/2/0[R1-Tunnel0]destination 192.168.2.2[R1-Tunnel0]ripng 1 enable[R1-Tunnel0]q[R1]int lo0[R1-LoopBack0]ripng 1 enable[R1-LoopBack0]q➢配置ipv6-overipv4手工隧道并让IPv6网络通信[R3]ripng 1一定要在接口开启ripng之前开启全局ripng[R3]interface Tunnel 0[R3-Tunnel0]ipv6 add 2001::2/64[R3-Tunnel0]tunnel-protocol ipv6-ipv4[R3-Tunnel0]source s0/2/0[R3-Tunnel0]destination 192.168.1.1[R3-Tunnel0]ripng 1 enable[R3-Tunnel0]q[R3]int lo0[R3-LoopBack0]ripng 1 enable➢实验成功[R3]ping ipv6 -a 2::2 1::1PING 1::1 : 56 data bytes, press CTRL_C to breakReply from 1::1bytes=56 Sequence=1 hop limit=64 time = 15 msReply from 1::1bytes=56 Sequence=2 hop limit=64 time = 10 msReply from 1::1bytes=56 Sequence=3 hop limit=64 time = 1 msReply from 1::1bytes=56 Sequence=4 hop limit=64 time = 20 msReply from 1::1bytes=56 Sequence=5 hop limit=64 time = 10 ms--- 1::1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 1/11/20 ms。
ipv6向ipv4过度的方法

ipv6向ipv4过度的方法
随着互联网的不断发展,IPv4地址已经日趋枯竭,IPv6作为下一代互联网协议已经被广泛应用。
在IPv6逐渐取代IPv4的过程中,为了保证互联网的正常运行,需要采取一些方法实现IPv6向IPv4的过度。
1. 双栈技术
双栈技术是通过在同一设备上同时使用IPv4和IPv6协议,实现IPv6向IPv4的过度。
在采用双栈技术的设备中,当IPv4和IPv6同时存在时,可以通过DNS解析进行协议的选择,从而实现IPv6和IPv4之间的通信。
2. 隧道技术
隧道技术是指将IPv6数据包封装在IPv4数据包中,通过IPv4网络进行传输,从而实现IPv6向IPv4的过度。
在隧道技术中,IPv6数据包在发送前被封装在IPv4数据包中,接收方在接收时将IPv6数据包解封,从而实现通信。
3. NAT64技术
NAT64技术是指将IPv6数据包转换成IPv4数据包,然后通过IPv4网络进行传输,从而实现IPv6向IPv4的过度。
在NAT64技术中,IPv6数据包被转换成IPv4数据包后,再通过NAT设备进行地址转换,使IPv6数据包能够在IPv4网络中被正确传输。
总之,在IPv6向IPv4的过度中,需要采用多种技术手段,如双栈技术、隧道技术和NAT64技术等,以保证互联网的正常运行和IPv6
的逐步推广。
ipv6隧道穿越ipv4互联实验详细配置过程......

实验名称:ipv6隧道穿越ipv4互联实验实验目的:配置隧道让ipv6能穿越ipv4实现互联实验拓扑图:(有可能出现在本文的最后,我勒个擦....)实验详细配置步骤:R1Router>enRouter#conf tRouter(config)#line con 0Router(config-line)#logg syncRouter(config-line)#exitRouter(config)#no ip domain-lookupRouter(config)#host R1R1(config)#ipv6 unicast-routingR1(config)#int s0/0R1(config-if)#ip add 10.1.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#int loop0R1(config-if)#no ip addR1(config-if)#ipv6 add 2011:1:1:11::1/64R1(config-if)#ipv6 ospf 100 area 0R1(config-if)#int tunnel0R1(config-if)#no ip addR1(config-if)#ipv6 add 2012:1:1:11::1/64R1(config-if)#ipv6 ospf 100 area 0R1(config-if)#tunnel source 10.1.1.1R1(config-if)#tunnel destination 20.1.1.2R1(config-if)#tunnel mode ipv6ipR1(config-if)#exitR1(config)#ip route 20.1.1.0 255.255.255.0 10.1.1.2 R1(config)#ipv6 router ospf 100R2Router>enRouter#conf tRouter(config)#line con 0Router(config-line)#logg syncRouter(config-line)#exitRouter(config)#no ip domain-lookupRouter(config)#host R2R2(config)#ipv6 unicast-routingR2(config)#int s0/0R2(config-if)#ip add 10.1.1.2 255.255.255.0R2(config-if)#no shutR2(config-if)#exitR2(config)#int s0/1R2(config-if)#ip add 20.1.1.1 255.255.255.0R2(config-if)#no shutR2(config-if)#exitR3Router>enRouter#conf tRouter(config)#line con 0Router(config-line)#logg syncRouter(config)#no ip domain-lookupRouter(config)#host R3R3(config)#ipv6 unicast-routingR3(config)#int s0/1R3(config-if)#ip add 20.1.1.2 255.255.255.0R3(config-if)#no shutR3(config-if)#exitR3(config)#int loop0R3(config-if)#no ip addR3(config-if)#ipv6 add 2022:2:2:22::2/64R3(config-if)#ipv6 ospf 100 area 0R3(config-if)#exitR3(config)#int tunnel0R3(config-if)#no ip addR3(config-if)#ipv6 add 2010:1:1:11::2/64R3(config-if)#ipv6 ospf 100 area 0R3(config-if)#tunnel source 20.1.1.2R3(config-if)#tunnel destination 10.1.1.1R3(config-if)#tunnel mode ipv6ipR3(config-if)#exitR3(config)#ip route 10.1.1.0 255.255.255.0 20.1.1.1R3(config)#ipv6 router ospf 100实验总结:注意在路由器2中也要开启ipv6的流量转发做的的过程中很纠结,查阅了大量的资料.....不过值得欣慰的是做通了....嘿嘿。
ipv6转换成ipv4规则

ipv6转换成ipv4规则IPv6转换成IPv4规则随着互联网的迅猛发展,IPv4地址资源越来越紧缺,为了应对IPv4地址枯竭的问题,IPv6应运而生。
IPv6是下一代互联网协议,相较于IPv4,它具有更大的地址空间和更好的安全性。
然而,在IPv6逐渐普及的过程中,由于很多网络设备、应用程序以及网络服务仍然基于IPv4运行,所以需要进行IPv6与IPv4之间的转换。
IPv6转换成IPv4有多种方法和规则,下面将简要介绍几种常见的转换规则:1. IPv6地址转换为IPv4地址:IPv6地址与IPv4地址的编码方式不同,IPv6采用128位地址,而IPv4采用32位地址。
为了实现IPv6地址转换为IPv4地址,可以使用IPv6与IPv4之间的映射关系进行转换。
其中,IPv6地址的前96位是IPv4地址的映射,后32位是IPv4地址。
2. 6to4转换:6to4是一种IPv6过渡技术,它允许IPv6流量通过IPv4网络进行传输。
具体实现方法是在IPv6地址前面添加一个特定的前缀2002::/16,然后将IPv6地址转换为IPv4地址。
3. ISATAP转换:ISATAP(Intra-Site Automatic Tunnel Addressing Protocol)是一种IPv6转换技术,它使用IPv4地址来进行IPv6隧道传输。
ISATAP通过IPv4隧道封装IPv6数据包,实现IPv6与IPv4之间的互通。
4. 6rd转换:6rd(IPv6 Rapid Deployment)是一种IPv6转换技术,它在IPv4网络中通过IPv6-over-IPv4隧道来传输IPv6数据。
6rd通过在IPv4头部添加IPv6头部的方式将IPv6数据封装在IPv4包中进行传输。
5. NAT64转换:NAT64是一种IPv6转换技术,它通过将IPv6数据包转换为IPv4数据包来实现IPv6与IPv4之间的互通。
NAT64使用一种特殊的IPv6地址作为IPv4地址的前缀,并使用IPv4地址来表示IPv6地址的后32位。
6to4隧道原理

6to4隧道是一种用于IPv6和IPv4互联的隧道技术,它允许在IPv4网络上传输IPv6数据。
下面是6to4隧道的原理:IPv6地址编址:IPv6地址采用128位长度,通常由八组十六进制数字表示。
IPv6地址中的前48位用于标识Internet服务提供商(ISP),而剩下的80位用于标识主机和子网。
IPv4地址转换:6to4隧道利用IPv4地址来转换IPv6数据。
IPv4地址是32位长,由四组十进制数字表示。
6to4隧道接口:在使用6to4隧道时,每个IPv6主机都会自动生成一个6to4隧道接口。
该接口具有一个IPv6地址和一个对应的IPv4地址。
6to4前缀:6to4隧道使用2002::/16的IPv6前缀,这是保留给6to4隧道使用的前缀。
隧道封装:IPv6数据包在IPv4数据包中进行封装,以在IPv4网络上传输。
封装过程包括将IPv6数据包放入IPv4数据包的数据部分,并在IPv4头部添加必要的封装信息。
6to4路由器:6to4隧道的入口是一个称为6to4路由器的设备。
6to4路由器负责将IPv6数据包从IPv4网络解封装,并将其传递给相应的IPv6目的地。
6to4隧道自治系统编号(AS):为了区分不同的6to4隧道,每个6to4隧道都有一个唯一的自治系统编号(AS)。
这个AS编号由IPv4地址中的IPv6前缀派生而来。
通过6to4隧道,IPv6数据可以通过IPv4网络进行传输,并实现IPv6与IPv4之间的互联。
6to4隧道的原理基于将IPv6数据封装在IPv4数据包中,并利用IPv4网络作为传输媒介。
然后在目的地处将IPv6数据解封装并传递给相应的IPv6节点。
这种隧道技术为IPv6的部署提供了一种临时解决方案,使得IPv6主机可以通过IPv4网络进行全球互联。
teredo 协议格式

teredo 协议格式Teredo协议是一种IPv6 over IPv4隧道协议,用于在IPv4网络上传输IPv6数据。
以下是Teredo协议的详细格式:1. Teredo首部(Teredo Header):- 源端口(Source Port):16位,指定发送方的端口号。
- 目的端口(Destination Port):16位,指定接收方的端口号。
- 源IPv4地址(Source IPv4 Address):32位,指定发送方的IPv4地址。
- 目的IPv4地址(Destination IPv4 Address):32位,指定接收方的IPv4地址。
- 标志(Flags):8位,用于指示Teredo协议的各种状态和操作。
- Teredo服务端标识(Teredo Server Identifier):32位,指定Teredo服务器的IPv4地址。
- Teredo服务端端口(Teredo Server Port):16位,指定Teredo服务器的端口号。
- Teredo客户端标识(Teredo Client Identifier):64位,指定Teredo客户端的标识符。
2. IPv6首部(IPv6 Header):- 版本(Version):4位,指定IPv6协议的版本号。
- 流量类别(Traffic Class):8位,用于指定IPv6数据包的优先级和服务质量。
- 流标签(Flow Label):20位,用于指定对该数据包的特定处理要求。
- 负载长度(Payload Length):16位,指定IPv6数据包负载的长度。
- 下一个头部(Next Header):8位,指示IPv6首部后紧跟的下一个扩展首部或上层协议的类型。
- 跳数限制(Hop Limit):8位,指定IPv6数据包在网络中可以经过的最大跳数。
- 源IPv6地址(Source IPv6 Address):128位,指定发送方的IPv6地址。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
TunnelingIntroduction to TunnelingThe expansion of Internet results in scarce IPv4 addresses. Although the technologiessuch as temporary IPv4 address allocation and Network Address Translation (NAT)relieve the problem of IPv4 address shortage to some extent, they not only increase theoverhead in address resolution and processing, but also lead to high-level applicationfailures. Furthermore, they will still face the problem that IPv4 addresses will eventuallybe used up. Internet Protocol Version 6 (IPv6) adopting the 128-bit addressing schemecompletely solves the above problem. Since significant improvements have been madein address space, security, network management, mobility, and QoS, IPv6 becomesone of the core standards for the next generation Internet protocol. IPv6 is compatiblewith all protocols except IPv4 in the TCP/IP suite. Therefore, IPv6 can completely takethe place of IPv4.Before IPv6 becomes the dominant protocol, the network using the IPv6 protocol stackis expected to communicate with the Internet using IPv4. Therefore, an IPv6-IPv4interworking technology must be developed to ensure the smooth transition from IPv4to IPv6. In addition, the interworking technology should provide efficient, seamlessinformation transfer. The Internet Engineering Task Force (IETF) set up the nextgeneration transition (NGTRANS) working group to study problems about IPv4-to-IPv6transition and efficient, seamless IPv4-IPv6 interworking. Currently, multiple transitiontechnologies and interworking solutions are available. With their own characteristics,they are used to solve communication problems in different transition stages underdifferent environments.Currently, there are three major transition technologies: dual stack (RFC2893),tunneling (RFC2893), and NAT-PT (RFC2766).Tunneling is an encapsulation technology, which utilizes one network transport protocolto encapsulate packets of another network transport protocol and transfer them overthe network. A tunnel is a virtual point-to-point connection. In practice, the virtualinterface that supports only point-to-point connections is called tunnel interface. Onetunnel provides one channel to transfer encapsulated packets. Packets can beencapsulated and decapsulated at both ends of a tunnel. Tunneling refers to the wholeprocess from data encapsulation to data transfer to data decapsulation.IPv6 over IPv4 TunnelI. PrincipleThe IPv6 over IPv4 tunneling mechanism encapsulates an IPv4 header in IPv6 datapackets so that IPv6 packets can pass an IPv4 network through a tunnel to realizeinterworking between isolated IPv6 networks, as shown in Figure 1.Caution:The devices at both ends of an IPv6 over IPv4 tunnel must support IPv4/IPv6 dualstack.IPv6 host IPv6 host Figure 1 Principle of IPv6 over IPv4 tunnelThe IPv6 over IPv4 tunnel processes packets in the following way:1) A host in the IPv6 network sends an IPv6 packet to the device at the source end ofthe tunnel.2) After determining according to the routing table that the packet needs to beforwarded through the tunnel, the device at the source end of the tunnelencapsulates the IPv6 packet with an IPv4 header the and forwards it through thephysical interface of the tunnel.3) The encapsulated packet goes through the tunnel to reach the device at thedestination end of the tunnel. The device at the destination end decapsulates thepacket if the destination address of the encapsulated packet is the device itself.4) The destination device forwards the packet according to the destination address inthe decapsulated IPv6 packet. If the destination address is the device itself, thedevice forwards the IPv6 packet to the upper-layer protocol for processing.II. Configured tunnel and automatic tunnelAn IPv6 over IPv4 tunnel can be established between hosts, between hosts and devices, and between devices. The tunnel destination needs to forward packets if the tunnel destination is not the eventual destination of the IPv6 packet.According to the way the IPv4 address of the tunnel destination is acquired, tunnels are divided into configured tunnel and automatic tunnel.z If the tunnel destination is not the eventual destination of the IPv6 packet, the device at the destination end of the tunnel (usually a router) will decapsulate the IPv6 packet and forward it to the eventual destination. In this case, the IPv4 address of the tunnel destination cannot be acquired from the destination address of the IPv6 packet and it needs to be configured manually. Such a tunnel is calleda configured tunnel.z If the tunnel destination is just the eventual destination of the IPv6 packet, an IPv4 address can be embedded into the IPv6 address so that the IPv4 address of the tunnel destination can automatically be acquired from the destination address of the IPv6 packet. Such a tunnel is called an automatic tunnel.III. TypeAccording to the way an IPv6 packet is encapsulated, IPv6 over IPv4 tunnels are divided into the following types:z IPv6 manual tunnelz Automatic IPv4-compatible IPv6 tunnelz6to4 tunnelz ISATAP tunnelz IPv6-over-IPv4 GRE tunnel (GRE tunnel for short)Among the above tunnels, the IPv6 manual tunnel and GRE tunnel are configured tunnels, while the automatic IPv4 compatible IPv6 tunnel, 6to4 tunnel, and intra-site automatic tunnel address protocol (ISATAP) tunnel are automatic tunnels.1) IPv6 manually configured tunnelA manually configured tunnel is a point-to-point link. One link is a separate tunnel. The IPv6 manually configured tunnels provide stable connections requiring regular secure communication between two border routers or between a border router and a host for access to remote IPv6 networks.2) Automatic IPv4-compatible IPv6 tunnelAn automatic IPv4-compatible IPv6 tunnel is a point-to-multipoint link. IPv4-compatible IPv6 addresses are adopted at both ends of such a tunnel. The address format is 0:0:0:0:0:0:a.b.c.d/96, where a.b.c.d represents an embedded IPv4 address. The tunnel destination is automatically determined by the embedded IPv4 address, which makes it easy to create a tunnel for IPv6 over IPv4. However, an automatic IPv4-compatible IPv6 tunnel must use IPv4-compatible IPv6 addresses and it is stilldependent on IPv4 addresses. Therefore, automatic IPv4-compatible IPv6 tunnels have limitations.3) 6to4 tunnelz Ordinary 6to4 tunnelAn automatic 6to4 tunnel is a point-to-multipoint tunnel and is used to connect multiple isolated IPv6 networks over an IPv4 network to remote IPv6 networks. The embedded IPv4 address in an IPv6 address is used to automatically acquire the destination of the tunnel. The automatic 6to4 tunnel adopts 6to4 addresses. The address format is 2002:abcd:efgh:subnet number::interface ID/64, where abcd:efgh represents the 32-bit source IPv4 address of the 6to4 tunnel, in hexadecimal notation. For example, 1.1.1.1 can be represented by 0101:0101. The tunnel destination is automatically determined by the embedded IPv4 address, which makes it easy to create a 6to4 tunnel.Since the 16-bit subnet number of the 64-bit address prefix in 6to4 addresses can be customized and the first 48 bits in the address prefix are fixed by a permanent value and the IPv4 address of the tunnel source or destination, it is possible that IPv6 packets can be forwarded by the tunnel. A 6to4 tunnel interconnects IPv6 networks and overcomes the limitations of an automatic IPv4-compatible IPv6 tunnel.z6to4 relayA 6to4 tunnel can connect networks whose address prefix is 2002::/16. However, IPv6 network addresses with the prefix such as 2001::/16 may also be used in IPv6 networks. In order for these addresses to be reachable, a 6to4 router must be used as a gateway to forward packets to IPv6 networks. Such a router is called 6to4 relay router. As shown in Figure 2, a static route must be configured on the border router in the 6to4 network and the next-hop address must be the 6to4 address of the 6to4 relay router. In this way, all packets destined for the IPv6 network will be forwarded to the 6to4 relay router, and then to the IPv6 network. Thus, interworking between the 6to4 network (with the address prefix starting with 2002) and the IPv6 network is realized.Figure 2 Principle of 6to4 tunnel and 6to4 relay4) ISATAP tunnelWith the application of the IPv6 technology, there will be more and more IPv6 hosts in the existing IPv4 network. The ISATAP tunneling technology provides a satisfactory solution for IPv6 application. An ISATAP tunnel is a point-to-point automatic tunnel. The destination of a tunnel can automatically be acquired from the embedded IPv4 address in the destination address of an IPv6 packet. When an ISATAP tunnel is used, the destination address of an IPv6 packet and the IPv6 address of a tunnel interface both adopt special addresses: ISATAP addresses. The ISATAP address format is prefix(64bit):0:5EFE:ip-address. The ip-address is in the form of a.b.c.d or abcd:efgh, where abcd:efgh represents a 32-bit source IPv4 address. Through the embedded IPv4 address, an ISATAP tunnel can automatically be created to transfer IPv6 packets. The ISATAP tunnel is mainly used for connection between IPv6 routers or between a host and an IPv6 router over an IPv4 network.Figure 3 Principle of ISATAP tunnel5) GRE tunnelIPv6 packets can be carried over GRE tunnels to pass through the IPv4 network by using standard GRE protocol to encapsulate them. Like the IPv6 manually configured tunnel, a GRE tunnel is a point-to-point link, too. Each link is a separate tunnel. The GRE tunnel is mainly used for stable connections requiring regular secure communication between two border routers or between a host and a border router. IV. Expedite terminationFor a tunnel packet arriving at the device, if the source IP address matches the address of the expedite termination subnet, the packet is sent to an IPv6 tunnel protocol engine to forward, or sent to the CPU for processing. If the tunnel packet needs forwarding, the IPv6 tunnel protocol engine removes the IP encapsulation to obtain the original IPv6 packet and then forwards it directly.The IPv6 over IPv4 GRE tunnel supports the expedite termination function. There are two cases:z The expediting subnet is not applicable to a configured tunnel (for example, GRE tunnel and IPv6 manually configured tunnel). After the expedite termination function is enabled, the system will automatically consider the destination address of a tunnel as the address of the expedite termination subnet, and the subnet mask as 255.255.255.255.z For automatic tunnels (for example, automatic IPv4-compatible IPv6 tunnel, automatic 6to4 tunnel, and ISATAP tunnel), you must carry out the expeditingsubnet command to designate an IP address and subnet mask for the expeditetermination subnet after carrying out the expediting enable command.IPv4 over IPv4 TunnelI. Introduction to IPv4 over IPv4 tunneling protocolThe IPv4 over IPv4 tunneling protocol (RFC1853) is developed for IP data packetencapsulation so that data can be transferred from one IPv4 network to another IPv4network.II. Encapsulation and decapsulationPackets to be transferred through a tunnel undergo an encapsul ation process anddecapsulation process. Figure 4 shows these two processes.IPv4 hostIPv4 host Figure 4 Principle of IPv4 over IPv4 tunnelz EncapsulationThe encapsulation process is as follows:1) The interface of Router A connecting to an IPv4 host receives an IP packet andsubmits it to the IP protocol stack for processing.2) The IP protocol stack determines how to route the packet according to thedestination address in the IP header. If the packet needs to be routed to the IPv4host connected to Router B, the packet is sent to Router A’s tunnel interface that isconnected to Router B.3) After the tunnel interface receives the packet, the packet is encapsulated andsubmitted to the IP protocol stack for processing. The IP protocol stack determinesthe outgoing interface of the tunnel according to the IP header.z DecapsulationContrary to the encapsulation process, the decapsulation process is as follows:1) The IP packet received from the IPv4 network interface is sent to the IP protocolstack which checks the protocol number in the IP header.2) If the protocol number is IPv4, the IP packet is sent to the tunnel module fordecapsulation3) The decapsulated IP packet is sent back to the IP protocol stack for processing. IPv4/IPv6 over IPv6 TunnelI. Introduction to IPv4/IPv6 over IPv6 tunneling protocolThe IPv4/IPv6 over IPv6 tunneling protocol (RFC2473) is developed for IPv4 or IPv6data packet encapsulation so that encapsulated packets can be transmitted over anIPv6 network. The encapsulated packets are IPv6 tunnel packets.Host A Host BFigure 5 Principle of IPv4/IPv6 over IPv6 tunnelAs shown in Figure 5, original data refers to IPv4 or IPv6 packets.II. Encapsulation and decapsulationThe encapsulation process is as follows:1) After receiving the original packet, the interface of Router A connecting privatenetwork A submits it to the corresponding data module for processing. The datamodule then determines how to route the packet.2) If the packet needs to be routed to Host B connected to Router B, the packet issent to Router A’s tunnel interface that is connected to Router B.3) After receiving the packet, the tunnel interface adds an IPv6 header to it andsubmits it to the IPv6 module for processing.4) The IPv6 module re-determines a route according to the destination address in theIPv6 header.Contrary to the encapsulation process, the decapsulation process is as follows:1) The packet received from the IPv6 network interface is sent to the IPv6 module forprocessing.2) If the passenger protocol is IPv4 or IPv6, the packet is sent to the tunnelprocessing module for decapsulation.3) The decapsulated packet is sent to the corresponding protocol module for thesecondary routing process.6PE OverviewIPv6 on the provider edge routers (6PE) is a transition technology by which Internetservice providers (ISPs) can use existing IPv4 backbone networks to provide theaccess capability for sparsely populated IPv6 networks.The major concept of the 6PE is that the IPv6 routing information of users is convertedinto IPv6 routing information with labels and is spread into IPv4 backbone networks ofISPs through Internal Border Gateway Protocol (IBGP) sessions. When IPv6 packetsare forwarded, traffic will be labeled after entering tunnels of backbone networks. Thetunnels can be GRE tunnels or MPLS LSPs.Figure 6 Network diagram for 6PENote:“P” in the above figure refers to a backbone router in the network of a service provider.P is not directly connected with a CE and is required to have the basic MPLS capability.When an ISP wants to utilize the existing IPv4/MPLS network to provide IPv6 trafficswitching capability through MPLS, only the PE routers need to be upgraded.Therefore, it is undoubtedly a high efficient solution that ISPs use the 6PE technologyas an IPv6 transition mechanism. Furthermore, the operation risk of the 6PEtechnology is very low.。