路由器A2配置: hostname a2 ! enable secret 5 $1$kJyk$CfMLfg87wovmbVp5lHUfk/ enable password cisco ! ! interface Loopback0 ip address 10.0.2.1 255.255.255.252 ! interface Ethernet0 ip address 10.86.16.2 255.255.240.0 ip rip send version 2 ip rip receive version 2 ! interface Ethernet1 ip address 10.0.210.5 255.255.255.252 ip rip send version 2 ip rip receive version 2 ! interface Serial0 no ip address shutdown ! interface Serial1 no ip address shutdown ! router rip version 2 redistribute bgp 100 network 10.0.0.0 ! router bgp 100 network 10.0.210.4 mask 255.255.255.252 network 10.80.0.0 mask 255.240.0.0 redistribute rip neighbor 10.0.210.6 remote-as 200 ! ip classless ! line con 0 line aux 0 line vty 0 4 password cisco login ! end
路由器D的配置: d#sh conf Using 1069 out of 32762 bytes ! version 11.0 service udp-small-servers service tcp-small-servers ! hostname d ! enable secret 5 $1$EBoX$3AWqea9PpP9xTgr49gqLy. enable password cisco ! ! interface Loopback0 description Loopback Interface of Router ip address 10.0.1.1 255.255.255.252 no ip mroute-cache ! interface Ethernet0 description Core Region Router in Guangzhou ip address 10.0.210.6 255.255.255.252 no ip mroute-cache ! interface Serial0 ip address 10.185.1.17 255.255.255.252 no ip mroute-cache ip ospf network broadcast clockrate 9600 ! interface Serial1 no ip address no ip mroute-cache ip ospf network broadcast shutdown ! router ospf 200 redistribute bgp 200 subnets network 10.0.210.4 0.0.0.3 area 1 network 10.185.1.16 0.0.0.3 area 1 ! router bgp 200 network 10.0.210.4 mask 255.255.255.252 network 10.0.32.0 mask 255.255.240.0 network 10.185.1.16 mask 255.255.255.252 network 10.0.1.0 mask 255.255.255.252 neighbor 10.0.210.5 remote-as 100 ! ip classless ip ospf name-lookup ! line con 0 line aux 0 transport input all line vty 0 4 password cisco login ! end
路由器B的配置: b#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route
Gateway of last resort is 10.85.1.5 to network 0.0.0.0
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks R 10.0.2.0/30 [120/2] via 10.85.1.5, 00:00:25, Serial0 C 10.88.16.0/20 is directly connected, Ethernet0 R 10.86.16.0/20 [120/1] via 10.85.1.5, 00:00:25, Serial0 R 10.87.16.0/20 [120/2] via 10.85.1.5, 00:00:25, Serial0 R 10.85.1.8/30 [120/1] via 10.85.1.5, 00:00:25, Serial0 C 10.85.1.4/30 is directly connected, Serial0 R 10.0.210.4/30 [120/2] via 10.85.1.5, 00:00:25, Serial0 R* 0.0.0.0/0 [120/1] via 10.85.1.5, 00:00:00, Serial0
b#sh conf Using 572 out of 32762 bytes ! version 11.1 service udp-small-servers service tcp-small-servers ! hostname b ! ! ! interface Ethernet0 ip address 10.88.16.1 255.255.240.0 ip rip send version 2 ip rip receive version 2 ! interface Serial0 ip address 10.85.1.6 255.255.255.252 ip rip send version 2 ip rip receive version 2 clockrate 9600 ! interface Serial1 ip address 10.85.1.13 255.255.255.252 ip rip send version 2 ip rip receive version 2 clockrate 9600 ! router rip version 2 network 10.0.0.0 ! ip classless ! line con 0 line 1 8 line aux 0 line vty 0 4 password cisco login ! end /************************************************************************/
路由器A1的配置: a1#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR
Gateway of last resort is 10.86.16.2 to network 0.0.0.0
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks R 10.0.2.0/30 [120/1] via 10.86.16.2, 00:00:23, Ethernet0 R 10.88.16.0/20 [120/1] via 10.85.1.6, 00:00:27, Serial0 C 10.86.16.0/20 is directly connected, Ethernet0 R 10.87.16.0/20 [120/1] via 10.85.1.10, 00:00:24, Serial1 C 10.85.1.8/30 is directly connected, Serial1 C 10.85.1.4/30 is directly connected, Serial0 R 10.0.210.4/30 [120/1] via 10.86.16.2, 00:00:23, Ethernet0 S* 0.0.0.0/0 [1/0] via 10.86.16.2 a1#sh conf Using 600 out of 32762 bytes ! version 11.2 ! hostname a1 ! enable secret 5 $1$PKCA$FzjiYXenZNipsGuOcpwAg0 enable password cisco ! ! interface Ethernet0 ip address 10.86.16.1 255.255.240.0 ip rip send version 2 ip rip receive version 2 ! interface Serial0 ip address 10.85.1.5 255.255.255.252 ip rip send version 2 ip rip receive version 2 ! interface Serial1 ip address 10.85.1.9 255.255.255.252 ip rip send version 2 ip rip receive version 2 clockrate 9600 ! router rip version 2 network 10.0.0.0 ! ip classless ip route 0.0.0.0 0.0.0.0 10.86.16.2 ! line con 0 line aux 0 line vty 0 4 password cisco login ! end
a1#
/*****************************************************/ 路由器B1的配置: b1#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 4 subnets, 3 masks O E2 10.0.0.0/8 [110/1] via 10.185.1.17, 00:34:51, Serial0 C 10.0.32.0/20 is directly connected, Ethernet0 C 10.185.1.16/30 is directly connected, Serial0 O 10.0.210.4/30 [110/74] via 10.185.1.17, 00:53:25, Serial0 b1#sh conf Using 441 out of 32762 bytes ! version 11.1 service udp-small-servers service tcp-small-servers ! hostname b1 ! ! ! interface Ethernet0 ip address 10.0.32.1 255.255.240.0 ! interface Serial0 ip address 10.185.1.18 255.255.255.252 ip ospf network broadcast ! interface Serial1 no ip address shutdown ! router ospf 200 network 10.0.32.0 0.0.0.3 area 1 network 10.185.1.16 0.0.0.3 area 1 ! no ip classless ! line con 0 line 1 8 line aux 0 line vty 0 4 login ! end
路由器C的配置: ! hostname c ! enable secret 5 $1$IoKm$0ai6l75ThSs0zeR9T90W3/ enable password cisco ! ! interface Ethernet0 ip address 10.87.16.1 255.255.240.0 ip rip send version 2 ip rip receive version 2 ! interface Serial0 ip address 10.85.1.14 255.255.255.252 ip rip send version 2 clockrate 9600 ! interface Serial1 ip address 10.85.1.10 255.255.255.252 ip rip send version 2 ip rip receive version 2 ! router rip version 2 network 10.0.0.0 ! ip classless ! line con 0 line 1 16 transport input all line aux 0 transport input all line vty 0 4 password cisco login ! end