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

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 peerIpv6Addr high-priority [ disable ]

undo peer peerIpv6Addr high-priority [ disable ]

Parameters

Parameter Description Value
peerIpv6Addr

Specifies an IPv6 address for a BGP EVPN peer.

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

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