The aggregate command adds a summarized route to the BGP routing table. The outbound interface of the summarized route on the local Router is NULL 0. When receiving the summarized route, each of the other devices automatically adds its local outbound interface to the summarized route.
The undo aggregate command disables the function.
By default, no routes are summarized.
aggregate ipv6-address mask-length [ as-set | detail-suppressed | attribute-policy route-policy-name1 | origin-policy route-policy-name2 | suppress-policy route-policy-name3 ] *
aggregate ipv6-address mask-length [ as-set | detail-suppressed ] { attribute-filter attr-filter-name | origin-filter orig-filter-name | suppress-filter supp-filter-name } *
aggregate ipv6-address mask-length as-set detail-suppressed { attribute-filter attr-filter-name | origin-filter orig-filter-name | suppress-filter supp-filter-name } *
undo aggregate ipv6-address mask-length [ as-set | detail-suppressed | attribute-policy route-policy-name1 | origin-policy route-policy-name2 | suppress-policy route-policy-name3 ] *
undo aggregate ipv6-address mask-length [ as-set | detail-suppressed ] { attribute-filter attr-filter-name | origin-filter orig-filter-name | suppress-filter supp-filter-name } *
undo aggregate ipv6-address mask-length as-set detail-suppressed { attribute-filter attr-filter-name | origin-filter orig-filter-name | suppress-filter supp-filter-name } *
Parameter | Description | Value |
---|---|---|
ipv6-address |
Specifies an IPv6 address of the summarized route. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
mask-length |
Specifies the network mask length of the summarized route. |
The value is an integer ranging from 1 to 128. |
as-set |
Generates a route carrying AS-SET. |
- |
detail-suppressed |
Advertises only the summarized route. |
- |
attribute-policy route-policy-name1 |
Specifies the name of an attribute route-policy for the summarized route. |
The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
origin-policy route-policy-name2 |
Specifies the name of a route-policy that allows route summarization. |
The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
suppress-policy route-policy-name3 |
Specifies the name of a route-policy for suppressing the advertisement of specified routes. |
The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
attribute-filter attr-filter-name |
Specifies the name of an attribute route-filter for the summarized route. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. |
origin-filter orig-filter-name |
Specifies the name of a route-filter that allows route summarization. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. |
suppress-filter supp-filter-name |
Specifies the name of a route-filter for suppressing the advertisement of specified routes. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. |
Usage Scenario
BGP route summarization is classified as manual route summarization or automatic route summarization. The aggregate command is used to implement manual route summarization, which takes precedence over automatic route summarization. The aggregate ipv4-address { mask | mask-length } command configures BGP to summarize specific routes in the local BGP routing table and then advertise all specific routes as well as the summary route. The generated summary route inherits the Origin attribute from the specific routes if they have the same Origin attribute. If the specific routes have different Origin attributes, the summary route selects one as its own from these Origin attributes in descending order of preference: incomplete > egp > igp. In addition, the summary route carries the atomic-aggregate attribute. Except the Origin and atomic-aggregate attributes, the summary route does not carry any other attributes of the specific routes.
To generate a summary route that can be used to detect a routing loop, you can specify the as-set parameter when running the aggregate command. The summary route inherits the attributes such as Origin, AS_Path (used for loop prevention), community, and large-community from the specific routes. The summary route also carries the community attributes of all its original specific routes. If the number of community attributes carried in the specific routes being summarized exceeds 255, route summarization stops, and the routes that fail to participate in summarization are still advertised as specific routes. Exercise caution to use this parameter if a large number of AS_Path lists are involved in route summarization. This is because frequent changes in the specific routes may cause route flapping. If detail-suppressed is specified in the command, the summarized route is advertised, but specific routes are not. The summarized route carries the atomic-aggregate attribute, not the community attributes of specific routes. If suppress-policy is specified in the command, specified routes are not advertised. The if-match clause of route-policy can be used to filter the routes, and only the routes matching the policy will be suppressed. The peer route-policy command can also be used to filter routes and prevent unwanted routes from being advertised to peers. If origin-policy is specified in the command, only the routes matching route-policy are summarized. If attribute-policy is specified in the command, attributes can be set for the summarized route. If the AS_Path attribute is set in the policy using the apply as-path command and as-set is set in the aggregate command, the AS_Path attribute in the policy does not take effect. The peer route-policy command can also be used to set attributes for a summarized route.Configuration Impact
If detail-suppressed is configured in the command, the advertisement of specific routes will be suppressed. If suppress-policy is configured in the command, the advertisement of the specific routes that match the policy will be suppressed.
Precautions
If the undo aggregate command is run, the system will match routes against the configured attribute-policy, origin-policy, suppress-policy, as-set, or detail-suppressed. If no parameter is configured, the system will fail to execute the undo aggregate command.
After a summary route is configured using the aggregate command and the summary route is leaked from the local VPN instance to another VPN instance, the summary route may be selected to guide traffic forwarding due to its high priority. As a result, traffic is dropped. To prevent this issue, plan a proper mask length for the summary route.