1、北京华尔思网络实验室IPV6实验手册R1EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r1Ipv6 unicast-routingInt s1/1Ipv6 address fec0:12:1/64No shR2EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r2Ipv6 unicast-routingInt s1/0Ipv6 address fec0:12:2/64No shInt s1/1Ipv6 address fec0:23:2/64No shR3EnConf tLine con 0
2、Exec-timeout 0 0Logg syExitHost r3Ipv6 unicast-routingInt s1/0Ipv6 address fec0:23:3/64No shIPV6静态路由r1(config)#ipv6 route fec0:23:/64 s1/1 FE80:C801:EFF:FE10:0测试r3#debug ipv6 packetr1#ping fec0:23:3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to FEC0:23:3, timeout is 2 seconds:.Succe
3、ss rate is 0 percent (0/5) ping不通是因为r3没有回到r1的路由r1#r3#r3#*Jun 5 16:33:42.299: IPV6: source FEC0:12:1 (Serial1/0)*Jun 5 16:33:42.299: dest FEC0:23:3*Jun 5 16:33:42.299: traffic class 0, flow 0x0, len 100+4, prot 58, hops 63, forward to ulp*Jun 5 16:33:42.303: IPV6: source FEC0:23:3 (local)*Jun 5 16:33
4、:42.303: dest FEC0:12:1*Jun 5 16:33:42.303: traffic class 0, flow 0x0, len 100+4, prot 58, hops 64, Route not foundr3#IPV6缺省路由r3(config)#ipv6 route :/0 s1/0r1#ping fec0:23:3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to FEC0:23:3, timeout is 2 seconds:!Success rate is 100 percent (5
5、/5), round-trip min/avg/max = 24/68/148 msr1#IPV6 ACL拒绝R2ping R3 允许R1 ping R3r3(config)#ipv6 access-list ccnpr3(config-ipv6-acl)#deny icmp host fec0:23:2 host fec0:23:3r3(config-ipv6-acl)#permit ip any any r3(config-ipv6-acl)#exitr3(config)#interface s1/0r3(config-if)#ipv6 traffic-filter ccnp in测试r2
6、#ping fec0:23:3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to FEC0:23:3, timeout is 2 seconds:AAAAA ipv6中ping不通就显示aaaaaar1#ping fec0:23:3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to FEC0:23:3, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min
7、/avg/max = 32/64/152 ms实验预先配置R1EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r1Ipv6 unicast-routingInt s1/1Ipv6 address fec0:12:1/64No shInt loo 1Ipv6 address fec0:1:1/64R2EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r2Ipv6 unicast-routingInt s1/0Ipv6 address fec0:12:2/64No shInt s1/1Ipv6 a
8、ddress fec0:23:2/64No shR3EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r3Ipv6 unicast-routingInt s1/0Ipv6 address fec0:23:3/64No shInt loo 1Ipv6 address fec0:3:1/64配置IPV6 RIPR1Config#ipv6 router rip zysInt s1/1Ipv6 rip zys enableInt loo 1Ipv6 rip zys enableR2Config#ipv6 router rip zysInt s1/0Ip
9、v6 rip zys enableInt s1/1Ipv6 rip zys enableR3Config#ipv6 router rip zysInt s1/0Ipv6 rip zys enableInt loo 1Ipv6 rip zys enable测试IPv6 Routing Table - 8 entriesCodes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS -
10、 ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2R FEC0:3:/64 120/3 via FE80:C801:BFF:FE84:0, Serial1/1R FEC0:23:/64 120/2 via FE80:C801:BFF:FE84:0, Serial1/1r1#r1#ping fec0:3:1Type escape sequence to abort.Sending 5, 100-b
11、yte ICMP Echos to FEC0:3:1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 72/115/232 msr1#配置步骤1 router-id 是IPV4 地址2在接口启用 确定 是那个区域R1EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r1Ipv6 unicast-routingInt s1/1Ipv6 address fec0:12:1/64No shInt loo 1Ipv6 address f
12、ec0:1:1/64R2EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r2Ipv6 unicast-routingInt s1/0Ipv6 address fec0:12:2/64No shInt s1/1Ipv6 address fec0:23:2/64No shR3EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r3Ipv6 unicast-routingInt s1/0Ipv6 address fec0:23:3/64No shInt loo 1Ipv6 address fec0:3
13、:1/64R1Int loo 2Ip add 1.1.1.1 255.255.255.0Ipv6 router ospf 1Router-id 1.1.1.1ExitInt loo 1Ipv6 ospf 1 area 0Int s1/1Ipv6 ospf 1 area 0R2Int loo 2Ip add 2.2.2.2 255.255.255.0Ipv6 router ospf 1Router-id 2.2.2.2ExitInt s1/0Ipv6 ospf 1 area 0Int s1/1Ipv6 ospf 1 area 1R3Int loo 2Ip add 3.3.3.3 255.255.
14、255.0Ipv6 router ospf 1Router-id 3.3.3.3ExitInt s1/0Ipv6 ospf 1 area 1Int loo 1Ipv6 ospf 1 area 1测试r2#show ipv6 ospf neiNeighbor ID Pri State Dead Time Interface ID Interface1.1.1.1 1 FULL/ - 00:00:32 4 Serial1/03.3.3.3 1 FULL/ - 00:00:33 3 Serial1/1r2#r3#show ipv6 route ospfIPv6 Routing Table - 8 e
15、ntriesCodes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2OI FEC0:1:1/128 110/128 via
16、 FE80:C801:BFF:FE84:0, Serial1/0OI FEC0:12:/64 110/128 via FE80:C801:BFF:FE84:0, Serial1/0r3#r3#ping fec0:1:1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to FEC0:1:1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 64/119/204 msR1EnConf tLine con 0Ex
17、ec-timeout 0 0Logg syExitHost r1Ipv6 unicast-routingInt s1/1Ipv6 address fec0:12:1/64No shInt loo 1Ipv6 address fec0:1:1/64R2EnConf tLine con 0Exec-timeout 0 0Logg syExitHost r2Ipv6 unicast-routingInt s1/0Ipv6 address fec0:12:2/64No shInt s1/1Ipv6 address fec0:23:2/64No shR3EnConf tLine con 0Exec-ti
18、meout 0 0Logg syExitHost r3Ipv6 unicast-routingInt s1/0Ipv6 address fec0:23:3/64No shInt loo 1Ipv6 address fec0:3:1/64基本配置r1(config)#router isisr1(config-router)#address-family ipv6 r1(config-router-af)#net 49.0001.0000.0000.0001.00r1(config)#int s1/1r1(config-if)#ipv6 router isisr1(config-if)#int l
19、oo 1r1(config-if)#ipv6 router isisr2(config)#router isisr2(config-router)#address-family ipv6 r2(config-router-af)#net 49.0001.0000.0000.0002.00r2(config)#int s1/1r2(config-if)#ipv6 router isisr2(config-if)#int s1/0r2(config-if)#ipv6 router isisr3(config)#router isisr3(config-router)#address-family
20、ipv6r3(config-router-af)#net 49.0002.0000.0000.0003.00r3(config-router)#exitr3(config)#int s1/0r3(config-if)#ipv6 router isisr3(config-if)#int loo 1r3(config-if)#ipv6 router isis测试r3#show ipv6 route isisIPv6 Routing Table - 8 entriesCodes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - P
21、er-user Static route I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2I2 FEC0:1:/64 115/30 via FE80:C801:BFF:FE84:0, Serial1/0I2 FEC0:12:/64 115/20 via FE80:C801:BFF:FE84
22、:0, Serial1/0r3#ping fec0:1:1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to FEC0:1:1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 56/104/188 msr3#定义R1接收level-1 信息Config#router isisConfig-router#is-type level-1r1#show ipv6 route isisI1 :/0 115/10
23、 via FE80:C801:BFF:FE84:0, Serial1/1I1 FEC0:23:/64 115/20 via FE80:C801:BFF:FE84:0, Serial1/1r1#定义R2接口级别 ;减小R1的路由表r2(config-if)#int s1/0r2(config-if)#isis circuit-type level-1r2(config-if)#int s1/1r2(config-if)#isis circuit-type level-2查看r1#show ipv6 route isisIPv6 Routing Table - 7 entriesCodes: C
24、- Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2I1 :/0 115/10 via FE80:C801:BFF:FE84:0, Se
25、rial1/1r1#IPV6 BGP基本配置R1ipv6 unicast-routinginterface Loopback1ipv6 address 2001:410:110:1:1/64 ipv6 router isis interface Loopback2ipv6 address 2001:410:110:11:1/64 ipv6 router isis interface Serial1/1ipv6 address FEC0:12:1/64 ipv6 router isis interface Serial1/2ipv6 address FEC0:14:1/64 ipv6 route
26、r isis router isis net 49.0001.0000.0000.0001.00r2ipv6 unicast-routinginterface Loopback1ipv6 address 2001:410:110:2:2/64 ipv6 router isis interface Serial1/0ipv6 address FEC0:12:2/64 ipv6 router isis interface Serial1/1ipv6 address FEC0:23:2/64router isis net 49.0001.0000.0000.0002.00r3ipv6 unicast
27、-routinginterface Loopback1ipv6 address 2001:410:110:3:1/64interface Loopback2ipv6 address 2001:410:110:33:1/64interface Serial1/0ipv6 address FEC0:23:3/64interface Serial1/2ipv6 address FEC0:34:3/64r7ipv6 unicast-routinginterface Loopback1ipv6 address 2001:410:110:4:4/64 ipv6 router isis interface
28、Serial1/0ipv6 address FEC0:14:4/64 ipv6 router isis interface Serial1/2ipv6 address FEC0:34:4/64router isis net 49.0001.0000.0000.0007.00BGP配置R1Int loo 10Ip add 1.1.1.1 255.255.255.0router bgp 100 bgp router-id 1.1.1.1 no bgp default ipv4-unicast neighbor 2001:410:110:2:2 remote-as 100 neighbor 2001
29、:410:110:2:2 update-source Loopback1 neighbor 2001:410:110:4:4 remote-as 100 neighbor 2001:410:110:4:4 update-source Loopback1address-family ipv6network 2001:410:110:1:/64 network 2001:410:110:11:/64 exit-address-familyr2int loo 10ip add 2.2.2.2 255.255.255.0router bgp 100 bgp router-id 2.2.2.2 no bgp default ipv4-unicastneighbor 2001:410:110:1:1 remote-as 100 neighbor 2001:410:110:1:1 update-source Loopback1 neighbor 2001:410:110:4:4 remote-as 100 neighbor 2001:410:110:4:
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1