操作BGP路由过滤(基于路由条目)案例.doc

上传人:cn****1 文档编号:562633302 上传时间:2023-07-16 格式:DOC 页数:3 大小:83.51KB
返回 下载 相关 举报
操作BGP路由过滤(基于路由条目)案例.doc_第1页
第1页 / 共3页
操作BGP路由过滤(基于路由条目)案例.doc_第2页
第2页 / 共3页
操作BGP路由过滤(基于路由条目)案例.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《操作BGP路由过滤(基于路由条目)案例.doc》由会员分享,可在线阅读,更多相关《操作BGP路由过滤(基于路由条目)案例.doc(3页珍藏版)》请在金锄头文库上搜索。

1、操作BGP路由过滤(基于路由条目)案例路由能够基于网络号过滤到或来自于某个特定邻居的路由更新。由访问列表组成的过滤器被应用到所有发送到或来自于某个特定邻居的BGP更新上。本案例中,我们在R1上配置一个distribute-list,防止1.0.0.0/8被通告入AS200中。/ r1 /int f2/0 ip ad 192.1.1.1 255.255.255.0int f3/0 ip ad 193.1.1.1 255.255.255.0int lo0 ip ad 1.1.1.1 255.255.255.0int lo1 ip ad 2.2.2.2 255.255.255.0router bgp

2、 100 no syn neighbor 192.1.1.2 remote-as 200 neighbor 193.1.1.3 remote-as 200 network 1.0.0.0 network 1.0.0.0 neighbor 193.1.1.3 distribute-list 1 outaccess-list 1 deny 1.0.0.0 0.255.255.255access-list 1 permit any/ r2 /int f2/0 ip ad 192.1.1.2 255.255.255.0int f4/0 ip ad 194.1.1.2 255.255.255.0rout

3、er os 1 netw 0.0.0.0 255.255.255.255 a 0 passive-interface f2/0router bgp 200 no syn neighbor 192.1.1.1 remote-as 100 neighbor 194.1.1.4 remote-as 200 neighbor 195.1.1.3 remote-as 200 neighbor 194.1.1.4 next-hop-self/ r3 /int f3/0 ip ad 193.1.1.3 255.255.255.0int f5/0 ip ad 195.1.1.3 255.255.255.0ro

4、uter os 1 netw 0.0.0.0 255.255.255.255 a 0 passive-interface f3/0router bgp 200 no syn neighbor 193.1.1.1 remote-as 100 neighbor 195.1.1.4 remote-as 200 neighbor 195.1.1.4 next-hop-self neighbor 194.1.1.2 remote-as 200/ r4 /int f4/0 ip ad 194.1.1.4 255.255.255.0int f5/0 ip ad 195.1.1.4 255.255.255.0

5、int lo0 ip ad 4.4.4.4 255.255.255.0router os 1 netw 0.0.0.0 255.255.255.255 a 0router bgp 200 no syn neighbor 194.1.1.2 remote-as 200 neighbor 195.1.1.3 remote-as 200 netw 4.0.0.0验证:r2#sh ip bgp Network Next Hop Metric LocPrf Weight Path* 1.0.0.0 192.1.1.1 0 0 100 i* i2.0.0.0 193.1.1.1 0 100 0 100 i* 192.1.1.1 0 0 100 i*i4.0.0.0 194.1.1.4 0 100 0 i由193.1.1.1学来的1.0.0.0/8路由条目已被过滤!

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号