Step 2 Configure static routes on devices to ensure network connectivity.
# On LSRA, configure two static routes with different priorities to LSRD, and on LSRD,
configure two static routes with different priorities to LSRA.
# Configure LSRA.
[LSRA] ip route-static 2.2.2.2 32 gigabitethernet 1/0/0
[LSRA] ip route-static 3.3.3.3 32 gigabitethernet 2/0/0
[LSRA] ip route-static 30.1.1.1 30 gigabitethernet 1/0/0
[LSRA] ip route-static 40.1.1.1 30 gigabitethernet 2/0/0
[LSRA] ip route-static 4.4.4.4 32 gigabitethernet 1/0/0 preference 40
[LSRA] ip route-static 4.4.4.4 32 gigabitethernet 2/0/0 preference 60
# Configure LSRB.
[LSRB] ip route-static 1.1.1.1 32 gigabitethernet 1/0/0
[LSRB] ip route-static 4.4.4.4 32 gigabitethernet 2/0/0
# Configure LSRC.
[LSRC] ip route-static 1.1.1.1 32 gigabitethernet 1/0/0
[LSRC] ip route-static 4.4.4.4 32 gigabitethernet 2/0/0
# Configure LSRD.
[LSRD] ip route-static 2.2.2.2 32 gigabitethernet 1/0/0
[LSRD] ip route-static 3.3.3.3 32 gigabitethernet 2/0/0
[LSRD] ip route-static 10.1.1.2 30 gigabitethernet 1/0/0
[LSRD] ip route-static 20.1.1.2 30 gigabitethernet 2/0/0
[LSRD] ip route-static 1.1.1.1 32 gigabitethernet 1/0/0 preference 40
[LSRD] ip route-static 1.1.1.1 32 gigabitethernet 2/0/0 preference 60
# After the preceding configurations, run the display ip routing-table protocol static command
on each LSR. The command output shows the configured static routes. In the following example,
the display on LSRA is used.
[LSRA] display ip routing-table protocol static
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
Destinations : 5 Routes : 6 Configured Routes : 6
Static routing table status : <Active>
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost Flags NextHop Interface
2.2.2.2/32 Static 60 0 D 10.1.1.1
GigabitEthernet1/0/0
3.3.3.3/32 Static 60 0 D 20.1.1.1
GigabitEthernet2/0/0
4.4.4.4/32 Static 40 0 D 10.1.1.1
GigabitEthernet1/0/0
30.1.1.0/30 Static 60 0 D 10.1.1.1
GigabitEthernet1/0/0
40.1.1.0/30 Static 60 0 D 20.1.1.1
GigabitEthernet2/0/0
Static routing table status : <Inactive>
Destinations : 1 Routes : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
4.4.4.4/32 Static 60 0 20.1.1.1 GigabitEthernet2/0/0
Step 3 Enable MPLS LDP and establish LDP LSPs on LSRs.
# Configure LSRA.
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.
119