The mpls dynamic-label-number threshold-alarm command sets alarm thresholds of dynamic label usage.
The undo mpls dynamic-label-number threshold-alarm command restores the default settings.
By default, the upper limit is 80%, and the lower limit is 70%.
mpls dynamic-label-number threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value
undo mpls dynamic-label-number threshold-alarm
Parameter | Description | Value |
---|---|---|
upper-limit upper-limit-value | Specifies the upper limit of dynamic label usage. | The value is a percent integer ranging from 1 to 100. Using a value larger than 95 is not recommended. Using the default value 80 is recommended. |
lower-limit lower-limit-value | Specifies the lower limit of dynamic label usage. | The value is a percent integer ranging from 1 to 100. The lower limit must be less than the upper limit. Using the default value 70 is recommended. |
Usage Scenario
If dynamic labels run out but the system receives new dynamic label requests, the system fails to satisfy the requests because the dynamic labels are insufficient. As a result, the module that fails to be assigned labels works abnormally. The modules that apply for labels including MPLS TE, MPLS LDP, BGP, L3VPN and L2VPN. To facilitate operation and maintenance, run mpls dynamic-label-number threshold-alarm command to set alarm thresholds of dynamic label usage. The system can alert users to the issue that dynamic labels will exhaust.
This command enables the system to generate an alarm in either of the following situations:
Precautions
If the mpls dynamic-label-number threshold-alarm command is run more than once, the latest configuration overrides the previous one.
The mpls dynamic-label-number threshold-alarm command only configures the trigger conditions for an alarm and its clear alarm. Although trigger conditions are met, the alarm and its clear alarm can be generated only after the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplsdynamiclabelthresholdexceed | hwmplsdynamiclabelthresholdexceedclear } command is run to enable the device to generate a dynamic label insufficiency alarm and its clear alarm.