
我從所附圖像中獲得了 192.168.21.1 和 192.168.21.2 之間的 I-BGP 鄰居以及 192.168.6.1 和 192.168.6.2 之間的 E-BGP 鄰居的拓撲。我已從 R2 通告網路 2.2.2.2/32(環回位址),並在 R4 上為 192.168.21.1 配置下一跳自我。
當我show ip bgp
在 R3 上使用命令時,我可以看到通往 2.2.2.2 的路徑是有效且最佳的。此外,下一躍點是 192.168.21.2。路由器的路由表中也有此路由。
當我show ip bgp
在 R4 上使用命令時,我可以看到通往 2.2.2.2 的路徑是有效且最佳的。此外,下一躍點是 192.168.6.1。路由器的路由表中也有此路由。
R3 和 R4 之間以及 R4 和 R2 之間的兩個鄰居均正常工作,但從 R3 到 R2 的 ping 操作不起作用。我還檢查了到 2.2.2.2 的追蹤路由,封包在通過 192.168.21.2 進入後停止。從 R3 到 R4、從 R4 到 R2 可以 Ping 通,但從 R3 到 R2 Ping 不通。可能是什麼原因?
每個路由器上都有這樣的設定:
router bgp 100
no synchronization
bgp log-neighbor-changes
network 2.2.2.2 mask 255.255.255.255
network 192.168.6.0 mask 255.255.255.252
network 192.168.7.0 mask 255.255.255.252
network 192.168.8.0 mask 255.255.255.252
neighbor 192.168.6.2 remote-as 200
neighbor 192.168.7.2 remote-as 200
neighbor 192.168.8.2 remote-as 200
R4:
router bgp 200
no synchronization
bgp log-neighbor-changes
network 4.4.4.4 mask 255.255.255.255
network 192.168.2.0 mask 255.255.255.252
network 192.168.12.0 mask 255.255.255.252
network 192.168.14.0 mask 255.255.255.252
neighbor 192.168.6.2 remote-as 200
neighbor 192.168.7.2 remote-as 200
neighbor 192.168.8.2 remote-as 200
neighbor 3.3.3.3 remote-as 200
neighbor 192.168.6.1 remote-as 100
neighbor 192.168.6.1 ebgp-multihop 2
neighbor 192.168.21.1 remote-as 200
neighbor 192.168.21.1 next-hop-self
R3:
router bgp 100
no synchronization
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source Loopback1
neighbor 192.168.21.2 remote-as 200
先致謝!