本文主要是介绍神州数码配置bgp路由过滤,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
意义·:通过配置bgp过滤来达到路由表禁止学习到某些路由
实验拓补图:
1.分配地址
2.配置bgp建立邻居,获取路由
RT1:
router bgp 65500bgp log-neighbor-changesneighbor 192.168.1.2 remote-as 65535
RT2:
router bgp 65535bgp log-neighbor-changesnetwork 172.16.10.0/24network 172.16.20.0/24network 172.16.30.0/24network 172.16.40.0/24neighbor 192.168.1.1 remote-as 65500
查看状态(show ip bgp neighbors;show ip route bgp):
3.配置路由过滤
RT1:
ip prefix-list bgp seq 5 permit 172.16.10.0/24
ip prefix-list bgp seq 10 permit 172.16.20.0/24
router bgp 65500filter * in prefix-list bgp
查看状态(show ip bgp neighbors;show ip route bgp):
这篇关于神州数码配置bgp路由过滤的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!