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

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 peerGroupName high-priority

undo peer peerGroupName high-priority

Parameters

Parameter Description Value
peerGroupName

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-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 a specified peer group based on a high priority in the EVPN address family.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp] group g1
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] peer g1 enable
[*HUAWEI-bgp-af-evpn] peer 10.1.1.1 group g1
[*HUAWEI-bgp-af-evpn] peer g1 high-priority
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >