直連網路的OSPF RIP重分配

直連網路的OSPF RIP重分配

我正在嘗試學習 RIP 和 OSPF 之間的重新分配。我正在使用數據包追蹤器。我有一個配置了RIP v2. fa0/0 上有網絡172.16.56.0/25,fa0/1 上有網絡172.16.54.0/23。 BRANCH 透過串列連結連接到 HM 路由器(網路172.16.56.128/30)。 HM 路由器必須負責重新分配。在 HM 上,透過 fa0/1 直接連接有一個網路 ( 172.16.53.0/25),該網路位於 OSPF 區域中,但是 BRANCH 透過 RIP 了解該網路。我怎樣才能避免這種情況?我認為這可能與匯總有關,因為在 HM 上我有另一個網路(192.168.8.192/28)連接到 Fa0/0,這是透過 OSPF 學習的。我已在兩台路由器上發出“無自動摘要”命令,但仍然遇到此問題。有人可以幫我嗎?謝謝

這裡是BRANCH的路由表

     172.16.0.0/16 is variably subnetted, 8 subnets, 5 masks
R       172.16.48.1/32 [120/14] via 172.16.56.129, 00:00:08, Serial0/0/1
R       172.16.52.0/24 [120/14] via 172.16.56.129, 00:00:08, Serial0/0/1
R       172.16.53.0/25 [120/1] via 172.16.56.129, 00:00:08, Serial0/0/1  //PROBLEM
R       172.16.53.128/30 [120/14] via 172.16.56.129, 00:00:08, Serial0/0/1
R       172.16.53.132/30 [120/1] via 172.16.56.129, 00:00:08, Serial0/0/1
C       172.16.54.0/23 is directly connected, FastEthernet0/0
C       172.16.56.0/25 is directly connected, FastEthernet0/1
C       172.16.56.128/30 is directly connected, Serial0/0/1
     192.168.8.0/24 is variably subnetted, 2 subnets, 2 masks
R       192.168.8.0/24 is possibly down, routing via 172.16.56.129, Serial0/0/1
R       192.168.8.192/28 [120/14] via 172.16.56.129, 00:00:08, Serial0/0/1
R*   0.0.0.0/0 [120/14] via 172.16.56.129, 00:00:08, Serial0/0/1

度量為 14 的路由是重新分配的路由。 HM:

     172.16.0.0/16 is variably subnetted, 8 subnets, 5 masks
O       172.16.48.1/32 [110/129] via 172.16.53.133, 01:25:54, Serial0/0/0
O       172.16.52.0/24 [110/129] via 172.16.53.133, 01:25:54, Serial0/0/0
C       172.16.53.0/25 is directly connected, FastEthernet0/1
O       172.16.53.128/30 [110/128] via 172.16.53.133, 01:26:04, Serial0/0/0
C       172.16.53.132/30 is directly connected, Serial0/0/0
R       172.16.54.0/23 [120/1] via 172.16.56.130, 00:00:09, Serial0/0/1
R       172.16.56.0/25 [120/1] via 172.16.56.130, 00:00:09, Serial0/0/1
C       172.16.56.128/30 is directly connected, Serial0/0/1
     192.168.8.0/28 is subnetted, 1 subnets
C       192.168.8.192 is directly connected, FastEthernet0/0
O*E2 0.0.0.0/0 [110/1] via 172.16.53.133, 01:25:54, Serial0/0/0

拓樸結構
先感謝您!

答案1

你必須使用分發清單來執行此操作。在路由器 BRANCH 上,執行下列操作:

首先,建立存取列表

access-list 101 permit <Network You permit here> 
access-list 101 deny 172.16.53.0 0.0.0.128

然後配置 RIP 的分發列表

router rip
distribute-list 101 in Serial0/0/1

相關內容