答案1
没有“禁用连接检查命令”,这种情况对我来说也是可行的。向邻近路由添加了静态路由并实现了邻居关系。
R1#
router bgp 200
no synchronization
bgp log-neighbor-changes
network 1.0.0.0 mask 255.255.255.0
network 1.1.1.0 mask 255.255.255.0
network 2.2.2.0 mask 255.255.255.0
neighbor 11.11.2.1 remote-as 100
no auto-summary
FastEthernet0/0 5.5.2.1
Loopback0 1.1.1.1
Loopback2 2.2.2.2
!
!
ip route 11.11.2.0 255.255.255.0 FastEthernet0/0
!
!
!
R1#show ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
11.11.2.1 4 100 19 19 3 0 0 00:17:05 0
!!
!!
!!
router bgp 100
no synchronization
bgp log-neighbor-changes
neighbor 5.5.2.1 remote-as 200
no auto-summary
! !快速以太网0/0 11.11.2.1
! !
! ip 路由 11.11.2.0 255.255.255.0 快速以太网 0/0 !
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
5.5.2.1 4 200 20 20 1 0 0 00:17:11 2
答案2
eBGP 默认要求邻居直接连接到同一个子网。如果您的两个 BGP 邻居位于不同的子网中,则需要使用中间路由器在子网之间路由 BGP 数据包。
需要静态路由和多跳 BGP 命令。您应该查看一些 BGP 文档。
答案3
R1:
ip route static 5.5.2.0 24 serial1/0
R2:
ip route static 11.11.2.0 24 serial1/0
确保可以 ping R1 <--> R2
此后:
R1:
bg 100
neighbor 5.5.2.1 remote as 200
neighbor 5.5.2.1 disable-connected-check
R2:
bgp 200
neighbour 11.11.2.1 remote as 100
neighbor 11.11.2.1 disable-connected-check