peer high-priority (BGP-VPNv4 address family view/BGP-VPNv6 address family view) (group)

Function

The peer high-priority command enables a device to preferentially select routes based on their high priority.

The undo peer high-priority command disables a device from preferentially selecting routes based on their high priority.

By default, the routes learned from a peer group are selected based on the default priority.

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-VPNv4 address family view, BGP-VPNv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The VPNv4/VPNv6 address family supports the coexistence of IPv4 and IPv6 peers. A device may learn routes with the same prefix from both IPv4 and IPv6 peers. You can configure the priority sequence of routes received from a specified peer group.

Configuration Impact

The peer high-priority command takes effect only for VPNv4/VPNv6 routes and remotely leaked routes.

Example

# Enable a device to preferentially select a route with a specified peer group based on a high priority in the VPNv4 address family.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.1 as-number 100
[*HUAWEI-bgp] group g1
[*HUAWEI-bgp] ipv4-family vpnv4
[*HUAWEI-bgp-af-vpnv4] peer g1 enable
[*HUAWEI-bgp-af-vpnv4] peer 10.1.1.1 group g1
[*HUAWEI-bgp-af-vpnv4] peer g1 high-priority
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >