我在我的 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/32和100.1.2.1/32无效的,所以不能添加到ip routing-table。但为什么它是无效的?而同样的事情,在R1没有R3的3.3.3.3在bgp routing-table。