加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

BGP路由反射器

(2005-10-18 11:00:29)
分类: ~~~ BGP ~~~
为避免在AS内部的循环路由,BGP不会向内部BGP PEER通告它从其他内部BGP PEER中获得的路由。
 
BGP路由反射器
 
在上图中,A、B、C互联组成AS100,它们之间形成IBGP邻居关系,EBGP路由通过A进入AS100。当A从外部获得EBGP路由后,经由IBGP以通告给B,但是这些路由不会通告给C,因为路由器B不会在路由器A和C之间传递IBGP路由。为使路由器C得知这些路由,路由器A和C之间要形成一IBGP连接。
 
这一对IBGP的全互连要求造成了对每个IBGP路由器定义邻居语句的需求。在一个有100个路由器的AS中,这种情况会要求定义100个邻居语句。这种扩展性不是很好。
 
为了克服这个问题,定义了路由反射器的概念,像是内部IBGP会话的集中路由器或焦点。与路由反射器对等的路由器称为路由反射器客户。这些客户与rf相匹配并交换路由信息。rf接着交换或者反射这一信息给所有客户,从而消除了对全互连环境的需要。
 
我们可以修改上图,将B设置为RF,这样A和C都是他的客户。当B接收到来自A的路由更新,它将此信息反射给C,A和C之间不需要一个IBGP连接,因为路由器B正传播(或反射)信息给C。
BGP路由反射器
 
 
 
 
 
配置实例:
 
//// router a ////
 
int lo0
  ip addr 1.1.1.1 255.255.255.0
 
int s0
  ip addr 192.1.1.1 255.255.255.0
 
router bgp 100
  neighbor 192.1.1.2 remote-as 200
  netw 1.0.0.0
 
 
//// router b  ////
 
int lo0
  ip addr 2.2.2.2 255.255.255.0
 
int s0
  ip addr 192.1.1.2 255.255.255.0
 
int s1
  ip addr 193.1.1.2 255.255.255.0
 
router ospf 64
  netw 0.0.0.0 255.255.255.255.0 area 0
 
router bgp 200
  neighbor 192.1.1.1 remote-as 100
  neighbor 193.1.1.1 remote-as 200
 
 
 
//// router c ////
int lo0
  ip addr 3.3.3.3 255.255.255.0
int s0
  ip addr 193.1.1.1 255.255.255.0
int s1
  ip addr 194.1.1.1 255.255.255.0
router ospf 64
  netw 0.0.0.0 255.255.255.255 area 0
router bgp 200
  neighbor 193.1.1.2 remote-as 200
  neighbor 194.1.1.2 remote-as 200
 
 
 
//// router d ////
 
int lo0
  ip addr 4.4.4.4 255.255.255.0
int s0
  ip addr 194.1.1.2 255.255.255.0
 
router ospf 64
  netw 0.0.0.0 255.255.255.255 area 0
 
router bgp 200
  neighbor 194.1.1.1 remote-as 200
 
 
 
//// 监视和测试配置 ////
C# sh ip route
只显示出ospf路由,没有BGP路由,因为此时没有将B上BGP获知的路由重分发布至OSPF中。而此时由于必须同步,所以没有BGP路由。为了取消同步,在BGP进程中打入
c# router bgp 200
      no synchronization
 
执行clear ip bgp *
 
在D上显示BGP路由表,仍然没有内容,因为C不能通过IBGP通告从其他IBGP邻居那里获得路由。有两种方法可解决这个问题:
  1、通过neighbor指令建立一个路由器D到B的IBGP连接
  2、或者使C成为一个路由反射器。
 
c# router bgp 200
     neighbor 193.1.1.2 route-reflector-client
     neighbor 194.1.1.2 route-reflector-client
 
clear ip bgi *
 
sh ip bgp neighbors 194.1.1.2
  route-reflector client
 
show ip bgp
*>i1.0.0.0       192.1.1.1        100     100 i
 
 
 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有