NOTE
If the PEs are directly connected, you do not need to manually configure remote LDP sessions between
them.
# Configure PE1.
[PE1]
mpls ldp remote-peer 4.4.4.4
[PE1-mpls-ldp-remote-4.4.4.4]
remote-ip 4.4.4.4
[PE1-mpls-ldp-remote-4.4.4.4]
quit
[PE1]
mpls ldp remote-peer 5.5.5.5
[PE1-mpls-ldp-remote-5.5.5.5]
remote-ip 5.5.5.5
[PE1-mpls-ldp-remote-5.5.5.5]
quit
# Configure PE2.
[PE2]
mpls ldp remote-peer 1.1.1.1
[PE2-mpls-ldp-remote-1.1.1.1]
remote-ip 1.1.1.1
[PE2-mpls-ldp-remote-1.1.1.1]
quit
# Configure PE3.
[PE3]
mpls ldp remote-peer 1.1.1.1
[PE3-mpls-ldp-remote-1.1.1.1]
remote-ip 1.1.1.1
[PE3-mpls-ldp-remote-1.1.1.1]
quit
After the configuration, run the
display mpls ldp session
command on PEs. You can see that
the LDP peer relation is in Operational state. This indicates that the LDP sessions are set up.
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.2:0 Operational DU Passive 000:00:06 27/27
3.3.3.3:0 Operational DU Passive 000:00:05 24/24
4.4.4.4:0 Operational DU Passive 000:00:00 3/3
5.5.5.5:0 Operational DU Passive 000:00:00 2/2
------------------------------------------------------------------------------
TOTAL: 4 session(s) Found.
Step 5
Configure PWs on PEs by using PW templates.
# Configure PE1.
[PE1]
mpls l2vpn
[PE1-l2vpn]
quit
[PE1]
pw-template 1to2
[PE1-pw-template-1to2]
peer-address 4.4.4.4
[PE1-pw-template-1to2]
control-word
[PE1-pw-template-1to2]
quit
[PE1]
pw-template 1to3
[PE1-pw-template-1to3]
peer-address 5.5.5.5
[PE1-pw-template-1to3]
control-word
[PE1-pw-template-1to3]
quit
[PE1]
interface vlanif 10
[PE1-Vlanif10]
mpls l2vc pw-template 1to2 100
[PE1-Vlanif10]
mpls l2vc pw-template 1to3 200 secondary
[PE1-Vlanif10]
quit
# Configure PE2.
[PE2]
mpls l2vpn
[PE2-l2vpn]
quit
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.
624