直接连接网络的重新分配 OSPF RIP

直接连接网络的重新分配 OSPF RIP

我正在尝试学习 RIP 和 OSPF 之间的重新分配。我正在使用数据包跟踪器。我有一个配置了 的路由器 BRANCH。fa0 RIP v2/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 的路由是重新分配的路由。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

相关内容