The system view is displayed.
Step 2 Run:
interface interface-type interface-number [ .subinterface-number ]
The interface view of the interface attached to an AC is displayed.
Step 3 (Optional) Run:
undo portswitch
A Layer 2 interface is switched to a Layer 3 interface.
When using XGE, GE, Ethernet, and Eth-Trunk interfaces as AC interfaces, run this command
to switch Layer 2 interfaces to Layer 3 interfaces.
Step 4 Run:
mpls l2vc { ip-address | pw-template pw-template-name }
*
vc-id [ group-id group-
id | tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw |
tagged ] | mtu mtu-value | secondary ]
*
An MPLS L2VPN connection for a dynamic PW is configured.
NOTE
l raw and tagged are needed only for an Ethernet link.
l secondary is used to configure a backup PW. The backup PW can be configured only after the master
PW is configured. For the detailed configuration, see Configuring a Backup PW
l The combination of a PW ID and a PW type must be unique on one end of a PW, but the PW IDs on
both ends of a switch PW can be identical.
For a dynamic PW, the VC ID of the same encapsulation type should be unique. Changing
encapsulation type may cause a VC ID conflict.
----End
6.5.4 Checking the Configuration
After a dynamic PW is configured, you can view information about the PW.
Prerequisite
The configurations of the dynamic PWs function are complete.
Procedure
l Run the display mpls l2vc [ vc-id | interface interface-type interface-number ] command
to check information about a specified PW on the local PE.
l Run the display mpls l2vc remote-info [ vc-id ] command to check information about the
PW on the remote PE.
----End
Example
Run the display mpls l2vc [ vc-id | interface interface-type interface-number ] command. You
can see that VC state is up. For example:
<Quidway> display mpls l2vc interface vlanif 111
*client interface : Vlanif111 is up
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 6 PWE3 Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
559