protect-group

Function

The protect-group command creates a PW protection group or directly displays the PW protection group view if the PW protection group already exists.

The undo protect-group command deletes a specified PW protection group.

By default, no PW protection group is created in a VSI.

Format

protect-group group-name

undo protect-group group-name

Parameters

Parameter Description Value
group-name

Specifies the name of a PW protection group.

The value is a string of 1 to 15 case-sensitive characters, spaces and hyphens (-) not supported.

The string can contain spaces if it is enclosed in double quotation marks (").

Views

VSI-LDP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

Multiple PWs can be created in a VSI, every two PWs can form a protection group to protect each other.

You can create multiple PW protection groups for a VSI. After you add two PWs to a PW protection group, the two PWs will work in backup mode.

Prerequisites

The VSI ID has been configured.

Follow-up Procedure

After creating PW protection groups, configure the PW redundancy mode of each PW protection group, add PWs to these groups, and configure revertive switching policies for these groups.

Example

# Create a PW protection group named group1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] pwsignal ldp
[*HUAWEI-vsi-vsi1-ldp] vsi-id 100
[*HUAWEI-vsi-vsi1-ldp] protect-group group1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >