[U-PE1-pw-template-pwt]
quit
[U-PE1]
mpls l2vpn
[U-PE1-l2vpn]
quit
[U-PE1]
interface vlanif 10
[U-PE1-Vlanif10]
mpls static-l2vc pw-template pwt 100 transmit-vpn-label 100
receive-vpn-label 100
[U-PE1-Vlanif10]
quit
# Configure S-PE.
[S-PE]
mpls l2vpn
[S-PE-l2vpn]
quit
[S-PE]
mpls switch-l2vc 5.5.5.9 100 trans 200 recv 200 between 1.1.1.9 100 trans
100 recv 100 encapsulation vlan
# Configure U-PE2.
[U-PE2]
mpls l2vpn
[U-PE2-l2vpn]
quit
[U-PE2]
pw-template pwt
[U-PE2-pw-template-pwt]
peer-address 3.3.3.9
[U-PE2-pw-template-pwt]
quit
[U-PE2]
interface vlanif 60
[U-PE2-Vlanif60]
mpls static-l2vc pw-template pwt 100 transmit-vpn-label 200
receive-vpn-label 200
[U-PE2-Vlanif60]
quit
NOTE
The transmit-vpn-label set on the U-PE must be consistent with the recv label on the S-PE; the receive-
vpn-label set on the U-PE must be consistent with the trans label on the S-PE. Otherwise, CEs cannot
communicate with each other.
Step 5
Verify the configuration.
View information about the L2VPN connection on the PEs, and you can see that an L2VC is set
up and is in Up state.
Take U-PE1 and S-PE for example.
<U-PE1>
display mpls static-l2vc interface vlanif 10
*Client Interface : Vlanif10 is up
AC Status : up
VC State :
up
VC ID : 100
VC Type : VLAN
Destination : 3.3.3.9
Transmit VC Label : 100
Receive VC Label : 100
Control Word : Disable
VCCV Capabilty : alert lsp-ping bfd
Tunnel Policy : --
PW Template Name : pwt
Traffic Behavior : --
Main or Secondary : Main
VC tunnel/token info : 1 tunnels/tokens
NO.0 TNL Type : lsp , TNL ID : 0x4800200f
Create time : 0 days, 0 hours, 13 minutes, 7 seconds
UP time : 0 days, 0 hours, 10 minutes, 23 seconds
Last change time : 0 days, 0 hours, 10 minutes, 23 seconds
VC last up time : 2010/11/14 12:31:31
VC total up time : 0 days, 2 hours, 12 minutes, 51 seconds
CKey : 2
NKey : 3
<S-PE>
display mpls switch-l2vc
Total Switch VC : 1, 1 up, 0 down
*Switch-l2vc type :
SVC<---->SVC
Peer IP Address : 5.5.5.9, 1.1.1.9
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.
597