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