The preference command configures a priority for a multi-homing site.
The undo preference command restores the default priority of a VPLS multi-homing site.
By default, the priority of VPLS multi-homing sites is 100.
Usage Scenario
VPLS multi-homing prevents routing loops by adjusting link priorities to ensure that one access link of a multi-homed CE is in the active state and the other access links in the blocked state. The link-priority-affecting factors are listed in descending order of influence as follows:
1.ACS: AC interface status, which is determined by the physical interface status 2.PREF: multi-homing site priority 3.PE-ID: If no BGP router ID is configured, the system router ID is used by default. If a BGP router ID is configured, it is used as the PE-ID. By default, no priority is configured for any multi-homing site. After you create a multi-homing site, run the preference command to configure a priority for the site.Prerequisites
A multi-homing site ID has been configured using the site-id site-id command.
Precautions
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi vsi1 [*HUAWEI-vsi-vsi1] pwsignal bgp multi-homing [*HUAWEI-vsi-vsi1-bgp] route-distinguisher 192.168.1.1:1 [*HUAWEI-vsi-vsi1-bgp] site name company1 [*HUAWEI-vsi-vsi1-bgp-site-company1] site-id 20 [*HUAWEI-vsi-vsi1-bgp-site-company1] preference 100