l Enabling the MPLS L2VPN on the PEs
l Configuring a Static PW on U-PEs if the PW switching is between two static PWs
l Configuring a Dynamic PW on U-PEs if the PW switching is between two dynamic PWs
Data Preparation
To configure PW switching, you need the following data.
No. Data
1 IP addresses and VC IDs of the static PW or dynamic PW to be switched
2 In-label and out-label of the L2VPN if the PW to be switched is a static PW
3 MTU values of the interfaces on the two ends of the PW if the PW to be switched is
a static PW
5.6.2 Configuring PW Switching
Context
PW switching can be classified into dynamic mode, static mode, and mixed mode. You can
configure the PW switching of a proper type.
Procedure
l Configuring static PW switching
Do as follows on the S-PEs:
1. Run:
system-view
The system view of the S-PE is displayed.
2. Run:
mpls switch-l2vc ip-address vc-id trans trans-label recv received-label
between ip-address vc-id trans trans-label recv received-label
encapsulation { ethernet | vlan } [ control-word [ cc { alert | cw }
*
cv
lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ]
The static PW switching is configured.
To configure static PW switching, you must configure PW labels on each S-PE.
The conditions of setting up a static MH-PW are as follows:
– On the U-PE, when the AC state is Up and the PSN tunnel exists, the PW state is
up.
– On the S-PE, when the PSN tunnels exist on both sides, the PW is in Up state. This
is regardless of whether the PW encapsulation type of S-PE is consistent with that
of the U-PE.
It is recommended that you set the same PW encapsulation types on the S-PE and U-
PE.
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 5 PWE3 Configuration
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
5-21