Configuration Roadmap
The configuration roadmap is as follows:
1. Configure the IP address and loopback address of each interface.
2. Configure OSPF to advertise the route to each network segment of each interface and to
advertise the host route to each LSR ID.
3. Enable MPLS and MPLS LDP in the system view and interface view.
4. Configure an inbound LDP policy.
Data Preparation
To complete the configuration, you need the following data:
l IP address of each interface on each LSR as shown in Figure 2-10, OSPF process ID, and
OSPF area ID
l LSR ID of each node
Procedure
Step 1 Assign the IP address to and configure OSPF on each interface.
Configure the IP address and mask of each interface, including the loopback interface, as shown
in Figure 2-10, and configure OSPF to advertise the route to each network segment of each
interface and to advertise the host route to each LSR ID. The configuration details are not
provided here.
Step 2 Enable MPLS and MPLS LDP in the system view and interface view.
# Configure LSRA.
<LSRA> system-view
[LSRA] mpls lsr-id 1.1.1.9
[LSRA] mpls
[LSRA-mpls] quit
[LSRA] mpls ldp
[LSRA-mpls-ldp] quit
[LSRA] interface ethernet 1/0/0
[LSRA-Ethernet1/0/0] mpls
[LSRA-Ethernet1/0/0] mpls ldp
[LSRA-Ethernet1/0/0] quit
# Configure LSRB.
<LSRB> system-view
[LSRB] mpls lsr-id 2.2.2.9
[LSRB] mpls
[LSRB-mpls] quit
[LSRB] mpls ldp
[LSRB-mpls-ldp] quit
[LSRB] interface ethernet 1/0/0
[LSRB-Ethernet1/0/0] mpls
[LSRB-Ethernet1/0/0] mpls ldp
[LSRB-Ethernet1/0/0] quit
[LSRB] interface ethernet 1/0/1
[LSRB-Ethernet1/0/1] mpls
[LSRB-Ethernet1/0/1] mpls ldp
[LSRB-Ethernet1/0/1] quit
[LSRB] interface ethernet 2/0/0
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.
91