欢迎来到天天文库
浏览记录
ID:1665643
大小:83.50 KB
页数:3页
时间:2017-11-12
《操作bgp路由过滤(基于路由条目)案例》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、操作BGP路由过滤(基于路由条目)案例 路由能够基于网络号过滤到或来自于某个特定邻居的路由更新。由访问列表组成的过滤器被应用到所有发送到或来自于某个特定邻居的BGP更新上。 本案例中,我们在R1上配置一个distribute-list,防止1.0.0.0/8被通告入AS200中。 ////r1////intf2/0 ipad192.1.1.1255.255.255.0 intf3/0 ipad193.1.1.1255.255.255.0 intlo0 ipad1.1.1.1255.255.255.0 intlo
2、1 ipad2.2.2.2255.255.255.0 routerbgp100 nosyn neighbor192.1.1.2remote-as200 neighbor193.1.1.3remote-as200 network1.0.0.0 network1.0.0.0 neighbor193.1.1.3distribute-list1out access-list1deny1.0.0.00.255.255.255access-list1permitany ////r2////intf2/0 ipad192.
3、1.1.2255.255.255.0 intf4/0 ipad194.1.1.2255.255.255.0 routeros1 netw0.0.0.0255.255.255.255a0 passive-interfacef2/0 routerbgp200 nosyn neighbor192.1.1.1remote-as100 neighbor194.1.1.4remote-as200 neighbor195.1.1.3remote-as200 neighbor194.1.1.4next-hop-self ///
4、/r3////intf3/0 ipad193.1.1.3255.255.255.0 intf5/0 ipad195.1.1.3255.255.255.0 routeros1 netw0.0.0.0255.255.255.255a0 passive-interfacef3/0 routerbgp200 nosyn neighbor193.1.1.1remote-as100 neighbor195.1.1.4remote-as200 neighbor195.1.1.4next-hop-self neighbor194
5、.1.1.2remote-as200 ////r4////intf4/0 ipad194.1.1.4255.255.255.0 intf5/0 ipad195.1.1.4255.255.255.0 intlo0 ipad4.4.4.4255.255.255.0 routeros1 netw0.0.0.0255.255.255.255a0 routerbgp200 nosyn neighbor194.1.1.2remote-as200 neighbor195.1.1.3remote-as200 netw4.0.0
6、.0 验证:r2#shipbgp Network NextHop MetricLocPrfWeightPath*>1.0.0.0 192.1.1.1 0 0100i*i2.0.0.0 193.1.1.1 0 100 0100i*> 192.1.1.1 0 0100i*>i
7、4.0.0.0 194.1.1.4 0 100 0i 由193.1.1.1学来的1.0.0.0/8路由条目已被过滤!
此文档下载收益归作者所有