- 论坛徽章:
- 1
|
由于本端的双链路流量不均衡,可以适当考虑从主要的BGP neighbour适当的过滤一些相应的路由,可参看如下实例:
主要是采用route-map的方式
1.首先在BGP的配置上,对in & out启用route-mapneighbor external-as route-map remote-2-local inneighbor external-as route-map local-2-remote out
2.然后来定义route-maproute-map remote-2-local permit 10match as-path 2
3.定义as-path,这里来控制过滤哪些AS发过来的路由ip as-path access-list 2 deny ^4847 1.*ip as-path access-list 2 deny ^4847 2.*ip as-path access-list 2 permit .*
4.最后要将BGP软重启一下clear ip bgp "neighbour ip" soft inclear ip bgp "neighbour ip" soft out
大致步骤如此,实际情况要结合自己的具体环境.
;-)
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/650/showart_2105098.html |
|