繁体中文
设为首页
加入收藏
当前位置:技术首页 >> 网络 >> 路由技术 >> 操作BGP路由过滤(基于路由条目)实际案例(配图+详细验证过程)

操作BGP路由过滤(基于路由条目)实际案例(配图+详细验证过程)

2008-04-08 21:53:04  作者:IT动力源  来源:IT动力源收集整理  浏览次数:11  文字大小:【】【】【
关键字:cisco技术
路由能够基于网络号过滤到或来自于某个特定邻居的路由更新。由访问列表组成的过滤器被应用到所有发送到或来自于某个特定邻居的BGP更新上。   本案例中,我们在R1上配置一个distribute-list,防止1.0.0.0/8被通告入AS200中。     //// r1 //// int f2/0   ip ad 192.1.1.1 255.255.255.0   int f3/0   ip ad 193.1.1.1 255.255.255.0   int lo0   ip ad 1.1.1.1 255.255.255.0   int lo1   ip ad 2.2.2.2 255.255.255.0   router bgp 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 out   access-list 1 deny 1.0.0.0 0.255.255.255 access-list 1 permit any  
    //// r2 //// int f2/0   ip ad 192.1.1.2 255.255.255.0   int f4/0   ip ad 194.1.1.2 255.255.255.0   router os 1   netw 0.0.0.0 255.255.255.255 a 0   passive-interface f2/0   router 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.0   int f5/0   ip ad 195.1.1.3 255.255.255.0   router os 1   netw 0.0.0.0 255.255.255.255 a 0   passive-interface f3/0   router 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.0   int f5/0   ip ad 195.1.1.4 255.255.255.0   int lo0   ip ad 4.4.4.4 255.255.255.0   router os 1   netw 0.0.0.0 255.255.255.255 a 0   router 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路由条目已被过滤!

本新闻共2页,当前在第1页  1  2  

点击收藏到

责任编辑:hefei

本文引用地址: http://tech.itzero.com/2008/0408/36554.html 请粘贴到你的QQ/MSN上推荐给你的好友

相关文章
/31位掩码实验演示
解决广播风暴的方法:storm-control
IPSec VPN(对不同的数据流进行不同的加密和认证)
BGP后门链路(Backdoor)实际案例(配图+详细验证过程)
OSPF虚链路(virtual-link)配置实例 + 详细验证过程
ASA配置笔记
EzVPN Client 完整配置
OSPF邻居认证实际案例(配图)+详细验证过程
Cisco网络管理的35个常见问题及解答
路由器实例 关于CE1/PRI接口配置命令说明
 

最新文章

更多

· 路由器问题故障排除方法
· 图解交换机与路由器组网...
· 提高城域网路由器网络层...
· 常见宽带路由器设置方法...
· 常见宽带路由器设置方法...
· 深入了解路由器与交换机...
· 深入了解路由器与交换机...
· 阻挡入侵狙击攻略 配置安...
· 如何实现两条DDN专线相互...
· 不配置回指路由 多网段网...

热点文章

更多

· 通过路由器实现用户定时...
· Cisco高档路由器故障排除...
· 调教路由器 让网络管理效...
· 从路由器底层入手 深度透...
· 最新路由交换测试技术介绍
· 如何提高企业路由器性能
· 专家称网真应用需要升级...
· 路由器密码、原有配置轻...
· 不配置回指路由 多网段网...
· 如何实现两条DDN专线相互...

其它推荐