我有两个思科路由器的BGP多主机。每个路由器都有自己的ISP,并宣布我们的AS与我们的/24网络的互联网。
我的问题是在这两个路由器之间:
路由器A,路由表看起来像:
BGP table version is 9622808, local router ID is 10.100.100.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
*>i 1.0.0.0/24 10.100.100.3 10041 150 0 175 15169 i
* 192.168.200.1 0 0 800 15169 i路由器B,路由表看起来像:
router#sh ip bgp
BGP table version is 10261936, local router ID is 192.168.1.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
*> 1.0.0.0/24 192.168.1.1 10041 150 0 175 15169 i路由器A
#sh ip bgp 1.0.0.0
BGP routing table entry for 1.0.0.0/24, version 9124223
Paths: (2 available, best #1, table default)
Multipath: eBGP
Not advertised to any peer
Refresh Epoch 1
175 15169
10.100.100.3 from 10.100.100.3 (192.168.1.1 )
Origin IGP, metric 10041, localpref 150, valid, internal, best
rx pathid: 0, tx pathid: 0x0
Refresh Epoch 1
8220 15169
192.168.200.1 from 192.168.200.1 (212.74.90.252)
Origin IGP, metric 0, localpref 100, valid, external
Community: 538770940 538771322
rx pathid: 0, tx pathid: 0路由器B
#sh ip bgp 1.0.0.0
BGP routing table entry for 1.0.0.0/24, version 9772009
Paths: (1 available, best #1, table default)
Multipath: eBGP
Advertised to update-groups:
15
Refresh Epoch 1
175 15169
192.168.1.1 from 192.168.1.1 (38.28.4.10)
Origin IGP, metric 10041, localpref 150, valid, external, best
Community: 11424364 11425276
rx pathid: 0, tx pathid: 0x0Router B
#sh ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.100.100.2 4 48020 748914 2167278 10705132 0 0 2w4d 3350
192.168.1.1 4 175 2591251 29738 10705000 0 0 2w4d 509418我的问题是,对于1.0.0.0/24,路由器B只有一个下一个跳(这是一个例子)。我期待着路由器B下一个跳到路由器A。
路由器A正像预期的那样显示下一跳。
这个问题会产生严重的影响,如果我们失去了作为首选路由器的路由器B,我们就失去了Internet,因为它无法通过路由器A路由流量。
发布于 2014-12-08 08:48:17
在您的例子中,B不应该有来自A的路由,因为B本身正在声明它的学习路径为最佳路径,并通过iBGP传播此信息。
路由器A不能宣传它的eBGP学习1.0.0.0/8到B,因为它不是最好的路由。A的最佳路线是它通过iBGP从B和iBGP路线学到的路线不能再做广告。
两个eBGP路由器都在从两个ISP那里学习网络。当ISP为B失败时,A eBGP路由将有资格被发送到B。
HTH。
发布于 2016-02-05 20:14:00
默认情况下,每个BGP路由器只公布其最佳路由。由于A更喜欢从B到外部路线(由于较高的本地偏好),所以它没有将外部路线宣传到B。
故障转移将有效,但可能需要一段时间,因为:B必须撤销其外部路由*A必须选择新的最佳路线*A必须宣传新的最佳路线,而B必须选择新的最佳路线。
如果您想要更快的故障转移,请在A上使用"BGP最佳外部“(或类似的内容-在cisco.com上搜索最佳外部)。
发布于 2016-02-04 16:21:42
路由器A没有向路由器B发布该路由的广告。
Multipath: eBGP
Not advertised to any peer路由器B正在向路由器A宣传该路由。
Multipath: eBGP
Advertised to update-groups:
15配置A通过ibgp向B发布1.0.0.0到B。
https://networkengineering.stackexchange.com/questions/13465
复制相似问题