Configuring Alarm and Clear Alarm Thresholds for the Number of BGP Routes
Alarm and clear alarm thresholds for the number of BGP routes facilitate maintenance.
Context
The number of BGP routes that can be added to a routing table is limited. If the number exceeds a limit, new routes cannot be added to the routing table, which may interrupt services. To address this problem, configure alarm and clear alarm thresholds for the number of BGP routes. With the alarm and clear alarm thresholds, alarms are generated and cleared as expected. The alarms prompt you to check whether an exception occurs and to take preventive measures. You can configure the alarm and clear alarm thresholds as required.
Procedure
- Run system-view
The system view is displayed.
- Run bgp { as-number-plain | as-number-dot }
The BGP view is displayed.
- Run routing-table limit threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value
Alarm and clear alarm thresholds are configured for the number of BGP routes.
- upper-limit-value specifies the alarm threshold. If the ratio of BGP routes to the maximum number that is allowed exceeds the alarm threshold, an alarm is generated.
- lower-limit-value specifies the clear alarm threshold. If the ratio of BGP routes to the maximum number that is allowed falls below this threshold, the alarm is cleared.
- upper-limit-value must be greater than lower-limit-value; otherwise, alarms are generated and cleared repeatedly if route flapping occurs.
By default, upper-limit-value is 80%, and lower-limit-value is 70%.