在BGP中过滤掉私有AS编号的配置方法.pdfVIP

  • 25
  • 0
  • 约2.57千字
  • 约 3页
  • 2017-07-04 发布于河南
  • 举报
在BGP中过滤掉私有AS编号的配置方法

在BGP 中过滤掉私有AS编号的配置方法 海外用户工程中心 黄俊 介绍 这篇文章将会简单的介绍如何从BGP系统中过滤掉私有自治系统编号 以下简称AS编号 在配 置BGP系统的时候 我们经常使用私有的AS编号来将一个大型的自治系统划分成多个通过eBGP连 接的小自治系统 另外 当你和一个单一的ISP进行连接的时候 这个ISP可能使用私有AS编号来 进行系统互连 为了保证路由在INTERNET 中传递的正确性 所以 在BGP 的路由更新报文发送到 整个BGP 的全连接中之前 我们需要将这些私有的AS编号从我们的系统中屏蔽掉 私有AS编号范 围从64512到65535 下面我们将结合具体的配置实例来说明如何去除BGP系统中的私有AS编号 图一 网络连接 参考上图 各路由器具体配置如下 Router 3 Current configuration: interface Ethernet0 ip address 3.3.3.3 255.255.255.0 ! interface Serial0 ip address 140.4.4.5 255.255.255.0 router bgp 65000 network 3.3.3.0 mask 255.255.255.0 neighbor 140.4.4.4 remote-as 5 第 1 页 共3 页 end Router 2 Current configuration: interface Serial0 ip address 140.4.4.4 255.255.255.0 ! interface Ethernet1 ip address 191.10.10.1 255.255.255.0 interface Serial1 ip address 141.108.8.3 255.255.255.0 ! router bgp 5 network 191.10.10.0 mask 255.255.255.0 neighbor 140.4.4.5 remote-as 65000 neighbor 141.108.8.2 remote-as 1 neighbor 141.108.8.2 remove-private-AS end Router 1 Current configuration: interface Serial0 ip address 141.108.8.2 255.255.255.0 ! router bgp 1 neighbor 141.108.8.3 remote-as 5 end 使用Show命令来观察各个路由器的路由表中的路由状况 R2#show ip bgp BGP table version is 3, local router ID is 140.4.3.3 Status codes: s suppressed, d damped, h history, * valid, best, i - internal origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop metric LocPrf Weight Path 第 2 页 共3 页 * 3.3.3.0/24 140.4.4.5 0 0 65000 i * 191.10.10.0/24 0.0.0.0 0 32768 i R1#show ip bgp BGP table version is 8, local router ID is 141.108.8.2 Status codes: s suppressed, d damped, h history, * valid, best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop metr

文档评论(0)

1亿VIP精品文档

相关文档