Background Information
- Sometimes we want to reduce the size of the BGP table.
- BGP gives us a way to advertise an aggregate-address.
Summary
- aggregate-address to define an aggregate address. If at least one component prefix exists in the BGP table, the aggregate-address will be advertised. By default, the component prefixes are not suppressed and will be advertised as they normally do. This is different from the way IGPs summarize.
- The as-set attribute advertises the component prefix AS as a set. When a router sees itself in the as-set, it will drop the update. We sometimes need this to prevent routing information loops. Keep in mind a component route flap will cause updates.
- The summary-only attribute suppresses all of the component prefixes.
- The suppress-map suppresses individual component prefixes. You can then use unsuppress-map on the neighbor to conditionally unsuppress prefixes that have been suppressed.
- Use a route-map or an attribute-map to set the attributes of the aggregate.
- Use an advertise-map to specify which component prefix attributes to use for the aggregate.
- An inject-map can be used to advertise a more specific route if a more general route exists.
router bgp 100
address-family ipv4
aggregate-address IP MASK
route-map
summary-only
as-set
attribute-map
advertise-map
suppress-map
bgp inject-map exist-map ! Inject a more specific route if aggregate exists
neighbor X unsuppress-map ROUTE-MAP