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.
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.<HUAWEI> system-view [~HUAWEI] bgp 100 instance p1 [~HUAWEI-bgp-instance-p1] group a internal [~HUAWEI-bgp-instance-p1] ipv4-family vpnv4 [~HUAWEI-bgp-instance-p1-af-vpnv4] peer a enable [~HUAWEI-bgp-instance-p1-af-vpnv4] peer a advertise best-external