欢迎来到天天文库
浏览记录
ID:12576749
大小:83.50 KB
页数:3页
时间:2018-07-17
《操作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 intlo1 ipad2.2.2.2
2、255.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.1.1.2255.255.255.0 intf4/0
3、 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 ////r3////intf3/0 ipad193.1.1.3255.255.255
4、.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.1.1.2remote-as200 ////r4////intf4/0 ipad194.1.1.42
5、55.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.0 验证:r2#shipbgp Network NextHop MetricLocPr
6、fWeightPath*>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*>i4.0.0.0 194.1.1.4 0 100 0i 由193.1.1.1学来的1.0.0.0/8路
7、由条目已被过滤!
此文档下载收益归作者所有