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