[PE1-GigabitEthernet3/0/0]
quit
# Configure PE2.
[PE2]
mpls lsr-id 2.2.2.2
[PE2]
mpls
[PE2-mpls]
quit
[PE2]
mpls ldp
[PE2-mpls-ldp]
quit
[PE2]
interface gigabitethernet2/0/0
[PE2-GigabitEthernet2/0/0]
mpls
[PE2-GigabitEthernet2/0/0]
mpls ldp
[PE2-GigabitEthernet2/0/0]
quit
[PE2]
interface gigabitethernet3/0/0
[PE2-GigabitEthernet3/0/0]
mpls
[PE2-GigabitEthernet3/0/0]
mpls ldp
[PE2-GigabitEthernet3/0/0]
quit
# Configure PE3.
[PE3]
mpls lsr-id 3.3.3.3
[PE3]
mpls
[PE3-mpls]
quit
[PE3]
mpls ldp
[PE3-mpls-ldp]
quit
[PE3]
interface gigabitethernet 2/0/0
[PE3-GigabitEthernet2/0/0]
mpls
[PE3-GigabitEthernet2/0/0]
mpls ldp
[PE3-GigabitEthernet2/0/0]
quit
[PE3]
interface gigabitethernet 3/0/0
[PE3-GigabitEthernet3/0/0]
mpls
[PE3-GigabitEthernet3/0/0]
mpls ldp
[PE3-GigabitEthernet3/0/0]
quit
After the preceding configuration, LDP sessions are set up between PEs. Run the
display mpls
ldp session
command. You can view that the Status field displays Operational.
Take the display on PE1 as an example.
[PE1]
display mpls ldp session
LDP Session(s) in Public Network
------------------------------------------------------------------------------
Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv
------------------------------------------------------------------------------
2.2.2.2:0
Operational
DU Passive 000:00:02 10/10
3.3.3.3:0
Operational
DU Passive 000:00:02 9/9
------------------------------------------------------------------------------
TOTAL: 2 session(s) Found.
LAM : Label Advertisement Mode SsnAge Unit : DDD:HH:MM
NOTE
If PEs are indirectly connected, you need to run the
mpls ldp remote-peer
command and the
remote-ip
command to create remote LDP sessions between PEs.
Step 4
Enable MPLS L2VPN on PEs.
# Configure PE1.
[PE1]
mpls l2vpn
[PE1-l2vpn]
quit
# Configure PE2.
[PE2]
mpls l2vpn
[PE2-l2vpn]
quit
# Configure PE3.
HUAWEI NetEngine80E/40E Router
Configuration Guide - Reliability
8 Ethernet OAM Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
568