The aggregate default-route command enables a BGP device to summarize the routes that match a specified IPv4 prefix list into a summary default route.
The undo aggregate default-route command restores the default configuration.
By default, BGP cannot summarize the routes that match a specified IPv4 prefix list into a summary default route.
Parameter | Description | Value |
---|---|---|
attribute-policy attribute-policy-name |
Specifies the name of an attribute route-policy for the summary default route. |
The value is a string of 1 to 200 characters. |
origin-ip-prefix ip-prefix-name |
Specifies the name of an IPv4 prefix list. |
The value is a string of 1 to 169 characters and cannot contain spaces. |
Usage Scenario
To enable a BGP device to summarize the routes that match a specified IPv4 prefix list into a summary default route, run the aggregate default-route command. For details about the usage scenario, see "IP Routing" > "BGP Configuration" > "Configuring BGP to Generate a Summary Default Route" in the related configuration guide.
Prerequisites
An IPv4 prefix list has been configured using the ip ip-prefix command.
Precautions
The number of entries in the IPv4 prefix list specified in the aggregate default-route command cannot exceed 200.
<HUAWEI> system-view [~HUAWEI] ip ip-prefix prefix-a index 10 permit 192.168.1.1 24 [*HUAWEI] route-policy policy1 permit node 10 [*HUAWEI-route-policy] if-match ip-prefix prefix-a [*HUAWEI-route-policy] apply cost 100 [*HUAWEI-route-policy] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family vpn-instance vpna [*HUAWEI-bgp-vpna] aggregate default-route origin-ip-prefix prefix-a attribute-policy policy1
<HUAWEI> system-view [~HUAWEI] ip ip-prefix p1 index 10 permit 192.168.1.1 29 [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family vpn-instance vpna [*HUAWEI-bgp-vpna] aggregate default-route origin-ip-prefix p1