The lsp-trigger bgp-label-route command enables LDP to allocate labels for labeled BGP routes on the public network.
The undo lsp-trigger bgp-label-route command restores the default settings.
By default, LDP does not allocate labels for labeled BGP routes on the public network.
| Parameter | Description | Value |
|---|---|---|
| ip-prefix ip-prefix-name | Specifies the name of the IP prefix list that triggers the labeled BGP routes on the public network to set up LDP LSPs. | 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. |
Both the lsp-trigger bgp-label-route command and the lsp-trigger command can be used to configure policies to trigger the establishment of LDP LSPs. The first command is used for labeled BGP routes on the public network, and the second command is used for static routes and IGP routes.
Modifying the LSP-triggering policy during the LDP GR period is invalid.
Precautions
Creating an IP prefix list before it is referenced is recommended. By default, nonexistent IP prefix lists cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent IP prefix list is referenced using the current command, all public-network labeled BGP routes trigger LDP LSP establishment.