ospf避免环路_BGP RR的环路避免机制

本文通过Cisco IOU平台详细介绍了BGP路由反射器(RR)如何避免环路。通过设置权重值、利用Cluster ID和Originator ID,确保了在AS100中OSPF路由的正确传播,防止了路由循环。实验展示了R1如何通过调整从R2学习的BGP条目的权重,以及RR如何通过Cluster List和Originator ID来避免环路。
摘要由CSDN通过智能技术生成

RR的环路避免机制

*其中箭头方向为Client方向

Platform:cisco iou

step 1:底层连接

step 2:R1/R2/R3/R4在AS100,并运行OSPF 100

show ip ospf neighbor

show ip route ospf

step 3:按拓扑建立iBGP邻居关系(注意反射器的指定)

r1#show ip bg

BGP table version is 11, 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

* i100.4.4.0/24     34.1.1.4                 0    100      0 i

*>i                 34.1.1.4                 0    100      0 i

r1#show ip bg 100.4.4.0

BGP routing table entry for 100.4.4.0/24, version 11

Paths: (2 available, best #2, table default)

Advertised to update-groups:

7

Local

34.1.1.4 (metric 20) from 12.1.1.2 (2.2.2.2)

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

Originator: 4.4.4.4, Cluster list: 2.2.2.2, 3.3.3.3

Local, (Received from a RR-client)

34.1.1.4 (metric 20) from 13.1.1.3 (3.3.3.3)

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

Originator: 4.4.4.4, Cluster list: 3.3.3.3

因为经过一个簇就相当于经过一个特殊的AS号来进行策略选路

step 4:R1指定从R2学习过来的BGP条目weight值设置为222(大于0即可)

R1(config-router)#neighbor 2.2.2.2 weight 222

show ip bgp 100.4.4.0

r1#show ip bg

BGP table version is 12, 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            Me

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值