summary automatic (BGP multi-instance VPN instance IPv4 address family view)

Function

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, the locally-imported routes are not aggregated automatically.

Format

summary automatic

undo summary automatic

Parameters

None

Views

BGP multi-instance VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The summary automatic command is used in the BGP-IPv4 unicast address family view to configure a BGP device to automatically aggregate locally-imported routes on the public network.

The summary automatic command is used in the BGP-VPN instance view 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.1/32 and 10.2.1.1/32 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.

Configuration Impact

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.

Precautions

The summary automatic command is invalid for the routes imported by using the network command.

Example

# Enable automatic aggregation for imported routes.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-instance-vpna] quit
[*HUAWEI] bgp 100 instance a
[*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-instance-a-vpna] summary automatic
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >