Configure Aggregate Routes
Route aggregation allows you to combine groups of routes with common addresses into a single entry in the routing table. This decreases the size of the routing table as well as the number of route advertisements sent by the router.
An aggregate route becomes active when it has one or more contributing routes. A contributing route is an active route that is a more specific match for the aggregate destination. For example, for the aggregate destination
128.100.0.0/16, routes to128.100.192.0/19and128.100.67.0/24are contributing routes, but routes to128.0.0.0./8,128.0.0.0/16, and128.100.0.0/16are not.A route can contribute only to a single aggregate route. However, an active aggregate route can recursively contribute to a less specific matching aggregate route. For example, an aggregate route to the destination
128.100.0.0/16can contribute to an aggregate route to128.96.0.0/13.When an aggregate route becomes active, it is installed in the routing table with the following information:
- Reject next hop—If a more-specific packet does not match a more-specific route, the packet is rejected and an ICMP unreachable message is sent to the packet's originator.
- Metric value as configured with the
aggregatestatement.- Preference value that results from the policy filter on the primary contributor, if a filter was specified. Otherwise, the preference value as configured in the
aggregatestatement.- AS path as configured in the
aggregatestatement, if any. Otherwise, the path is computed by aggregating the paths of all contributing routes.- Community as configured in the
aggregatestatement, if any is specified.
You can configure only one aggregate route for each destination prefix.To configure aggregate routes in the default routing table (
inet.0), include theaggregatestatement:[edit]routing-options {aggregate {defaults {aggregate-options;}routedestination-prefix{policypolicy-name;aggregate-options;}}}For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.
To configure aggregate routes in one of the other routing tables, or to explicitly configure aggregate routes in the default routing table (
inet.0), include theaggregatestatement:[edit]routing-options {ribrouting-table-name{aggregate {defaults {aggregate-options;}routedestination-prefix{policypolicy-name;aggregate-options;}}}}For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.
The
aggregatestatement consists of two parts:
defaultspart—Here you specify global aggregate route options. These are treated as global defaults and apply to all the aggregate routes you configure in theaggregatestatement. This part of theaggregatestatement is optional.routepart—Here you configure individual aggregate routes. In this part of theaggregatestatement, you optionally can configure aggregate route options. These options apply to the individual destination only and override any options you configured in thedefaultspart of theaggregatestatement.The following sections explain how to configure aggregate routes.