peer capability-advertise (BGP-VPN instance IPv6 address family view) (IPv6)

Function

The peer capability-advertise command enables optional BGP functions when a BGP peer advertises routes to its peer. The optional BGP functions include route-refresh, general function, 4-byte AS number, and Add-Path.

The undo peer capability-advertise command restores the default setting.

By default, the route-refresh and 4-byte AS number functions are enabled, but the general function and Add-Path are disabled.

Format

peer ipv6-address capability-advertise { route-refresh | 4-byte-as }

undo peer ipv6-address capability-advertise { route-refresh | 4-byte-as }

Parameters

Parameter Description Value
ipv6-address

Specifies the IPv6 address of a peer.

The value is in the format of X:X:X:X:X:X:X:X.

route-refresh

Indicates the route-refresh function.

-

4-byte-as

Indicates the 4-byte AS number function.

-

Views

BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

There are multiple optional BGP functions when a BGP peer advertises routes to its peer. The optional BGP functions include route-refresh, general function, 4-byte AS number, and Add-Path. You can run the peer capability-advertise command to select one of the functions based on the needs on the live network.

Configuration Impact

If you enable or disable the route-refresh, general function, 4-byte AS number, or Add-Path function, the BGP peer relationship will be re-established, which can lead to a temporary network interruption. Therefore, exercise caution when running the related commands.

Example

# Configure a BGP device to advertise the route-refresh capability to its peer.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv6] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family vpn-instance vpna
[*HUAWEI-bgp-6-vpna] peer 2001:DB8:1::1 as-number 100
[*HUAWEI-bgp-6-vpna] peer 2001:DB8:1::1 capability-advertise route-refresh
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >