Routing

直連網路重分發OSPF RIP

  • May 17, 2013

我正在嘗試學習 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)連接到通過 OSPF 學習的 Fa0/0。我在兩個路由器上都發布了“沒有自動摘要”,但我仍然有這個問題。任何人都可以幫助我嗎?謝謝

這裡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 的路由是重新分配的路由。嗯:

    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

拓撲

先感謝您!

您必須使用分發列表來執行此操作。在路由器 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

引用自:https://serverfault.com/questions/508525