R2(config-router)#aggregate-address 11.11.11.0 255.255.255.0 ?
advertise-map Set condition to advertise attribute
as-set Generate AS set path information
attribute-map Set attributes of aggregate
nlri Nlri aggregate applies to
route-map Set parameters of aggregate
summary-only Filter more specific routes from updates
suppress-map Conditionally filter more specific routes from updates
<cr>
Before I apply the summary-only parameter three routes are being advertised to R3 -- the specific routes (/25s) and the aggregate route (/24).
R2#show ip bgp nei 2.2.2.3 advertised-routes
BGP table version is 16, local router ID is 2.2.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
*> 11.11.11.0/25 1.1.1.1 0 0 1 i
*> 11.11.11.0/24 0.0.0.0 32768 i
*> 11.11.11.128/25 1.1.1.1 0 0 1 i
Total number of prefixes 3
After I apply the summary-only parameter only the aggregated route is being advertised.
R2#conf t
R2(config)#router bgp 2
R2(config-router)#aggregate-address 11.11.11.0 255.255.255.0 summary-only
R2(config-router)#^Z
R2#show ip bgp nei 2.2.2.3 advertised-routes
BGP table version is 18, local router ID is 2.2.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
*> 11.11.11.0/24 0.0.0.0 32768 i
Total number of prefixes 1
R3#show ip bgp 11.11.11.0 255.255.255.0
BGP routing table entry for 11.11.11.0/24, version 27
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
2, (aggregated by 2 2.2.2.2)
2.2.2.2 from 2.2.2.2 (2.2.2.2)
Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate, best
Many more articles to come so stay tuned.
Please reshare/subscribe/comment/+1 if you like my posts as it keeps me motivated to write more and spread the knowledge.
No comments:
Post a Comment