Aggregate the Routes to Advertise to BGP4+ Neighbors

By default, a device advertises individual routes for all networks. To minimize the size of the routing table, you can aggregate the routes in a range of networks into one IPv6 prefix.

About this task

You can aggregate BGP4+ routes into one network prefix, for example, 2001:db8::/24. This single prefix is advertised to BGP4+ neighbors instead of the individual BGP routes in the routing table that are within the specified range.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Access IPv6 address family configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  4. Specify the network prefix into which routes are to be aggregated.
    device(config-bgp-ipv6u)# aggregate-address 2001:db8::/32

Example

The following example summarizes the commands in this procedure.

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