BGP策略实验

1.

ip ip-prefix pv index 10 permit 192.168.10.0 24 greater-equal 24 less-equal 24---抓流量
  peer 24.0.0.2 route-policy pv import ---调用(入方向上)

2.

  peer 34.0.0.4 route-policy as export

3.

4  

ip ip-prefix LP permit 192.168.1.0 24 greater-equal 24 less-equal 24
route-policy LP permit node 10
if-match ip-prefix LP
apply local-preference 200	
route-policy LP permit node 20
bgp 123
peer 2.2.2.2 route-policy LP import
ip ip-prefix LP permit 192.168.1.0 24 greater-equal 24 less-equal 24
route-policy LP permit node 10
if-match ip-prefix LP
apply local-preference 200	
route-policy LP permit node 20
bgp 123
peer 2.2.2.2 route-policy LP import

6

  maximum load-balancing ibgp 2

7.

ip as-path-filter 1 deny ^$
ip as-path-filter 1 permit .*
bgp 123
peer 15.0.0.5 as-path-filter 1 export 

8.

ip ip-prefix com permit 192.168.3.0 24 greater-equal 24 less-equal 24
 
route-policy com permit node 10
if-match ip-prefix com
apply community no-export
route-policy com permit node 20
 
bgp 123
peer 24.0.0.2 advertise-community
peer 34.0.0.3 advertise-community
peer 24.0.0.2 route-policy com export 
peer 34.0.0.3 route-policy com export
peer 1.1.1.1 advertise-community

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值