8,优选到达NEXT_HOP的IGP度量值最小的路由
指的是到达下一跳本地路由表中的开销值进行比较,和其他参数无关。
BGP的路由过滤
1,通过路由策略进行过滤
[r1]ip ip-prefix aa permit 192.168.1.0 24
[r1]route-policy aa deny node 10
Info: New Sequence of this List.
[r1-route-policy]if-match ip-prefix aa
[r1-route-policy]q
[r1]route-policy aa permit no 20
Info: New Sequence of this List.
[r1-route-policy]q [r1]bgp 1
[r1-bgp]peer 12.0.0.2 route-policy aa export
2,通过前缀列表来进行过滤
[r2]ip ip-prefix aa deny 192.168.2.0 24
[r2]ip ip-prefix aa permit 0.0.0.0 0 less-equal 32
[r2]bgp 2
[r2-bgp]peer 12.0.0.1 ip-prefix aa import
3,通过过滤列表进行过滤
[r3]acl 2000
[r3-acl-basic-2000]rule deny source 192.168.3.0 0
[r3-acl-basic-2000]rule permit source any
[r3-acl-basic-2000]q
[r3]bgp 2
[r3-bgp]peer 13.0.0.1 filter-policy 2000 import
BGP的社团属性
社团属性可以类似的理解为路由标记。我们可以给不同的BGP路由当中打入不同社团属性,之后,携带社团