选路原则
1: prefer highest weight (local to router).
//weight值越高越优先。
2: prefer highest local preference(global within AS).
//local-pref值越高越优先。
3:prefer route originated by the local router(next-hop =0.0.0.0)
// 在前两条值相同的情况下,指定了下一跳优先。
4:prefer shortest AS path.
// AS path 越短越优先。
5:prefer lowest origin code(IBGP<EBGP<incomplete).
//按照IBGP<EBGP<incomplete的顺序进行选路,incomplete的优先级最高。
6:prefer lowest MED(exchange between autonomous systems)
// MED值越低的越优先。
7:prefer EBGP path over IBGP path .
//EBGP路径优先于IBGP路径。
8:prefer the path through the closest IGP neighbor.
//IGP中邻居路径越近越优先。
9:prefer oldest route for EBGP paths .
//EBGP中建邻时间越长越