lsp-trigger bgp-label-route

Function

The lsp-trigger bgp-label-route command enables LDP to allocate labels for labeled BGP public network routes with 32-bits mask-length.

The undo lsp-trigger bgp-label-route command restores the default configuration.

By default, LDP does not allocate labels for labeled BGP public network routes.

Format

lsp-trigger bgp-label-route [ ip-prefix ip-prefix-name ]

lsp-trigger bgp-label-route [ ip-prefix ip-prefix-name ] not-only-host

undo lsp-trigger bgp-label-route

Parameters

Parameter Description Value
ip-prefix ip-prefix-name

Specifies the name of an IP prefix list. An LDP LSP is established for the labeled BGP public network routes that are filtered based on the IP prefix list.

The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

not-only-host

Enables LDP to allocate labels to labeled public network BGP routes with either 32-bit or non-32-bit masks. If not-only-host is not specified, LDP can allocate labels to labeled public network BGP routes with 32-bit masks only.

-

Views

MPLS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

Both the lsp-trigger bgp-label-route and lsp-trigger commands can be used to configure policies to trigger the establishment of LDP LSPs. The first command is used for labeled BGP public network routes, and the second command is used for static routes and IGP routes.

Note:

Modifying the LSP-triggering policy during the LDP GR period is invalid.

Precautions

To prevent LDP from allocating labels to a large number of unwanted labeled public network BGP routes, you are advised to specify an IP prefix list when running the command.

Example

# Trigger the establishment of LDP LSPs using labeled BGP public network routes with 32-bits mask-length.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] lsp-trigger bgp-label-route
# Trigger the establishment of LDP LSPs using labeled BGP public network routes.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] lsp-trigger bgp-label-route not-only-host
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >