- CNA-02-005.pkt, (Backup Link)
- CNA-02-005-wrong-sol.pkt, (Backup Link)
- CNA-02-005-final-sol.pkt, (Backup Link)
這個例子, 是典型的 "不分等級(Classless)" 的新世界才存在的配置方式, 所以, 任何 "分等級(Classful)" 的路由資訊交換協定, 都沒辦法正確運作.
分等級協定失靈的關鍵, 在於 R2 的路由表, 將會出現兩筆 10.0.0.0/8 的路由資訊. 這是依照分等級世界的規定, 當告知路由資訊給非本主網段的路由器時, 必須自動將所有較細緻 (more-specific) 的路由資訊濃縮(summarize)成一筆, 也就是分等級世界的主網段本身(本例為10.0.0.0這個A等級網段).
所以, 任何經過 R2 往下方的 10.1.1.0/24 和 10.2.2.0/24 兩網段的封包, 都會有一半走錯路而遺失.
以下是錯誤的結果 (CNA-02-005-wrong-sol.pkt, Backup Link):
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, 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 10.0.0.0/8 [120/1] via 192.168.4.1, 00:00:17, Serial0/0/1
[120/1] via 172.30.2.1, 00:00:14, Serial0/0/0
172.30.0.0/24 is subnetted, 3 subnets
R 172.30.1.0 [120/1] via 172.30.2.1, 00:00:14, Serial0/0/0
C 172.30.2.0 is directly connected, Serial0/0/0
C 172.30.3.0 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, Serial0/0/1
R 192.168.5.0/24 [120/1] via 192.168.4.1, 00:00:17, Serial0/0/1
R2>
所以, 只能使用不分等級協定, 例如 RIPv2 (CNA-02-005-final-sol.pkt, Backup Link). 同時還要記得使用 "no auto-summary" 命令關掉 RIPv2 的 "分等級行為".
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, 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
10.0.0.0/24 is subnetted, 2 subnets
R 10.1.1.0 [120/1] via 172.30.2.1, 00:00:12, Serial0/0/0
R 10.2.2.0 [120/1] via 192.168.4.1, 00:00:12, Serial0/0/1
172.30.0.0/24 is subnetted, 3 subnets
R 172.30.1.0 [120/1] via 172.30.2.1, 00:00:12, Serial0/0/0
C 172.30.2.0 is directly connected, Serial0/0/0
C 172.30.3.0 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, Serial0/0/1
R 192.168.5.0/24 [120/1] via 192.168.4.1, 00:00:12, Serial0/0/1
R2>
0 意見:
張貼留言
小技巧:也可以 匿名 留言!