BGP Cluster-list (Lab)
r1:loopback 1(11.11.11.11)
r2:loopback 1(22.22.22.22)
r3:loopback 1(33.33.33.33)
r4:loopback 1(44.44.44.44)
r5:loopback 1(55.55.55.55)
r6:loopback 1(66.66.66.66)
通过network通告到bgp
ps:bgp默认会使用router-id作为自己的Cluster-ID
r6#sh ip b
BGP table version is 7, local router ID is 6.6.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i11.11.11.11/32 1.1.1.1 0 100 0 ?
*>i22.22.22.22/32 2.2.2.2 0 100 0 ?
*>i33.33.33.33/32 3.3.3.3 0 100 0 ?
*>i44.44.44.44/32 4.4.4.4 0 100 0 ?
*>i55.55.55.55/32 5.5.5.5 0 100 0 ?
*> 66.66.66.66/32 0.0.0.0 0 32768 ?
r6#sh ip b 44.44.44.44
BGP routing table entry for 44.44.44.44/32, version 5
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
4.4.4.4 (metric 129) from 3.3.3.3 (3.3.3.3)
Origin incomplete, metric 0, localpref 100, valid, internal, best
Originator: 4.4.4.4, Cluster list: 3.3.3.3, 2.2.2.2, 1.1.1.1
通过client收到的路由会加入自己的Cluster-ID
r6#sh ip b 11.11.11.11
BGP routing table entry for 11.11.11.11/32, version 2
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
1.1.1.1 (metric 321) from 3.3.3.3 (3.3.3.3)
Origin incomplete, metric 0, localpref 100, valid, internal, best
Originator: 1.1.1.1, Cluster list: 3.3.3.3, 2.2.2.2
RR上通告的路由不会加入自己的Cluster-ID
在R3上手动修改Cluster-ID为2.2.2.2
r3#sh ip b
BGP table version is 4, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i22.22.22.22/32 2.2.2.2 0 100 0 ?
*> 33.33.33.33/32 0.0.0.0 0 32768 ?
*>i66.66.66.66/32 6.6.6.6 0 100 0 ?
在接收路由的时候在Cluster list里看到带有自己的Cluster-ID,而不接收这条路由。
r6#sh ip b
BGP table version is 24, local router ID is 6.6.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i22.22.22.22/32 2.2.2.2 0 100 0 ?
*>i33.33.33.33/32 3.3.3.3 0 100 0 ?
*> 66.66.66.66/32 0.0.0.0 0 32768 ?
浙公网安备 33010602011771号