
這是一個網路場景:
所有提到的路由器都執行 RIP Ver 2,以下是它們的路由表。
Router1:
C 1.0.0.0/8 is directly connected, FastEthernet0/0
R 2.0.0.0/8 [120/1] via 10.0.0.2, 00:00:26, Serial2/0
R 3.0.0.0/8 [120/2] via 10.0.0.2, 00:00:26, Serial2/0
10.0.0.0/30 is subnetted, 2 subnets
C 10.0.0.0 is directly connected, Serial2/0
R 10.0.0.4 [120/1] via 10.0.0.2, 00:00:26, Serial2/0
Router2:
R 1.0.0.0/8 [120/1] via 10.0.0.1, 00:00:11, Serial2/0
C 2.0.0.0/8 is directly connected, FastEthernet0/0
R 3.0.0.0/8 [120/1] via 10.0.0.6, 00:00:15, Serial3/0
10.0.0.0/30 is subnetted, 2 subnets
C 10.0.0.0 is directly connected, Serial2/0
C 10.0.0.4 is directly connected, Serial3/0
Router3:
R 1.0.0.0/8 [120/2] via 10.0.0.5, 00:00:26, Serial2/0
R 2.0.0.0/8 [120/1] via 10.0.0.5, 00:00:26, Serial2/0
C 3.0.0.0/8 is directly connected, FastEthernet0/0
10.0.0.0/30 is subnetted, 2 subnets
R 10.0.0.0 [120/1] via 10.0.0.5, 00:00:26, Serial2/0
C 10.0.0.4 is directly connected, Serial2/0
Router4:
R 1.0.0.0/8 [120/2] via 2.0.0.1, 00:00:26, FastEthernet0/0
C 2.0.0.0/8 is directly connected, FastEthernet0/0
R 3.0.0.0/8 [120/2] via 2.0.0.1, 00:00:26, FastEthernet0/0
R 10.0.0.0/8 [120/1] via 2.0.0.1, 00:00:26, FastEthernet0/0
在查看 Router4 的路由表後,我們發現它的路由表中沒有列出 10.0.0.4/30 網絡,但它能夠成功到達 10.0.0.4/30 或該網絡之外的任何網絡。
為什麼 10.0.0.4/30 網路未列出,而 10.0.0.0/30 卻列出?據我所知,10.0.0.4/30 可透過 2.0.0.1 獲得,並且可以達到 10.0.0.4/30 及以上。
答案1
為什麼 10.0.0.4/30 網路未列出,而 10.0.0.0/30 卻列出?
它實際上是10.0.0.0/8
路由表中列出的網路。該10.0.0.4/30
網路是網路的子網10.0.0.0/8
,因此進入該10.0.0.4/30
網路的任何內容都會與該網路的路由表條目相符10.0.0.0/8
。
看來您犯的錯誤不是no auto-summary
使用router rip
.這是新手常見的錯誤。您使用它是version 2
為了擺脫版本 1 有類路由,但您沒有告訴它這樣做。