aggregate-address (BGP)

Configures the device to aggregate routes from a range of networks into a single network prefix.
Syntax
aggregate-address { ip-addr ip-mask | ipv6-addr ipv6-mask } [ advertise-map map-name ] [ as-set ] [ attribute-map map-name ] [ summary-only ] [ suppress-map map-name ]
no aggregate-address { ip-addr ip-mask | ipv6-addr ipv6-mask } [ advertise-map map-name ] [ as-set ] [ attribute-map map-name ] [ summary-only ] [ suppress-map map-name ]
Command Default

The address aggregation feature is disabled. By default, the device advertises individual routes for all networks.

Parameters
ip-addr
Specifies the IPv4 address.
ip-mask
Specifies the IPv4 mask.
ipv6-addr
Specifies the IPv6 address.
ipv6-mask
Specifies the IPv6 mask.
advertise-map
Specifies that the device advertises the more-specific routes in the specified route map.
map-name
Specifies a route map to be consulted.
as-set
Causes the device to aggregate AS-path information for all routes in the aggregate routes from a range of networks into a single network prefix.
attribute-map
Causes the device to set attributes for the aggregate routes according to the specified route map.
summary-only
Prevents the device from advertising more-specific routes contained within the aggregate route.
suppress-map
Prevents the more-specific routes contained in the specified route map from being advertised.
Modes

BGP configuration mode

BGP address-family IPv6 unicast configuration mode

BGP address-family IPv4 unicast VRF configuration mode

BGP address-family IPv6 unicast VRF configuration mode

Usage Guidelines

When this command is entered in BGP global configuration mode, it applies only to the IPv4 address family. Use this command in BGP address-family IPv6 unicast configuration mode for BGP4+ configurations.

The no form of the command restores the defaults.

Examples

The following example aggregates routes from a range of networks into a single network prefix and prevents the device from advertising more-specific routes.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# aggregate-address 10.11.12.0 summary-only

The following example aggregates routes from a range of networks into a single network prefix under the IPv6 address family and advertises the paths for this route as AS_SET.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# aggregate-address 2001:DB8:12D:1300::/64 as-set

The following example aggregates routes from a range of networks into a single network prefix for BGP VRF instance "red".

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast vrf red
device(config-bgp-ipv4u-vrf)# aggregate-address 5.0.0.0/8 
History
Release version Command history
08.0.30 Support was added for the BGP address-family IPv6 unicast VRF configuration mode.