[PE2-Vlanif30] mpls
[PE2-Vlanif30] mpls ldp
[PE2-Vlanif30] quit
After the configuration, LDP sessions are set up between PE1, P, and PE2. Run the display mpls
ldp session command, and you can see that the status of the LDP session is Operational.
Take the display on PE1 for example:
<PE1> display mpls ldp session
LDP Session(s) in Public Network
------------------------------------------------------------------------------
Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv
------------------------------------------------------------------------------
2.2.2.9:0 Operational DU Passive 000:00:05 22/22
------------------------------------------------------------------------------
TOTAL: 1 session(s) Found.
LAM : Label Advertisement Mode SsnAge Unit : DDD:HH:MM
Run the display mpls ldp lsp command, and you can see the establishment status of the LDP
LSP.
Take the display on PE1 for example:
<PE1> display mpls ldp lsp
LDP LSP Information
------------------------------------------------------------------------------
SN DestAddress/Mask In/OutLabel Next-Hop In/Out-Interface
------------------------------------------------------------------------------
*1 1.1.1.1/32 Liberal
2 1.1.1.9/32 3/NULL 127.0.0.1 Vlanif20/InLoop0
3 2.2.2.9/32 NULL/3 10.1.1.2 -------/Vlanif20
4 3.3.3.9/32 NULL/1025 10.1.1.2 -------/Vlanif20
------------------------------------------------------------------------------
TOTAL: 3 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
A '*' before an LSP means the LSP is not established
A '*' before a Label means the USCB or DSCB is stale
Step 4 Enable MPLS L2VPN and create static VCs on PEs.
# Configure PE1: Create a static VC on VLANIF 10, which is connected to CE1.
[PE1] mpls l2vpn
[PE1-l2vpn] quit
[PE1] interface Vlanif 10
[PE1-Vlanif10] mpls static-l2vc destination 3.3.3.9 transmit-vpn-label 100 receive-
vpn-label 200
[PE1-Vlanif10] quit
# Configure PE2: Create a static VC on GE2/0/0, which is connected to CE2.
[PE2] mpls l2vpn
[PE2-l2vpn] quit
[PE2] interface Vlanif40
[PE2-Vlanif40] mpls static-l2vc destination 1.1.1.9 transmit-vpn-label 200 receive-
vpn-label 100
[PE2-Vlanif40] quit
Step 5 Verify the configuration.
View the L2VPN connection information of the SVC on the PE, and you can see that a static
L2VC connection is established.
Take PE1 for example.
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 4 VLL Configuration
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
4-49