The aggregate default-route command enables a BGP device to summarize the routes that match a specified IPv6 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 IPv6 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-ipv6-prefix ipv6-prefix-name |
Specifies the name of an IPv6 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 IPv6 prefix list into a summary default route, run the aggregate default-route command. For details about the usage scenario, see "IP Routing" > "BGP4+ Configuration" > "Configuring BGP4+ to Generate a Summary Default Route" in the related configuration guide.
Prerequisites
An IPv6 prefix list has been configured using the ip ipv6-prefix command.
Precautions
The number of entries in the IPv6 prefix list specified in the aggregate default-route command cannot exceed 200.
<HUAWEI> system-view [~HUAWEI] ip ipv6-prefix abc deny 2001:db8:: 32 less-equal 128 [*HUAWEI] route-policy policy1 permit node 10 [*HUAWEI-route-policy] if-match ipv6 address prefix-list abc [*HUAWEI-route-policy] apply cost 100 [*HUAWEI-route-policy] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family vpn-instance vrf1 [*HUAWEI-bgp-vrf1] aggregate default-route origin-ipv6-prefix abc attribute-policy policy1
<HUAWEI> system-view [~HUAWEI] ip ipv6-prefix abc deny 2001:db8:: 32 less-equal 128 [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family vpn-instance vrf1 [*HUAWEI-bgp-vrf1] aggregate default-route origin-ipv6-prefix abc