peer advertise best-external (BGP-VPNv6 address family view) (IPv6)

Function

The peer advertise best-external command enables a BGP device to advertise Best-external routes to its peers.

The undo peer advertise best-external command restores the default configurations.

By default, Best-external routes are not advertised.

Format

peer ipv4-address advertise best-external

peer peerIpv6Addr advertise best-external

undo peer ipv4-address advertise best-external

undo peer peerIpv6Addr advertise best-external

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The value is in dotted decimal notation.

peerIpv6Addr

Specifies the IPv6 address of a peer.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

BGP-VPNv6 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 advertise Best-external routes to non-client IBGP peers, run the peer advertise best-external command. Best-external routes cannot be advertised to EBGP peers or clients.

Prerequisites

The BGP device has been enabled to select Best-external routes if the route preferentially selected based on the policies for BGP route selection is an IBGP route using the bestroute best-external command.

Precautions

The peer advertise best-external and peer reflect-client commands are mutually exclusive.

If a peer is specified when the peer advertise best-external command is run, a peer group is specified when the peer advertise add-path, peer capability-advertise add-path, or peer reflect-client command is run, and then the peer is added to the peer group, the peer cannot inherit the configuration of the peer advertise add-path, peer capability-advertise add-path, or peer reflect-client command from the peer group.

Example

# Enable a BGP device to advertise Best-external routes to its peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp] ipv6-family vpnv6
[*HUAWEI-bgp-af-vpnv6] peer 10.1.1.1 enable
[*HUAWEI-bgp-af-vpnv6] peer 10.1.1.1 advertise best-external
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >