
[P]
mpls lsr-id 2.2.2.9
[P]
mpls
[P-mpls]
quit
[P]
mpls ldp
[P-mpls-ldp]
quit
[P]
interface vlanif 20
[P-Vlanif20]
mpls
[P-Vlanif20]
mpls ldp
[P-Vlanif20]
quit
[P]
interface vlanif 30
[P-Vlanif30]
mpls
[P-Vlanif30]
mpls ldp
[P-Vlanif30]
quit
# Configure PE2.
[PE2]
mpls lsr-id 3.3.3.9
[PE2]
mpls
[PE2-mpls]
quit
[PE2]
mpls ldp
[PE2-mpls-ldp]
quit
[PE2]
interface vlanif 30
[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
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
A '*' before a session means the session is being deleted.
------------------------------------------------------------------------------
PeerID Status LAM SsnRole SsnAge KASent/Rcv
------------------------------------------------------------------------------
2.2.2.9:0 Operational DU Passive 0000:00:05 22/22
------------------------------------------------------------------------------
TOTAL: 1 session(s) Found.
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 VLANIF 40, which is connected to CE2.
[PE2]
mpls l2vpn
[PE2-l2vpn]
quit
[PE2]
interface vlanif 40
[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 S7700 Smart Routing Switch
Configuration Guide - VPN
5 VLL Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
501