










步骤一:配置各路由器的IP地址,并使用ping命令确认直连接口相互可以ping通。
步骤二:配置各路由器的RIP协议。
步骤三:在R1使用PING 172.16.2.1结果是不通的。
步骤四:解决步骤三的问题。解决的方法是:启用RIP V2的协议
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#exit
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#exit
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#exit
R2#show 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, su - IS-IS summary, 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/16 is variably subnetted, 3 subnets, 2 masks
R 172.16.1.0/24 [120/1] via 172.16.3.1, 00:00:00, Serial1/1
R 172.16.2.0/27 [120/1] via 172.16.3.1, 00:00:00, Serial1/1
C 172.16.3.0/24 is directly connected, Serial1/1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R 10.2.2.0/27 [120/1] via 10.3.3.1, 00:00:00, Serial1/0
R 10.1.1.0/24 [120/1] via 10.3.3.1, 00:00:00, Serial1/0
C 10.3.3.0/24 is directly connected, Serial1/0
R3#
00:06:36: RIP: sending v2 update to 224.0.0.9 via Serial1/0 (172.16.3.1)
00:06:36: RIP: build update entries
00:06:36: 172.16.1.0/24 via 0.0.0.0, metric 1, tag 0
00:06:36: 172.16.2.0/27 via 0.0.0.0, metric 1, tag 0
00:06:36: RIP: sending v2 update to 224.0.0.9 via Loopback0 (172.16.1.1)
00:06:36: RIP: build update entries
00:06:36: 10.0.0.0/8 via 0.0.0.0, metric 2, tag 0
00:06:36: 172.16.2.0/27 via 0.0.0.0, metric 1, tag 0
00:06:36: 172.16.3.0/24 via 0.0.0.0, metric 1, tag 0
00:06:36: RIP: sending v2 update to 224.0.0.9 via Loopback1 (172.16.2.1)
00:06:36: RIP: build update entries
00:06:36: 10.0.0.0/8 via 0.0.0.0, metric 2, tag 0
00:06:36: 172.16.1.0/24 via 0.0.0.0, metric 1, tag 0
00:06:36: 172.16.3.0/24 via 0.0.0.0, metric 1, tag 0
00:06:36: RIP: ignored v2 packet from 172.16.1.1 (sourced from one of our addresses)
00:06:36: RIP: ignored v2 packet from 172.16.2.1 (sourced from one of our addresses)
00:06:37: RIP: received v2 update from 172.16.3.2 on Serial1/0
00:06:37: 10.0.0.0/8 via 0.0.0.0 in 1 hops
R3#
R1#show 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, su - IS-IS summary, 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
R 172.16.0.0/16 [120/1] via 10.3.3.2, 00:00:06, Serial1/1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.2.2.0/27 is directly connected, Loopback1
C 10.1.1.0/24 is directly connected, Loopback0
C 10.3.3.0/24 is directly connected, Serial1/1
R1#
R2(config)#router rip
R2(config-router)#no auto-summary
R2(config-router)#exit
R1#show 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, su - IS-IS summary, 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/16 is variably subnetted, 3 subnets, 2 masks
R 172.16.1.0/24 [120/2] via 10.3.3.2, 00:00:00, Serial1/1
R 172.16.2.0/27 [120/2] via 10.3.3.2, 00:00:00, Serial1/1
R 172.16.3.0/24 [120/1] via 10.3.3.2, 00:00:00, Serial1/1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.2.2.0/27 is directly connected, Loopback1
C 10.1.1.0/24 is directly connected, Loopback0
C 10.3.3.0/24 is directly connected, Serial1/1
R2(config)#interface serial 1/0
R2(config-if)#ip summary-address rip 172.16.0.0 255.255.0.0
R1#show 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, su - IS-IS summary, 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
R 172.16.0.0/16 [120/1] via 10.3.3.2, 00:00:00, Serial1/1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.2.2.0/27 is directly connected, Loopback1
C 10.1.1.0/24 is directly connected, Loopback0
C 10.3.3.0/24 is directly connected, Serial1/1
R1#
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。