Aggregating Routes Advertised to BGP Neighbors

A device can be configured to aggregate routes in a range of networks into a single IPv6 prefix.
The route map should already be defined.
You can aggregate BGP4+ routes, for example 2001:db8:0001:0000::/64, 2001:db8:0002:0000::/64, 2001:db8:0003:0000::/64 into a single network prefix: 2001:db8::/24.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the address-family ipv6 unicast command to enter IPv6 address family configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  4. Enter the aggregate-address command to aggregate the routes from a range of networks into a single network prefix.
    device(config-bgp-ipv6u)# aggregate-address 2001:db8::/32

The following example enables a BGP4+ device to advertise the default route and send the default route to a specified neighbor.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# aggregate-address 2001:db8::/32