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.
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. |
- |
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.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] lsp-trigger bgp-label-route
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] lsp-trigger bgp-label-route not-only-host