[ASBR1-mpls]
quit
[ASBR1]
mpls ldp
[ASBR1-mpls-ldp]
quit
[ASBR1]
interface gigabitethernet 1/0/0
[ASBR1-GigabitEthernet1/0/0]
mpls
[ASBR1-GigabitEthernet1/0/0]
mpls ldp
[ASBR1-GigabitEthernet1/0/0]
quit
# Configure basic MPLS functions on ASBR2 and enable LDP on the interface connected with
PE2.
[ASBR2]
mpls lsr-id 3.3.3.9
[ASBR2]
mpls
[ASBR2-mpls]
quit
[ASBR2]
mpls ldp
[ASBR2-mpls-ldp]
quit
[ASBR2]
interface gigabitethernet 1/0/0
[ASBR2-GigabitEthernet1/0/0]
mpls
[ASBR2-GigabitEthernet1/0/0]
mpls ldp
[ASBR2-GigabitEthernet1/0/0]
quit
# Configure basic MPLS functions on PE2 and enable LDP on the interface connected with
ASBR2.
[PE2]
mpls lsr-id 4.4.4.9
[PE2]
mpls
[PE2-mpls]
quit
[PE2]
mpls ldp
[PE2-mpls-ldp]
quit
[PE2]
interface gigabitethernet 1/0/0
[PE2-GigabitEthernet1/0/0]
mpls
[PE2-GigabitEthernet1/0/0]
mpls ldp
[PE2-GigabitEthernet1/0/0]
quit
After the configuration, the LDP sessions between PE1 and the ASBR1, and between PE2 and
ASBR2 are set up. Run the
display mpls ldp session
command. You can view that the status is
"Operational". Run the
display mpls ldp lsp
command, and you can view whether LDP LSPs
are set up.
Take PE1 as an 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:01 5/5
------------------------------------------------------------------------------
TOTAL: 1 session(s) Found.
<PE1>
display mpls ldp lsp
LDP LSP Information
-------------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
-------------------------------------------------------------------------------
1.1.1.9/32 3/NULL 2.2.2.9 127.0.0.1 InLoop0
*1.1.1.9/32 Liberal
2.2.2.9/32 NULL/3 - 172.1.1.1
GigabitEthernet1/0/0
2.2.2.9/32 1024/3 2.2.2.9 172.1.1.1
GigabitEthernet1/0/0
-------------------------------------------------------------------------------
TOTAL: 3 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2012-04-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
201