Path #1: Received by speaker 0
Advertised IPv4 Unicast paths to update-groups (with more than one peer):
0.6 0.9 0.20
Advertised IPv4 Unicast paths to peers (in unique update groups):
7713 20940 20940 16625
Origin IGP, metric 300, localpref 100, valid, external, best, group-best
Received Path ID 0, Local Path ID 1, version 252628292
Origin-AS validity: not-found
Path #25: Received by speaker 0
Not advertised to any peer
20940 16625, (received-only)
Origin IGP, metric 250, localpref 100, valid, external
Received Path ID 0, Local Path ID 0, version 0
Origin-AS validity: not-found
这两条路由居然优选了Path#1 百思不得其解。
show bgp 1.1.1.1/20 bestpath-compare 也没有对#25为什么没有优选做出解释
最终在看route-policy的时候恍然大悟,CISCO把被route-policy拒绝的路由也放入了show bgp 1.1.1.1/20 detail
其实这条路由根本没有参加best-compare