7.37 BGP Communities - No-Advertise
• Configure R2 so that it does not advertise prefixes received from AS 254 to any peer.
• Do not use any sort of prefix filtering to accomplish this.
--------------------------------------------------------------------------------
設定當R2接收到AS254的prefixs時,不要advertise給其他的peer Router
---------------------------------------------------------------------------
R2:
route-map SET_COMMUNITY
set community no-advertise
!
router bgp 200
neighbor 192.10.1.254 route-map SET_COMMUNITY in
--------------------------------------------
Rack1R2#show ip bgp regexp 254$
BGP table version is 50, local router ID is 150.1.2.2
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
*> 205.90.31.0 192.10.1.254 0 0 254 ?
*> 220.20.3.0 192.10.1.254 0 0 254 ?
*> 222.22.2.0 192.10.1.254 0 0 254 ?
Rack1R2#
Rack1R2#show ip bgp 222.22.2.0
BGP routing table entry for 222.22.2.0/24, version 48
Paths: (1 available, best #1, table Default-IP-Routing-Table, not advertised to any peer)
Not advertised to any peer
254
192.10.1.254 from 192.10.1.254 (222.22.2.1)
Origin incomplete, metric 0, localpref 100, valid, external, best
Community: no-advertise
Rack1R2#
Rack1R2#show ip bgp neighbors 155.1.23.3 advertised-routes
Total number of prefixes 0
Rack1R2#
Rack1R2#show ip bgp neighbors 155.1.0.5 advertised-routes
Total number of prefixes 0
Rack1R2#
Rack1R3#show ip bgp regexp 254$
Rack1R3#
Rack1R5#show ip bgp regexp 254$
Rack1R5#
沒有留言:
張貼留言