在默认情况下是这样滴:
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, 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, 1 subnets
C 172.16.1.0 is directly connected, Serial0
à
没有学习到任何路由条目
10.0.0 .0/24 is subnetted, 4 subnets
C 10.1.3 .0 is directly connected, Serial0
C 10.1.1 .0 is directly connected, Loopback0
处理完之后是这样滴:
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, 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, 1 subnets
C 172.16.1.0 is directly connected, Serial0
10.0.0 .0/24 is subnetted, 4 subnets
C 10.1.3 .0 is directly connected, Serial0
R 10.1.2 .0 [120/1] vi a 10.1.3 .2, 00:00:14, Serial0
à
已经学习到了路由
R 10.0.0 .0 [120/1] via 172.16.1.2, 00:00:14 , Serial0
C 10.1.1 .0 is directly connected, Loopback0
1、RIP的解决办法:加入第二地址
ip add x.x.x.x v.v.v.v secondary
2、EIGRP解决办法:关闭自动汇总
no auto-summary
自动汇总使距离矢量路由协议的通病。