配置BGP路由反射器 (Route Reflector)(CCIE实验49)

实验20 BGP基本配置-1(CCIE实验49)
时间:2006年2月13日
时间花费 总计约40分钟
实验设备:2501 5台
实验拓扑:

 

IP配置如下:

R2

R3

R4

R5

E0 193.1.1.2/24

E0 193.1.1.3/24

E0 193.1.1.1/24

S1 192.1.1.2/30 (DCE)

Lo0 1.1.1.1/24

 

S0 192.1.1.1/30

Lo0 5.5.5.5/24

 

 

 

Lo1 10.1.24.0/24

Lo2 10.1.25.0/24

Lo3 10.1.26.0/24

Lo4 10.1.27.0/24

 

需求:根据图示建立完成BGP配置,要求R4R3建立iBGP邻居,R3R2建立iBGP邻居,R4R3之间不建立iBGP邻居。要求R5上的路由可以更新至R2R2上的路由可以更新至R5

配置中涉及的知识参考文档BGP Route Reflector


R4和R2由于没有BGP邻居关系,所以R2只能通过R3接受来自R4的路由
但是如果没有配置RR,在R2上只能看到下面的情况:
r2#sh ip bgp

r2#sh ip route
… BGP表空白
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
C    193.1.1.0/24 is directly connected, Ethernet0
… 路由空白
在R3上配置RR
r3(config-router)#neighbor 193.1.1.1 route-reflector
r3(config-router)#
*Mar  2 05:37:44.032: %BGP-5-ADJCHANGE: neighbor 193.1.1.1 Down RR client config change
*Mar  2 05:38:10.400: %BGP-5-ADJCHANGE: neighbor 193.1.1.1 Up
由于RR的配置发生变化,R3和R2之间的BGP neighbor需要重新建立。
此时在R2上察看:
r2#sh ip bgp
BGP table version is 6, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
              r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i10.1.24.0/22     193.1.1.1                0    100      0 100 i
r2#sh ip route

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     10.0.0.0/22 is subnetted, 1 subnets
B       10.1.24.0 [200/0] via 193.1.1.1, 00:01:22
C    193.1.1.0/24 is directly connected, Ethernet0

可以看到路由更新已经送到
此时再增加一个RR,组建一个RR的cluster:
R1配置如下:E0 ip: 193.1.1.10/24
r1#sh run | b r b
router bgp 200
 no synchronization
 bgp cluster-id 1000 R3上也有同样的配置
 bgp log-neighbor-changes
 neighbor 193.1.1.1 remote-as 200
 neighbor 193.1.1.1 route-reflector-client
 neighbor 193.1.1.2 remote-as 200
 neighbor 193.1.1.2 route-reflector-client
 neighbor 193.1.1.3 remote-as 200
 no auto-summary
!
此时在R1上执行下面命令:
r1#sh ip bgp
BGP table version is 2, local router ID is 193.1.1.10
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
              r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete
   Network          Next Hop            Metric LocPrf Weight Path
*>i10.1.24.0/22     193.1.1.1                0    100      0 100 i
r1#sh ip route

     10.0.0.0/22 is subnetted, 1 subnets
B       10.1.24.0 [200/0] via 193.1.1.1, 00:01:30
C    193.1.1.0/24 is directly connected, Ethernet0

可以看到相应的路由表已经发送到R1。
这时把R3(原来的路由反射器关闭)的E0口关闭,在R2上执行clear ip route *
可以看到下面的:
*Mar  2 05:59:08.144: %BGP-5-ADJCHANGE: neighbor 193.1.1.3 Down BGP Notification sent
*Mar  2 05:59:08.144: %BGP-3-NOTIFICATION: sent to neighbor 193.1.1.3 4/0 (hold time expired) 0 bytes 与R3的BGP邻居断开
r2#sh ip bgp
BGP table version is 8, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
              r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i10.1.24.0/22     193.1.1.1                0    100      0 100 I 这条是通过新增加的R1学到的
再将R3的E0口no shutdown:
r2#sh ip bgp
BGP table version is 9, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
              r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i10.1.24.0/22     193.1.1.1                0    100      0 100 i
* i                 193.1.1.1                0    100      0 100 i
又从R3上学到了一条

《配置BGP路由反射器 (Route Reflector)(CCIE实验49)》上的4个想法

  1. 5个设备,怎么就只剩下4台了 还有一台怎么接。你上面的R1在那里啊。是怎么接的啊

  2. 5个设备,怎么就只剩下4台了 还有一台怎么接。你上面的R1在那里啊。是怎么接的啊

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据