为什么iBGP收到的网络无效?

网络工程 bgp 联网
2021-07-08 13:28:28

我在我的 PC 上测试了 BGP,下面是拓扑:

R1--(eBGP)--R2--(iBGP)--R3. 并且R2-R3-R4在 OSPF 中(省略详细信息)。

这是我对 BGP 的详细配置:

[R1-bgp]dis this
#
bgp 100
 peer 10.1.12.2 as-number 200
 #
 ipv4-family unicast
  undo synchronization
  network 100.1.1.1 255.255.255.255
  network 100.1.2.1 255.255.255.255
  peer 10.1.12.2 enable
#
return
[R2-bgp]dis this
#
bgp 200
 peer 3.3.3.3 as-number 200
 peer 3.3.3.3 connect-interface LoopBack0
 peer 10.1.12.1 as-number 100
 #
 ipv4-family unicast
  undo synchronization
  network 2.2.2.2 255.255.255.0
  network 10.1.23.0 255.255.255.0
  peer 3.3.3.3 enable
  peer 10.1.12.1 enable
#
return
[R3-bgp]dis this
#
bgp 200
 peer 2.2.2.2 as-number 200
 peer 2.2.2.2 connect-interface LoopBack0
 peer 4.4.4.4 as-number 200
 peer 4.4.4.4 connect-interface LoopBack0
 #
 ipv4-family unicast
  undo synchronization
  network 3.3.3.3 255.255.255.255
  peer 2.2.2.2 enable
  peer 4.4.4.4 enable
#
return

我有一个问题,你在R3中看到的bgp routing-table,网络100.1.1.1/32100.1.2.1/32无效的,所以不能添加到ip routing-table但为什么它是无效的?而同样的事情,在R1没有R3的3.3.3.3bgp routing-table

1个回答

通过 eBGP 接收并通告给 iBGP 邻居的路由保留原始下一跳信息。当将 iBGP 边界路由器与其他 iBGP 路由器对等时,要更改它,请使用 next-hop-self 命令,或将 10.1.12.0/30 添加到 IGP。