best-site

Function

The best-site command configures a multi-homing site as the optimal one.

The undo best-site command cancels the configuration of a multi-homing site as the optimal one.

By default, no optimal multi-homing site is configured.

Format

best-site

undo best-site

Parameters

None

Views

VSI-BGP-SITE view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

In VPLS multi-homing scenarios, the system selects a site for PW establishment based on the AC status (ACS), multi-homing site priority (PREF), and PE's router ID (PE-ID). However, the site selected may differ if the ACS, PREF, or PE-ID value changes, causing frequent PW changes. To prevent frequent PW changes, run the best-site command to specify an optimal multi-homing site so that the system will use the optimal site for PW establishment.

Prerequisites

A multi-homing site ID has been configured using the site-id command.

Precautions

  • This command is mutually exclusive with the active delay-time command and recover delay-time command.
  • A VSI can have only one optimal multi-homing site configured.
  • The PEs at both ends use the optimal sites of each other to establish a PW only after the best-site command is run on both PEs.
  • The PEs that a CE is multi-homed to must have different optimal multi-homing sites configured.

Example

# Create a multi-homing site named company2 with the ID of 50 in VSI vsi1 and configure the site as the optimal one.
<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 company2
[*HUAWEI-vsi-vsi1-bgp-site-company2] site-id 50
[*HUAWEI-vsi-vsi1-bgp-site-company2] best-site
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >