< Home

routing-table limit threshold-alarm

Function

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

Format

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 ]

Parameters

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.

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

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.

  • When the ratio of BGP routes to the maximum value exceeds upper-limit-value, an alarm is generated. New routes can still be accepted until the number of BGP routes reaches the maximum value.
  • When the ratio falls below lower-limit-value, the alarm is cleared.

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.

Example

# Configure alarm and alarm clear thresholds for the number of BGP routes.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] routing-table limit threshold-alarm upper-limit 70 lower-limit 60
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >