The routing-table limit threshold-alarm command configures alarm and alarm clear thresholds for the number of BGP routes.
The undo routing-table limit threshold-alarm command restores the default settings.
By default, the alarm threshold is 80%, and the alarm clear threshold is 70%.
Product |
Support |
---|---|
S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S |
Supported |
S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI |
Not supported |
routing-table limit threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value
undo routing-table limit threshold-alarm [ upper-limit upper-limit-value lower-limit lower-limit-value ]
Parameter | Description | Value |
---|---|---|
upper-limit upper-limit-value | Specifies an alarm threshold for the number of BGP routes. | The value is an integer that ranges from 1 to 100, in percentage. The default value is 80. |
lower-limit lower-limit-value | Specifies an alarm clear threshold for the number of BGP routes. | The value is an integer that ranges from 1 to 100, in percentage. The default value of is 70. lower-limit-value must be smaller than upper-limit-value; otherwise, alarms are generated and cleared repeatedly if route flapping occurs. |
Usage Scenario
The number of BGP routes that can be added to a routing table is limited. If the value exceeds the limit, new routes cannot be added to the routing table, causing service interruptions. To address this problem, run the routing-table limit threshold-alarm command to configure alarm and alarm clear thresholds for the number of BGP routes. Alarms are then generated and cleared as expected. The alarms act as a prompt for checking whether an exception occurs and to take preventive measures.
Configuration Impact
If the routing-table limit threshold-alarm command is run multiple times, the latest configuration takes effect.
Precautions
In addition to the routing-table limit threshold-alarm command, the snmp-agent trap enable feature-name bgp trap-name { hwBgpRouteThresholdExceed | hwBgpRouteThresholdClear } command must be run to enable the alarm and alarm clear functions; otherwise, alarms cannot be generated and cleared as expected.