BGP 13条选路规则


边界网关协议(BGP)是运行于 TCP 上的一种自治系统的路由协议。BGP强大的选路规则正是BGP最大的亮点

  1. Prefer highest weight (local to router).

    首选权重最高的路由<权重是一种cisco专有的属性,只用于当前路由器>

  2. Prefer highest local preference (global within AS).

    本地优先级最高的路由<本地优先级用于AS内部>

  3.  Prefer route originated by the local router (next hop =     0.0.0.0).

    当前路由器通告的路由<bgp表中,当前路由器产生的路由的下一跳为0.0.0.0>

  4.  Prefer shortest AS path.

    AS路径最短的路由

  5.  Prefer lowest origin code (IGP < EGP <     incomplete).

    比较Origin属性<IGP优先于EGP优先Incomplete>(i>e)

  6.  Prefer lowest MED (exchanged between autonomous     systems).

    MED最小者<默认不比较来自不同AS路由的MED值,可通过bgp      always-compare-med对比不同AS的med>

    前6条可以操控修改,后面的一般固定

  7.  Prefer EBGP path over IBGP path.  

    外部路径(EBGP)优先于内部路径(IBGP)    

  8.  Prefer the path through the closest IGP neighbor

    选择经过最近的IGP邻居的路径<这意味着路由器首选AS中最短的内部路径-最短的前往BGP下一跳的路径)--IBGP

  9.  balance traffic

    如果配置了maximum-path, 会安装多条路由到路由表<但是BGP继续比,只有一个打上>

  10.  Prefer oldest route for EBGP paths.

    都是外部路径,选最先收到的(最旧的)<目的是减少抖动>

  11.  Prefer the path with the lowest neighbor BGP router ID.

    首选来自最低路由ID的BGP路由器的路由

  12.  Prefer shortest cluster list

    具有最低群集列表长度的路径

  13. Prefer the path with the lowest neighbor IP address.

    最低邻居地址的路径 (比邻居的IP地址大小)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM