Step 2 Run:
mpls
The MPLS view is displayed.
Step 3 Perform either of the following steps to configure a policy for triggering LDP LSP establishment:
l To allow static routes and IGP routes to trigger LDP LSP establishment, run:
lsp-trigger { all | host | ip-prefix ip-prefix-name | none }
l To allow labeled public network BGP routes to trigger LDP LSP establishment, run:
lsp-trigger bgp-label-route
One of the following parameters can be configured for a trigger policy:
l host: is the default policy and allows LDP to use 32-bit host-address routes to establish LSPs.
l all: allows LDP to use all static and IGP routes, but not public network BGP routes, to
establish LSPs.
l ip-prefix: allows LDP to use the routes that match an IP address prefix list to establish LSPs.
l none: does not allow LDP to use any routes to establish LSPs.
l bgp-label-route: allows LDP to use labeled public network BGP routes to establish LSPs.
NOTE
LSPs can be established using exactly matching routes on LSRs. For example, an exactly matching host
route to an IP address with a 32-bit mask of a loopback interface can be used to trigger LSP establishment.
A policy for triggering LSP establishment cannot be modified during the LDP graceful restart (GR) process.
----End
2.5.11 (Optional) Configuring a Policy for Triggering Transit LSP
Establishment
A policy for triggering transit LSP establishment can be configured to allow LDP to use a
specified route to establish a transit LSP.
Context
After MPLS LDP is enabled, LDP LSPs will be automatically established, leading to a large
number of transit LSPs and resulting in resource wastes. A policy for triggering transit LSP
establishment can be configured to allow LDP to only send Label Mapping messages upstream
for routes that match specified conditions to establish a transit LSP. This reduces the number of
unwanted LSPs and efficiently uses network resources.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
mpls ldp
The MPLS-LDP view is displayed.
Step 3 Run:
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.
48