《IPv6-IPv4过度方案.doc》由会员分享,可在线阅读,更多相关《IPv6-IPv4过度方案.doc(7页珍藏版)》请在课桌文档上搜索。
1、-IPV6/IPV4 过度机制1.双协议栈2011:1:1/112.2/242011:10:2/112图1双协议栈拓扑表1-1 设备IP地址配置设备接口IPv4地址IPv6地址Router0F0/02011:10:1/112F0/12011:1:2/112S2/02011:12:1/112Router1F0/0S2/02011:12:2/112主要配置Router1配置:(1)配置接口地址Router1(config)* ipv6 unicast-routing Router1(config)* int f0/0Router1(config-if)* ipv6 address 2011:10:
2、1/112Router1(config-if)* Router1(config-if)* no shutdown相应的接口做同样的配置即可。 (2)配置路由协议RIPngRouter1(config)* router ripRouter1(config-router)* version 2Router1(config-router)*Router1(config-router)*Router1(config)* ipv6 router rip r1Router1(config-if)* int f0/0Router1(config-if)* ipv6 rip r1 enable在相应ipv6端
3、口应用RIPng即可Router2配置类似。连通性测试PC1 ping PC3ping成功,证明PC1与PC3可以通过IPV4进行通信。PC1 ping PC2Ping成功,证明PC1与PC2可以通过IPV6进行通信。2.手工隧道.2.2图2.手工隧道拓扑主要配置Router4主要配置如下:R4(config)* ipv6 unicast-routingR4(config)*int f0/0R4(config-if)*no shutdownR4(config-if)*ip address R4(config-if)*int f0/1R4(config-if)*no shutdownR4(con
4、fig-if)*ipv6 address 2001:251:ffff:5:1/64R4(conifg)* router ripR4(conifg-router)* network R4(conifg-router)* version 2R4(conifg-router)* no auR4(conifg)*int tunnel 0R4(config-if)*ipv6 address 2001:1:5:1:1/64R4(config-if)*tunnel source R4(config-if)*tunnel destination R4(config-if)*tunnel mode ipv6ip
5、R4(conifg)*ipv6 route 2001:250:FFFF:5:/64 tunnel 0-Router3主要配置如下:R3(config)* ipv6 unicast-routingR3(config)*int f0/0R3(config-if)*no shutdownR3(config-if)*ip address R3(config-if)*int f0/1R3(config-if)*no shutdownR3(config-if)*ipv6 address 2001:250:ffff:5:1/64R3(conifg)* router ripR3(conifg-router)*
6、 network 192.168.2.0R3(conifg-router)* version 2R3(conifg-router)* no auR3(conifg)*int tunnel 0R3(config-if)*ipv6 address 2001:1:5:2:1/64R3(config-if)*tunnel source R3(config-if)*tunnel destination R3(config-if)*tunnel mode ipv6ipR3(conifg)*ipv6 route 2001:251:FFFF:5:/64 tunnel 0-Router2主要配置如下:R2(co
7、nfig)*int f0/0R2(config-if)*no shutdownR2(config-if)*ip address R2(config-if)*int f0/1R2(config-if)*no shutdownR2(config-if)*ip address R2(conifg)* router ripR2(conifg-router)* network R2(conifg-router)* network 192.168.2.0R2(conifg-router)* version 2R2(conifg-router)* no au测试:用VPCS(ipv6:2001:251:ff
8、ff:5:2/64)进行测试,ping R3 2001:250:ffff:5:1/64 进行测试.成功!说明IPV6在IPV4的主干道上可以进行通信。3.6 TO 4 隧道拓扑如手工隧道一样,IP配置也一样。主要配置较手工隧道有如下不同:R4:R3:测试:Ping成功!4.isatap隧道R1主要的隧道配置:R1(conifg)*int tunnel 0R1(config-if)*ipv6 address 2001:1:5:/64 eui-64R1(config-if)*tunnel source lo 0R1(config-if)*tunnel mode ipv6ip isatapR1(co
9、nifg)*int lo 0R1(conifg)*R1(conifg)*ipv6 route 2001:250:ffff:5:/64 tunnel 0 fe80:5efe:202:202R3主要的隧道配置:R3(conifg)*int tunnel 0R3(config-if)*ipv6 address 2001:1:5:/64 eui-64R3(config-if)*tunnel source lo 0R3(config-if)*tunnel mode ipv6ip isatapR3(conifg)*int lo 0R3(conifg)*R3(conifg)*ipv6 route 2001:
10、251:ffff:5:/64 tunnel 0 fe80:5efe:101:101在这里R1,R2,R3接口信息不列出了,注意三个路由器分别配上RIPv2,保证了IPv4网络的通信。测试:成功!注意:ISATAP隧道,是可以支持IPv6节点 访问IPv4节点的,由于模拟器问题,这里模拟不出来,其实需要在路由上配置一个ISATAP路由,在IPv4 PC上开启ISATAP服务,就能获取一个有IPv4组成的IPv6地址从而可以访问IPv6节点的设备了。5.静态NAT-PT转换主要配置R3配上RIPng,R2配上RIPv2R1主要配置R1(config)*ipv6 unicast-routingR1(
11、config)*int s0/0R1(config-if)*ipv6 natR1(config-if)*no shutdownR1(config-if)*e*itR1(config)*int s0/1R1(config-if)*ipv6 address 14:1/96R1(config-if)*ipv6 natR1(config-if)*no shutdownR1(config-if)*e*itR1(config)* ipv6 nat v6v4 source 172.16.123.2 1144:1R1(config)*ipv6 nat prefi* 1144:/96测试:1.R2 ping R
12、3的映射地址,成功,R2可以通过映射访问只有IPv6地址的R3。2.R3 ping R2的映射地址,成功,R3可以通过映射访问只有IPv4地址的R2。6.动态 NAT-PT 转换各路由端口地址配置不列出,注意R1,R2,R3分别配置RIPng,R3,R4要配置RIPv2。R3主要配置如下:R3(config)*int f0/0R3(config-if)*ipv6 natR3(config)*int s0/0R3(config-if)*ipv6 natR3(config)*int s0/1R3(config-if)*ipv6 natR3(config)*int s0/2R3(config-if)
13、*ipv6 natR3(config)*ipv6 router rip r1R3(config-rtr)*redistribute connected metric 1R3(config)*ipv6 nat v4v6 source 172.16.12.2 1144:1R3(config)*ipv6 nat v4v6 source 172.16.123.2 1144:2R3(config)*ipv6 nat v6v4 source list loopback pool pool12R3(config)*ipv6 nat v6v4 source list physical pool pool123
14、R3(config)*ipv6 nat v6v4 pool pool12 172.16.12.100 172.16.12.101 prefi*-length 24R3(config)*ipv6 nat v6v4 pool pool123 172.16.123.100 172.16.123.101 prefi*-length 24R3(config)*ipv6 nat prefi* 1144:/96R3(config)*ipv6 access-list loopbackR3(config-ipv6-acl)*permit ipv6 104:/64 anyR3(config-ipv6-acl)*p
15、ermit ipv6 103:/64 anyR3(config)*ipv6 access-list physicalR3(config-ipv6-acl)*permit ipv6 14:/64 anyR3(config-ipv6-acl)*permit ipv6 13:/64 anyR3(config)*ipv6 nat prefi* 1144:/96总结经过几天的实验与测试,发现如果需要在只有单IPv6与单IPv4的两个主机进行通信,只有进行NAT-PT映射与ISATA隧道才能实现,也许有更好的办法,那就是我学习的方向了。其他的均要运用上双协议栈方能相互通信,若要经过IPv4主干网的,需要用到IPv6到IPv4的过渡,如双协议栈,隧道,NAT-PT等方案进行过渡。. z.