aggregate default-route (BGP-IPv6 unicast address family view)

Function

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.

Format

aggregate default-route origin-ipv6-prefix ipv6-prefix-name [ attribute-policy attribute-policy-name ]

undo aggregate default-route

undo aggregate default-route origin-ipv6-prefix ipv6-prefix-name [ attribute-policy attribute-policy-name ]

Parameters

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.

Views

BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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.

Example

# Enable a BGP device to summarize the routes that match an IPv6 prefix list into a summary default route.
<HUAWEI> system-view
[~HUAWEI] ip ipv6-prefix abc deny 2001:db8:: 32 less-equal 128
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family unicast
[*HUAWEI-bgp-af-ipv6] aggregate default-route origin-ipv6-prefix abc
# Enable a BGP device to summarize the routes that match an IPv6 prefix list into a summary default route and specify an attribute route-policy for the summary default route.
<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 unicast
[*HUAWEI-bgp-af-ipv6] aggregate default-route origin-ipv6-prefix abc attribute-policy policy1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >