设为首页收藏本站language 语言切换
查看: 1715|回复: 2
收起左侧

[已解决] iBGP best-path selection for default route

[复制链接]
发表于 2013-7-17 16:30:50 | 显示全部楼层 |阅读模式
Core1#show ip bgp
BGP table version is 63, local router ID is 5.45.47.241
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete


   Network          Next Hop            Metric LocPrf Weight Path
r>i0.0.0.0          45.127.255.251           0    100      0 64601 i
r i                 103.127.255.251          0    100      0 64603 i
* i5.45.32.0/20     5.45.47.252              0    100      0 i
*>i                 5.45.47.251              0    100      0 i
*>i5.133.64.0/18    103.127.255.251          0    100      0 64603 64604 i
*>i5.200.128.0/17   103.127.255.251          0    150      0 64603 64605 i
*>i23.128.0.0/9     5.45.47.251              0    100      0 64601 64602 i
*>i45.64.0.0/10     5.45.47.251              0    100      0 64601 i
*>i103.64.0.0/10    103.127.255.251          0    100      0 64603 i

Core1#show ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 59
Paths: (2 available, best #1, table Default-IP-Routing-Table, RIB-failure(17))
  Not advertised to any peer
  64601
    45.127.255.251 (metric 20) from 5.45.47.251 (5.45.47.251)
      Origin IGP, metric 0, localpref 100, valid, internal, best
  64603
    103.127.255.251 (metric 20) from 5.45.47.252 (5.45.47.252)
      Origin IGP, metric 0, localpref 100, valid, internal

Core1是内部router, iBGP full mesh
有两个eBGP router, 从两个ISP那里收到default route (一个eBGP router一个对应一个ISP)
45.127.255.251
103.127.255.251

问题是2个route的weight, local-pref都是一样的
#show ip bgp新的routes在上面 这里为什么新的route被选为best? 理论上应该是最老的103.127.255.251 才对啊?

测试了一下 放倒45.127.255.251 的eBG router, 让103.127.255.251变成唯一的route... 结果 45.127.255.251 重新起来之后又成了best

这是怎么回事? 为什么相同cost的更老的route会被取代掉呢?


发表于 2013-7-17 20:48:49 | 显示全部楼层
还是BGP有意思  哈你不贴图,看帖还不自在了  {:soso_e153:}      还是BGP multipath那个图吧

When both paths are external, prefer the path that was received first (the oldest one).


the oldest one 比较的是external


你的都是 IBGP学过来的,比到11了,lowest router ID





沙发 2013-7-17 20:48:49 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-7-17 21:42:41 | 显示全部楼层
ititie 发表于 2013-7-17 20:48
还是BGP有意思  哈你不贴图,看帖还不自在了        还是BGP multipath那个图吧

When both ...

谢谢 刚发现了 原来route age只是eBGP route比较的时候用的
板凳 2013-7-17 21:42:41 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-28 07:52 , Processed in 1.010549 second(s), 27 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表