我尝试在此拓扑上进行 BGP 路由.. 之后我在 R1 中添加了 200.200.10.0 网络和 200.200.20.0 网络,我在 R2 和 R3 上出现了 rib-failure(更高的管理距离).. 但我能够从R2 上的客户端到 200.200.20.1,R3 上的客户端到 200.200.10.1。我尝试在 R1 上删除 bgp 路由器 3000 上的网络,ribs-failure 消失了,但是我无法像以前一样 ping 公共 ip。
R1:显示运行
router bgp 3000
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 200.200.10.0
network 200.200.20.0
neighbor 200.200.10.2 remote-as 3001
neighbor 200.200.20.2 remote-as 3002
R1:显示 ip bgp
BGP table version is 6, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.27.0/26 200.200.10.2 0 0 3001 i
*> 192.168.27.64/26 200.200.20.2 0 0 3002 i
*> 192.168.27.128/29
200.200.10.2 0 0 3001 i
*> 200.200.10.0 0.0.0.0 0 32768 i
*> 200.200.20.0 0.0.0.0 0 32768 i
R2:显示运行
router bgp 3001
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 192.168.27.0 mask 255.255.255.192
network 192.168.27.128 mask 255.255.255.248
neighbor 200.200.10.1 remote-as 3000
R2:显示 ip bgp 和显示 ip bgp rib-failure
BGP table version is 6, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.27.0/26 0.0.0.0 0 32768 i
*> 192.168.27.64/26 200.200.10.1 0 3000 3002 i
*> 192.168.27.128/29
0.0.0.0 0 32768 i
r> 200.200.10.0 200.200.10.1 0 0 3000 i
*> 200.200.20.0 200.200.10.1 0 0 3000 i
RouterHQ#show ip bgp rib-failure
Network Next Hop RIB-failure RIB-NH Matches
200.200.10.0 200.200.10.1 Higher admin distance n/a
R3:显示运行
router bgp 3002
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 192.168.27.64 mask 255.255.255.192
neighbor 200.200.20.1 remote-as 3000
R3:显示 ip bgp 和显示 ip bgp rib-failure
BGP table version is 6, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.27.0/26 200.200.20.1 0 3000 3001 i
*> 192.168.27.64/26 0.0.0.0 0 32768 i
*> 192.168.27.128/29
200.200.20.1 0 3000 3001 i
*> 200.200.10.0 200.200.20.1 0 0 3000 i
r> 200.200.20.0 200.200.20.1 0 0 3000 i
RouterBranch#show ip bgp rib-failure
Network Next Hop RIB-failure RIB-NH Matches
200.200.20.0 200.200.20.1 Higher admin distance n/a
