A-A+

BGP配置实验之路由反射器

2016年02月21日 站长资讯 暂无评论

1、路由反射器解析

路由反射器工作原理:

RR从EBGP收到的路由,会反射给客户端和非客户端

RR从客户端收到的路由,会反射给客户端、EBGP邻居和非客户端

RR从非客户端收到的路由,只会反射给客户端和EBGP邻居,不会反射给非客户端

2、实验拓扑

3、基础配置

R1配置

  1. interface Loopback0  
  2.  ip address 1.1.1.1 255.255.255.0  
  3. interface Serial0/0  
  4.  ip address 12.1.1.1 255.255.255.0  
  5. router bgp 1  
  6.  no synchronization  
  7.  bgp router-id 1.1.1.1  
  8.  network 1.1.1.0 mask 255.255.255.0  
  9.  neighbor 12.1.1.2 remote-as 2  
  10.  no auto-summary  

R2配置

  1. interface Loopback0  
  2.  ip address 2.2.2.2 255.255.255.0  
  3. interface Serial0/0  
  4.  ip address 12.1.1.2 255.255.255.0  
  5. interface Serial0/1  
  6.  ip address 23.1.1.2 255.255.255.0  
  7. router ospf 110  
  8.  router-id 2.2.2.2  
  9.  network 2.2.2.0 0.0.0.255 area 0  
  10.  network 23.1.1.0 0.0.0.255 area 0  
  11. router bgp 2  
  12.  no synchronization  
  13.  bgp router-id 2.2.2.2  
  14.  neighbor 3.3.3.3 remote-as 2  
  15.  neighbor 3.3.3.3 update-source Loopback0  
  16.  neighbor 3.3.3.3 next-hop-self  
  17.  neighbor 12.1.1.1 remote-as 1  
  18.  no auto-summary  

R3配置

  1. interface Loopback0  
  2.  ip address 3.3.3.3 255.255.255.0  
  3. interface Serial0/0  
  4.  ip address 34.1.1.3 255.255.255.0  
  5. interface Serial0/1  
  6.  ip address 23.1.1.3 255.255.255.0  
  7. router ospf 110  
  8.  router-id 3.3.3.3  
  9.  network 3.3.3.0 0.0.0.255 area 0  
  10.  network 23.1.1.0 0.0.0.255 area 0  
  11.  network 34.1.1.0 0.0.0.255 area 0  
  12. router bgp 2  
  13.  no synchronization  
  14.  bgp router-id 3.3.3.3  
  15.  neighbor 2.2.2.2 remote-as 2  
  16.  neighbor 2.2.2.2 update-source Loopback0  
  17.  neighbor 4.4.4.4 remote-as 2  
  18.  neighbor 4.4.4.4 update-source Loopback0  
  19.  no auto-summary  

R4配置 http://www.xiaoxiongboke.com/

  1. interface Loopback0  
  2.  ip address 4.4.4.4 255.255.255.0  
  3. interface Serial0/0  
  4.  ip address 34.1.1.4 255.255.255.0  
  5. router ospf 110  
  6.  router-id 4.4.4.4  
  7.  network 4.4.4.0 0.0.0.255 area 0  
  8.  network 34.1.1.0 0.0.0.255 area 0  
  9. router bgp 2  
  10.  no synchronization  
  11.  bgp router-id 4.4.4.4  
  12.  neighbor 3.3.3.3 remote-as 2  
  13.  neighbor 3.3.3.3 update-source Loopback0  
  14.  no auto-summary  

4、水平分割导致的问题

5、配置路由反射器解决水平分割

R3配置

router bgp 2

neighbor 2.2.2.2 route-reflector-client

neighbor 4.4.4.4 route-reflector-client

标签:

给我留言