毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 论文 >> 正文

IPv4与IPv6并存网络技术应用与研究论文 第8页

更新时间:2009-5-4:  来源:毕业论文
IPv4与IPv6并存网络技术应用与研究论文 第8页
显示NAT-PT统计表
Router#show ipv6 nat statistics
Total active translations: 2 (2 static, 0 dynamic; 0 extended)
NAT-PT interfaces:
     Ethernet0/0, Ethernet0/1
Hits: 0  Misses: 0
Expired translations: 0
6.3  隧道
随着IPv6网络的发展,出现了许多局部的IPv6网络,但是这些IPv6网络需要通过IPv4骨干网络相连。将这些孤立的“IPv6岛”相互连通必须使用隧道技术。利用隧道技术可以通过现有的运行IPv4协议的Internet骨干网络将局部的IPv6网络连接起来,因而是IPv4向IPv6过渡的初期最易于采用的技术。
路由器将IPv6的数据分组封装入IPv4,IPv4分组的源地址和目的地址分别是隧道入口和出口的IPv4地址。在隧道的出口处,再将IPv6分组取出转发给目的站点。隧道技术只要求在隧道的入口和出口处进行修改,对其他部分没有要求,因而非常容易实现。但是隧道技术不能实现IPv4主机与IPv6主机的直接通信。
隧道配置实例
实验介绍:R1和R4处于网段为fec0:0:0:1::/64的IPv6网络的环境中,R2和R3处于网段为fec0:0:0:2::/64的IPv6网络的环境中,R1和R2是广域网连接并处于网段为10.1.1.0/24的网络环境中。实验要求R3和R4可以通过IPv4的网络,相互学习到路由条目,以实现IPv4和IPv6网络并存。

 

 

 

 

 

 


图6-3 基于CISCO路由器的IPv4和IPv6网络并存
(1)配置R1路由器
Router>
Router>enable             //进入特权模式
Router#configure terminal   //进入全局配置模式
Router(config)#hostname R1  //对路由器进行重命名
R1(config)#no ip domain lookup  //在路由器上不进行域名查找
R1(config)#line console 0    //进入控制台端口
R1(config-line)#logging synchronous //配置光标同步
R1(config-line)#exec-timeout 0 0   //设置路由器超时时间
R1(config)#interface loopback 0  //进入回环端口
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config)#interface serial 0/0
R1(config-if)#ip address 10.0.0.1 255.255.255.0
R1(config-if)#no shutdown  //开启端口(cisco默认是关闭的)
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router ospf 1  //启用ospfv3 进程号是1
R1(config)#interface fastEthernet 1/0 
R1(config-if)#ipv6 address fec0:0:0:1::1/64
R1(config-if)#ipv6 ospf 1 area 0  //在端口上宣告ospf进程区域号是1
R1(config-if)#no shutdown
R1(config)#interface tunnel 0 //开启一个隧道接口
R1(config-if)#ipv6 unnumbered fastEthernet 1/0  //在路由器R1上穿越隧道的端口
R1(config-if)#tunnel source loopback 0  //隧道的源地址
R1(config-if)#tunnel destination 2.2.2.2 //隧道的目的地址
R1(config-if)#tunnel mode ipv6ip  //隧道模式
R1(config-if)#ipv6 ospf 1 area 0
R1(config)#router rip //启用rip协议
R1(config-router)#version 2 //改rip协议的版本为第二版本
R1(config-router)#no auto-summary  //关闭自动汇总
R1(config-router)#network 10.0.0.0 //启用rip协议的网段
R1(config-router)#network 1.1.1.1
R1(config-router)#end
R1#copy running-config startup-config  //保存配置文件
(2)配置R2路由器
Router>
Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#no ip domain lookup
R2(config)#line console 0
R2(config-line)#logging synchronous
R2(config-line)#exec-timeout 0 0
R2(config)#interface loopback 0
R2(config-if)#ip address 2.2.2.2 255.255.255.255
R2 (config)#interface serial 0/0
R2(config-if)#ip address 10.0.0.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#ipv6 unicast-routing
R2(config)#ipv6 router ospf 1
R2(config)#interface fastEthernet 1/0
R2(config-if)#ipv6 address fec0:0:0:2::1/64
R2(config-if)#ipv6 ospf 1 area 0
R2(config-if)#no shutdown
R2(config)#interface tunnel 0
R2(config-if)#ipv6 unnumbered fastEthernet 1/0
R2(config-if)#tunnel source loopback 0
R2(config-if)#tunnel destination 1.1.1.1
R2(config-if)#tunnel mode ipv6ip
R2(config-if)#ipv6 ospf 1 area 0
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 10.0.0.0
R2(config-router)#network 2.2.2.2
R2(config-router)#end
R2#copy running-config startup-config
(3)配置R3路由器
Router>
Router>enable
Router#configure terminal
Router(config)#hostname R3
R3(config)#no ip domain lookup
R3(config)#line console 0
R3(config-line)#logging synchronous
R3(config-line)#exec-timeout 0 0
R3(config)#interface loopback 0
R3(config-if)#ip address 3.3.3.3 255.255.255.255
R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router ospf 1

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页

IPv4与IPv6并存网络技术应用与研究论文 第8页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。