ip第十四天bgp(社团)、过滤,MPLS

 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路由当中打入不同社团属性,之后,携带社团

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值