OSPF 到 BGP 重新分配问题

网络工程 思科 再分配
2022-02-13 15:29:03

在此处输入图像描述我在将基本 OSPF 重新分配到 BGP 时遇到问题。R10 和 R12 之间的 BGP 对等体已启动。

我在区域 0 之间有完全连接。R10 0/0 也在那个区域。我无法从 R10->R12 获取 BGP 路由以重新分配到我的 OSPF 区域。

如果我default-information originate always在(quad 0's)中添加一个语句,这将允许连接。

我创建了 R28 并且能够将 RIP E2 路由引入 OSPF,所以我并不疯狂。R6 显示来自 RIP 的 E2 路由正在进入。我尝试了所有 BGP 重新分配方法(例如子网、连接、度量等)。非常感谢您的想法!

R10路由配置:

R10#sh run | sec router
router ospf 1
 log-adjacency-changes
 redistribute bgp 65000 subnets
 redistribute rip subnets
router rip
 version 2
 redistribute ospf 1 metric 0
 network 172.0.0.0
 no auto-summary
router bgp 65000
 no synchronization
 bgp log-neighbor-changes
 redistribute ospf 1
 neighbor 15.1.1.2 remote-as 65000
 no auto-summary

R10#

R6路由表:

R6#sh ip route

     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/3] via 78.33.28.1, 03:56:04, FastEthernet0/1
     6.0.0.0/32 is subnetted, 1 subnets
C       6.6.6.6 is directly connected, Loopback0
     172.0.0.0/30 is subnetted, 1 subnets
O E2 172.0.0.0 [110/20] via 78.33.44.2, 00:08:54, FastEthernet1/0
     78.0.0.0/30 is subnetted, 8 subnets
C       78.33.44.0 is directly connected, FastEthernet1/0
O       78.33.38.0 [110/4] via 78.33.28.1, 02:20:11, FastEthernet0/1
O       78.33.34.0 [110/4] via 78.33.28.1, 02:20:12, FastEthernet0/1
C       78.33.32.0 is directly connected, FastEthernet0/0
O       78.33.13.0 [110/3] via 78.33.28.1, 03:56:06, FastEthernet0/1
O       78.33.30.0 [110/3] via 78.33.28.1, 03:56:06, FastEthernet0/1
C       78.33.28.0 is directly connected, FastEthernet0/1
O       78.33.24.0 [110/2] via 78.33.28.1, 03:56:07, FastEthernet0/1

在此处输入图像描述

1个回答

从我在您的网络中看到的情况来看,您正在172.0.0.0从 RIP 重新分配到 OSPF,并且您没有在 OSPF 中发起任何路由。然后,您将 OSPF 重新分配到 iBGP,但通过 OSPF 而不是 iBGP 在其他路由器中看到原始 RIP 路由。这很正常,因为 OSPF 的 AD 为 110,但 iBGP 的 AD 为 200。基本上,R6 信任从 OSPF 母马接收到的任何路由,而不是从 iBGP 接收到的相同路由,因此 OSPF 路由安装到其路由表中,而不是iBGP 路由。