从1到12,依次对比优先级。一旦选出最优路由,则后续不再进行比较。
类似if-cash
7、优选EBGP对等体所通告的路由

由于R3、R4、R5都在同一AS内,必须遵守IBGP水平分割规则。详情如下:
https://blog.csdn.net/qq_38632269/article/details/151225377?spm=1001.2014.3001.5502https://blog.csdn.net/qq_38632269/article/details/151225377?spm=1001.2014.3001.5502故R3无法收到R5发出的路由,同时R5也无法收到R3发出的路由。
此时如果要让该IBGP水平分割规则失效,需要在R3和R5之间增加BGP对等体关系。
使用初始实验1的环境
R1\]undo ip route-static 10.1.1.0 24 # 如没有可略过  [R3]bgp 345 [R3-bgp]peer 5.5.5.5 as-number 345 [R3-bgp]peer 5.5.5.5 connect-interface LoopBack 0 [R3-bgp]peer 5.5.5.5 next-hop-local [R5]bgp 345 [R5-bgp]peer 3.3.3.3 as-n [R5-bgp]peer 3.3.3.3 as-number 345 [R5-bgp]peer 3.3.3.3 connect-interface LoopBack 0 [R5-bgp]peer 3.3.3.3 next-hop-local ####  其中第一条是通告至 R2的路由,第二条是通告至 R3的路由 详细查看二者比较:  #### 8、优选到Next Hop的IGP度量值最小的路由 #### 9、BGP路由负载分担 #### 10、优选Cluster_List 最短的路由 #### 11、优选Router-ID最小的BGP对等体发来的路由 #### 12、优选Peer-IP地址最小的对等体发来的路由