Configuring an LSP generation policy

An LSP generation policy controls the number of LSPs generated by LDP in one of the following ways:

By default, LDP uses only host routes with a 32-bit mask to establish LSPs. The other two methods can result in more LSPs than the default policy. To change the policy, be sure that the system resources and bandwidth resources are sufficient.

To configure an LSP generation policy:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter LDP view or enter LDP-VPN instance view.

  • Enter LDP view:mpls ldp

  • Enter LDP-VPN instance view:

    1. mpls ldp

    2. vpn-instance vpn-instance-name

N/A

3. Configure an LSP generation policy.

lsp-trigger { all | prefix-list prefix-list-name }

By default, LDP uses only host routes with a 32-bit mask to establish LSPs.