[LSRD-Ethernet1/0/0] mpls ldp
[LSRD-Ethernet1/0/0] quit
# After completing the configuration, run the display mpls lsp command on LSRD to view
information about the established LSPs.
<LSRD> display mpls lsp
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.9/32 NULL/1024 -/Eth1/0/0
1.1.1.9/32 1024/1024 -/Eth1/0/0
2.2.2.9/32 NULL/3 -/Eth1/0/0
2.2.2.9/32 1025/3 -/Eth1/0/0
3.3.3.9/32 NULL/1025 -/Eth1/0/0
3.3.3.9/32 1026/1025 -/Eth1/0/0
The command output shows that LSPs to LSRA, LSRB, and LSRC have been established on
LSRD.
Step 3 Configure an outbound LDP policy.
# Configure an IP prefix list on LSRB to permit the routes to LSRC to pass the outbound LDP
policy.
<LSRB> system-view
[LSRB] ip ip-prefix prefix1 permit 3.3.3.9 32
# Configure an outbound policy on LSRB to send LSRD label mapping messages carrying the
route to only LSRC.
<LSRB> system-view
[LSRB] mpls ldp
[LSRB-mpls-ldp] outbound peer 4.4.4.9 fec ip-prefix prefix1
[LSRB-mpls-ldp] quit
Step 4 Verify the configuration.
After completing the configuration, run the display mpls lsp command on LSRD. The result
shows that only an LSP to LSRC has been established.
<LSRD> display mpls lsp
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
3.3.3.9/32 NULL/1025 -/Eth1/0/0
3.3.3.9/32 1026/1025 -/Eth1/0/0
----End
Configuration Files
l Configuration file of LSRA
#
sysname LSRA
#
mpls lsr-id 1.1.1.9
mpls
#
mpls ldp
#
Huawei AR1200 Series Enterprise Routers
Configuration Guide - MPLS 2 MPLS LDP Configuration
Issue 01 (2011-12-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
97