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