The summary automatic command enables automatic aggregation for the locally imported routes.
The undo summary automatic command disables automatic aggregation for the locally imported routes.
By default, automatic aggregation is disabled for the locally imported routes.
BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view
Usage Scenario
In the BGP-IPv4 unicast address family view, the summary automatic command is used to configure a BGP device to automatically aggregate locally imported routes on the public network.
In the BGP-VPN instance IPv4 address family view, the summary automatic command is used to configure a BGP device to automatically aggregate locally imported routes on a private network.
The summary automatic command is used to aggregate the routes imported by BGP. These routes can be direct routes, static routes, RIP routes, OSPF routes, or IS-IS routes. After this command is run on a BGP device, the BGP device aggregates routes based on the natural network segment (for example, 10.1.1.0/24 and 10.2.1.0/24 are aggregated to 10.0.0.0/8, a Class A address), and sends only the aggregated route to its peers. This reduces the number of routes.
Precautions
BGP route aggregation is classified into manual aggregation and automatic aggregation. The command is used to implement automatic aggregation. Manual aggregation takes precedence over automatic aggregation.
The summary automatic command is invalid for the routes imported by using the network command.