2 RIP协议的基本配置


配置清单5-2 配置RIP协议
第1段:配置RIP协议
R1#conft
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router rip
R1(config-router)#eetwork 172.16.0.0
R1(config-router)#
Term_Server>2
[Resuming connection 2 to R2 ...]
R2#conft
Enter configuration commands, one per line. End with CNTT ./Z
R2(config)#router rip
R2(config-router)#network 172.16.0.0
R2(config-router)#
Term_Server>3
[Resuming connection 3 to R3 ...]
R3#conft
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router rip
R3(config-router)#network 172.16.0.0
R3(config-router)#
第2段:查看路由表
Term_Server> 1
[Resuming connection I to R1... ]
R1(config-router)#end
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
 N - 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, ia - IS-IS inter area
 * - candidate default, U - per-user static route, o - ODR
 P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 6 subnets
R 172.16.23.0[20/1]via 172.16.12.2,00:00:06,Serial0
[20/1]via 172.16.13.3,00:00:07,Serial1
C 172.16.12.0 is directly connected, Serial0
C 172.16.13.0 is directly connected. Serial1
C 172.16.1.0 is directly connected, Ethernet0
R 172.16.2.0[20/1]via 172.16.12.2,00:00:06,Serial0
R172.16.3.0[20/1]via 172.16.13.3,00:00:07,Serial1
R1#
Term_Server>2
[Resuming connection 2 to R2 ... ]
R2(config-router)#end
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M " mobile, B - BGP
 D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
 E1 - OSPF external type I, E2 - OSPF external type 2, E - EGP
 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
 * - candidate default, U - per-user static route, o - ODR
 P - periodic downloaded static route
Gateway of last resort is not set
 
172.16.0.0/24 is subnetted, 6 subnets
C 172.16.23.0 is directly connected, Seriall
C 172.16.12.0 is directly connected, SerialO
R 172.16.13.0[20/1]via 172.16.12.1,00:00:08,Serial0
[20/1]via 172.16.23.3,00:00:09,Serial1
R 172.16.1.0[20/1]via 172.16.12.1,00:00:08,Serial0
C 172.16.2.0 is directly connected, Ethernet0
R 172.16.3.0[20/1]via 172.16.23.3,00:00:09,Serial1
R2#
Term_Server>3
[Resuming connection 3 to R3 ... ]
R3(config-.router)#end
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX -EIGRP external, 0 - 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, ia - IS-IS inter area
 * - candidate default, U - per-user static route, o - ODR
 P - periodic downloaded static route
Gateway of last resort is not set
 172.16.0.0/24 is subnetted, 6 subnets
C 172.16.23.0 is directly connected, Serial1
R 172.16.12.0 [120/13 via 172.16.13.1, 00:00:17, Serial0
[120/1} via 172.16.23.2, 00:00:26, Serial1
C 172.16.13.0 is directly connected, SerialO
R 172.16.1.0 [120/1] via 172.16.13.1, 00:00:17, Serial0
R 172.16.2,0 [120/1] via 172.16.23.2,00:00:26, Serial1
C 172.16.3.0 is directly connected, Ethemet0
R3#

推荐阅读