BGP路由反射器

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1:优化配置,优化管理

路由反射器的作用:

减少IBGP 对等体关系的数目 解决IBGP 水平分割带来的路由不被学习的问题.

1.1.3 反射的原则

1)If the route was learned from a nonclient IBGP peer, it is reflected to clients only.

2)If the route was learned from a client, it is reflected to all nonclients and clients, except for the originating client.

如图所示:将1.1.1.0/24宣告进bgp ,但是R3与R5都学不到这个路由。解决方法:

把R2变成路由反射器。

配置:

R2(config-router)#nei 12.12.12.1 route-reflector-client

R2(config-router)#nei 23.23.23.3 route-reflector-client

R2(config-router)#nei 25.25.25.5 route-reflector-client

*Feb 16 18:34:32.279: %BGP-5-ADJCHANGE: neighbor 25.25.25.5 Down RR client config change //路由反射器的配置会引起邻居关系的down

路由反射器,进行路由反射时,其被反射的路由的下一跳是不会改变的。

路由反射器

Wednesday, February 16, 2011

6:07 PM

1.1.4 RR 防止环路

利用ORIGINATE-ID 和CLUSTER-ID

R1#sh ip bg

Network Next Hop Metric LocPrf Weight Path

*> 1.1.1.0/24 0.0.0.0 0 32768 i

* i3.3.3.0/24 34.34.34.3 0 100 0 i

*>i 23.23.23.3 0 100 0 i

R1#

R1#sh ip bg 3.3.3.0

BGP routing table entry for 3.3.3.0/24, version 5

Paths: (2 available, best #1, table Default-IP-Routing-Table)

Not advertised to any peer

Local

23.23.23.3 from 12.12.12.2 (23.23.23.2)

Origin IGP, metric 0, localpref 100, valid, internal, best

Originator: 23.23.23.3, Cluster list: 23.23.23.2 //在没有配置的情况下簇ID与router-id一样

Local

34.34.34.3 from 14.14.14.4 (34.34.34.4)

Origin IGP, metric 0, localpref 100, valid, internal

Originator: 23.23.23.3, Cluster list: 34.34.34.4//在没有配置的情况下簇ID与router-id一样

所以说由于R2与R4的router-id不一样,所以簇ID也不一样,无法防环。

路由反射器产生的起源ID是无法配置的,那么如果非要修改,那么只有在路由的起源路由器上通过修改ROUTER-ID 来实现

Cluster list 是可以通过命令行bgp cluster-id 1进行修改,默认他是路由反射器的ROUTER-ID

R2(config-router)#bgp cluster-id 22.22.22.22

R4(config-router)#bgp cluster-id 22.22.22.22

R1#sh ip bg 3.3.3.0

BGP routing table entry for 3.3.3.0/24, version 6

Paths: (2 available, best #1, table Default-IP-Routing-Table)

Not advertised to any peer

Local

23.23.23.3 from 12.12.12.2 (23.23.23.2)

Origin IGP, metric 0, localpref 100, valid, internal, best

Originator: 23.23.23.3, Cluster list: 22.22.22.22

Local

34.34.34.3 from 14.14.14.4 (34.34.34.4)

Origin IGP, metric 0, localpref 100, valid, internal

Originator: 23.23.23.3, Cluster list: 22.22.22.22

相关文档
最新文档