您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 咨询培训 > cisco_中IPv6实验
厦门微思网络教育中心电话:(0592)-22123302236691IPv6实验部分:一.IPv6静态路由配置实验拓扑:IPv6route命令添加静态ipv6路由:Router(config)#ipv6unicast-routing//全局启用IPV6单播路由功能Router(config)#ipv6routeipv6-prefix/prefix-length{next-hop|interface}[distance]在CISCOIOS软件支持中语法为:Router(config)#ipv6routeipv6-prefix/prefix-lengthinterfacelink-local-address[distance]配置R1和R2:R1使用网络接口S1/0,通过下跳FE80::CE00:2FF:FEA4:0,可到达目的IPV6网络2001:2:2::/48r1(config)#ipv6route2001:2:2::/48serial1/0FE80::CE00:2FF:FEA4:0r2(config)#ipv6route2001:1:1::/48serial1/0FE80::CE00:3FF:FE68:0或:r2(config)#ipv6route2001:1:1::/482001:A:A:A::1默认路由配置例子:r2(config)#ipv6route::/0serial1/0FE80::CE00:3FF:FE68:0厦门微思网络教育中心电话:(0592)-22123302236691静态路由配置时要注意:在IPV6规范中,不推荐使用聚合全球单播或本地站点地址作为下一跳地址,一般使用本地链路地址作为下一跳,但在配置本地地址作为一下跳时,在配置中必须指出路由器上相应的网络接口二.配置6to4隧道连接IPv4/6网络6to4机制的特点是:1、自动隧道机制2、在站点边缘启用,6to4的路由器通过IPv4网络到达对方。3、自动前缀分配,所有前缀均使用2002::/16,IPv4的地址转换为16进制附在2002::/16后面.最终表现形式是2002:ipv4-address::/48。4、没有IPv6路由传播,每个前缀都是基于IPv4地址,因此IPv4的路由域已经足够使用。本实验目的:通过6to4隧道连接2个IPv6网络:实验拓扑如下:R4路由器连接的IPv6网络所属网段为2002:0202:0202::/48(可划分出65535个子网);R5路由器连接的IPv6网络所属网段为2002:0303:0303::/48(可划分出65535个子网);这两个IPv6网络之间要通信,可通过穿透IPv4Internet建立6to4隧道。R1、R2、R3运行OSPFv2来完成整个IPv4网络的可达性;而IPv6网络分别运行OSPFv3来完成各自内部的可达性。以下为每个路由器完整配置:配置R1:厦门微思网络教育中心电话:(0592)-22123302236691hostnamer1interfaceSerial1/0ipaddress12.1.1.1255.255.255.0clockrate64000interfaceSerial1/1ipaddress13.1.1.1255.255.255.0clockrate64000routerospf1log-adjacency-changesnetwork0.0.0.0255.255.255.255area0end配置R2:ipv6unicast-routinginterfaceTunnel0ipv6enabletunnelsourceLoopback0tunnelmodeipv6ip6to4!interfaceLoopback0ipaddress2.2.2.2255.255.255.0!interfaceSerial1/0ipaddress12.1.1.2255.255.255.0!interfaceSerial1/1ipospf1area0ipv6enableipv6ospf1area0routerospf1log-adjacency-changesnetwork0.0.0.0255.255.255.255area0ipv6route2002:303:303::/48Tunnel0ipv6routerospf1log-adjacency-changesredistributestatic//将静态路由重发布进OSPF,以使网络内部(R4)获得对端路由厦门微思网络教育中心电话:(0592)-22123302236691配置R3:ipv6unicast-routinginterfaceTunnel0ipv6enabletunnelsourceLoopback0tunnelmodeipv6ip6to4!interfaceLoopback0ipaddress3.3.3.3255.255.255.0!interfaceSerial1/0ipaddress13.1.1.3255.255.255.0!interfaceSerial1/1ipv6enableipv6ospf1area0!routerospf1log-adjacency-changesnetwork0.0.0.0255.255.255.255area0ipv6route2002:202:202::/48Tunnel0ipv6routerospf1log-adjacency-changesredistributestatic//将静态路由重发布进OSPF,以使网络内部(R5)获得对端路由配置R4:ipv6unicast-routinginterfaceLoopback0ipaddress4.4.4.4255.255.255.0!interfaceEthernet0/0ipv6address2002:202:202:4::4/64ipv6enableipv6ospf1area0nokeepalive!interfaceSerial1/0ipv6enableipv6ospf1area0厦门微思网络教育中心电话:(0592)-22123302236691ipv6routerospf1router-id4.4.4.4配置R5:ipv6unicast-routinginterfaceLoopback0ipaddress5.5.5.5255.255.255.0!interfaceEthernet0/0ipv6address2002:303:303:5::5/64ipv6ospf1area0nokeepalive!interfaceSerial1/0ipv6enableipv6ospf1area0!ipv6routerospf1router-id5.5.5.5查看R4,R5的路由表:r4#showipv6routeIPv6RoutingTable-5entriesCodes:C-Connected,L-Local,S-Static,R-RIP,B-BGPU-Per-userStaticrouteI1-ISISL1,I2-ISISL2,IA-ISISinterarea,IS-ISISsummaryO-OSPFintra,OI-OSPFinter,OE1-OSPFext1,OE2-OSPFext2ON1-OSPFNSSAext1,ON2-OSPFNSSAext2C2002:202:202:4::/64[0/0]via::,Ethernet0/0L2002:202:202:4::4/128[0/0]via::,Ethernet0/0OE22002:303:303::/48[110/20]viaFE80::CE00:FFF:FE88:0,Serial1/0LFE80::/10[0/0]via::,Null0LFF00::/8[0/0]via::,Null0r5#showipv6routeIPv6RoutingTable-5entries厦门微思网络教育中心电话:(0592)-22123302236691Codes:C-Connected,L-Local,S-Static,R-RIP,B-BGPU-Per-userStaticrouteI1-ISISL1,I2-ISISL2,IA-ISISinterarea,IS-ISISsummaryO-OSPFintra,OI-OSPFinter,OE1-OSPFext1,OE2-OSPFext2ON1-OSPFNSSAext1,ON2-OSPFNSSAext2OE22002:202:202::/48[110/20]viaFE80::CE00:FFF:FE34:0,Serial1/0C2002:303:303:5::/64[0/0]via::,Ethernet0/0L2002:303:303:5::5/128[0/0]via::,Ethernet0/0LFE80::/10[0/0]via::,Null0LFF00::/8[0/0]via::,Null0检查R4、R5的路由表,可见均已经有对应网络的路由信息:用PING命令测试网络连通性:r4#ping2002:303:303:5::5Typeescapesequencetoabort.Sending5,100-byteICMPEchosto2002:303:303:5::5,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=240/410/504msr4#r5#ping2002:202:202:4::4Typeescapesequencetoabort.Sending5,100-byteICMPEchosto2002:202:202:4::4,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=280/432/632msr5#三.RIPng(下一代路由信息协议)实验配置实验拓扑:厦门微思网络教育中心电话:(0592)-22123302236691配置R1:ipv6unicast-routing//启用ipv6单播路由协议interfaceEthernet0/0ipv6address2001:1:1:1::1/64ipv6ripciscoenable//在接口启用RIPngnokeepaliveinterfaceSerial1/0ipv6address2001:A:A:A::1/64ipv6ripciscoenable//在接口启用RIPnginterfaceSerial1/1ipv6address2001:B:B:B::1/64ipv6ripciscoenable//在接口启用RIPngipv6routerripcisco//定义标识为cisco的的RIPng进程配置R2:ipv6unicast-routinginterfaceEthernet0/0ipv6address2001:2:2:2::2/64厦门微思网络教育中心电话:(0592)-22123302236691ipv6ripciscoenablenokeepaliveinterfaceSerial1/0ipv6address2001:A:A:A::2/64ipv6ripciscoenableipv6routerripcisco配置R3ipv6unicast-routing//启用ipv6单播路由协议interfaceEthernet0/0ipv6address2001:3:3:1::3/64ipv6address2001:3:3:2::
本文标题:cisco_中IPv6实验
链接地址:https://www.777doc.com/doc-4496946 .html