< Home

peer preference (protect-group view)

Function

The peer preference command adds a specified PW to a PW protection group and specifies the priority of the PW.

The undo peer preference command deletes a specified PW from a PW protection group.

By default, no PW is added to a PW protection group.

Format

peer peer-address [ negotiation-vc-id vc-id ] preference preference-value

undo peer peer-address [ negotiation-vc-id vc-id ]

Parameters

Parameter Description Value

peer-address

Specifies the IPv4 address of the VSI peer. Generally, the loopback address of the peer is used.

-

negotiation-vc-id vc-id

Specifies the parameter negotiated with the peer. By default, the VSI ID is used. Generally, this parameter is used in VPLS accessing VLL scenarios in which the VSI IDs of the two ends are inconsistent and the two ends are required to communicate.

The value is an integer that ranges from 1 to 4294967295.

preference-value

Specifies the priority of a peer when the peer joins a PW protection group. The smaller the value, the higher the priority. Among the two peers added to a PW protection group, the one with the higher priority serves as the primary.

The value is an integer ranging from 1 to 32.

Views

protect-group view

Default Level

2. Configuration level

Usage Guidelines

Usage Scenario

After creating a PW protection group and specify the PW redundancy mode, you can add specified PWs to the group for them to work in backup mode.

Prerequisites

A PW protection group has been created and the PW redundancy mode has been specified.

Precautions

Add PWs to a PW protection group in the descending order of PW priorities. Do not add the PW with a lower priority to the PW protection group first.

If you add the PW with a lower priority to the PW protection group first, a PW switchover will occur after you add the other PW to the PW protection group.

Example

# Add a specified PW to a PW protection group and set the priority of the PW to 1.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] peer 2.2.2.2 preference 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >