The mpls lsp-number-limit command sets the maximum number of BGP LSPs that can be established.
The undo mpls lsp-number-limit command restores the default maximum number of BGP LSPs that can be established, which is defined in a PAF file.
By default, the maximum number of BGP LSPs that can be established is defined in a PAF file.
| Parameter | Description | Value |
|---|---|---|
| bgp max-number | Specifies the maximum number of BGP LSPs that can be established. | The value is an integer ranging from the default value defined in the PAF file to the smaller one of the upper limit defined in a PAF file and the upper limit supported on an entire device. |
Usage Scenario
The maximum number of BGP LSPs that can be established does not need to be adjusted. To dynamically set the maximum number of BGP LSPs that can be established on a Huawei device, run the mpls lsp-number-limit command.
Prerequisites
MPLS has been enabled globally.
Precautions
After a master/slave main control board switchover is performed, the BGP protocol is in the GR process. In the GR process, the mpls lsp-number-limit command cannot be used.
If the configured maximum number of BGP LSPs is less than the number of established LSPs, a configuration inconsistency between the master and slave main control board occurs, causing the slave main control board to restart.