(Optional) Configuring a Policy for Triggering LDP LSP Establishment
Context
After MPLS LDP is enabled, LSPs are automatically established. If no policy is configured, an increasing number of LSPs are established, wasting resources.
Configure the lsp-trigger command on the ingress and egress nodes to trigger LSP setup based on routes. This setting controls the number of LSPs and saves network resources.
The lsp-trigger command can be configured in the MPLS view and MPLS-LDP-IPv4 view. If the lsp-trigger command is configured in both the MPLS view and MPLS-LDP-IPv4 view, the lsp-trigger command in the MPLS-LDP-IPv4 view takes effect.
Configure the propagate mapping command on the transit node to allow LDP to use routes matching specified conditions to establish transit LSPs. For the routes that do not match specified conditions, the local device does not send Label Mapping messages to the upstream device, which reduces the number of LSPs and saves network resources.
The propagate mapping command can be configured in the MPLS-LDP view and MPLS-LDP-IPv4 view. If the propagate mapping command is configured in both the MPLS-LDP view and MPLS-LDP-IPv4 view, the latest configuration takes effect.
By default, the lsp-trigger command is used. If policies cannot be configured on the ingress and egress nodes, configure the propagate mapping command.