peer high-priority (BGP-EVPN address family view)

Function

The peer high-priority command enables a device to preferentially select routes based on their high priority in the EVPN address family.

The undo peer high-priority command disables a device from preferentially selecting routes based on their high priority in the EVPN address family.

By default, routes are preferentially selected based on BGP route selection rules in the EVPN address family.

Format

peer peerIpv4Addr high-priority [ disable ]

undo peer peerIpv4Addr high-priority [ disable ]

Parameters

Parameter Description Value
peerIpv4Addr

Specifies an IPv4 address for a BGP EVPN peer.

The value is in dotted decimal notation.

disable

Disables a device from preferentially selecting routes based on their high priority in the EVPN address family.

-

Views

BGP-EVPN address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

On networks where IPv4 and IPv6 services coexist, a device may have two routes with the same prefix but different next hops. One is an IPv4 route and the other is an IPv6 route. To enable the device to preferentially select one of the routes based on a higher priority, run the peer high-priority command.

Example

# Enable a device to preferentially select a route with an IPv4 next hop based on a high priority in the EVPN address family.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-evpn] peer 1.1.1.1 high-priority
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >