







路由策略 : apply as-path 234 234 234 add 增加AS-PATH的长度
disp bgp route x.x.x.x 可以查看中由发给了谁 ?








peer 13.0.0.3 route-policy ip8 export
peer 13.0.0.3 advertise-community
[R1]ip ip-prefix ip8 permit 8.8.8.8 32
[R1]route-policy ip8 permit node 10
[R1-route-policy]if-match ip-prefix ip8
[R1-route-policy]apply community internet
no-adver 相当于不转发路由条目给邻居
display bgp routing-table community


R3若想转发团体属性给R4 需要 R3上也配 peer 34.0.0.4 adver

no-export-sub 属性R1上设置策略路由属性可以传给R3-->R4,但不会传给R5




BGP实现负载均衡:

BGP负载均衡:
bgp 234
max load-blance 2
经过前面9条规则的对比,且经过的as号一样,如果经过的as不一致,需使用下面的命令
as-path-ignore
浙公网安备 33010602011771号