preference (preference-based view)

Function

The preference command sets the precedence of DF election for an ESI instance.

The undo preference command deletes the precedence of DF election configured for an ESI instance.

By default, no DF election precedence is configured for an ESI instance.

Format

preference preference

undo preference preference

Parameters

Parameter Description Value
preference

Specifies the precedence of DF election.

The value is an integer ranging from 0 to 65535. The default value is 32767. The larger the value, the higher the precedence.

Views

preference-based view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In multi-homing networking, if users want to specify the master DF based on the precedence of an ESI instance, run the df-election type preference-based command to enter the preference-based view. Then, run the preference preference command to set a DF precedence. The larger value of preference , the higher precedence.

Example

# Configure the precedence of DF election for a static ESI instance.
<HUAWEI> system-view
[~HUAWEI] evpn
[*HUAWEI-evpn] esi 0011.1001.1001.1001.1002
[*HUAWEI-evpn-esi-0011.1001.1001.1001.1002] df-election type preference-based
[*HUAWEI-evpn-esi-0011.1001.1001.1001.1002-preference-based] preference 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >