peer advertise best-external (BGP-Labeled address family view) (group)

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 group-name advertise best-external

undo peer group-name advertise best-external

Parameters

Parameter Description Value
group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-Labeled 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 in the BGP-labeled address family view.
<HUAWEI> system-view
[*HUAWEI] bgp 100
[*HUAWEI-bgp] group test
[~HUAWEI-bgp] ipv4-family labeled-unicast
[*HUAWEI-bgp-af-ipv4-labeled] peer test enable
[*HUAWEI-bgp-af-ipv4-labeled] peer test advertise best-external
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >