rib-route-limit

Limits the maximum number of BGP Routing Information Base (RIB) routes that can be installed in the Routing Table Manager (RTM).

Syntax

rib-route-limit num
no rib-route-limit

Command Default

No maximum number of RIB routes is set.

Parameters

num
Decimal value for the maximum number of RIB routes to be installed in the RTM. Valid values range from 1 through 4294967295.

Modes

BGP address-family IPv4 unicast configuration mode

BGP address-family IPv6 unicast configuration mode

BGP address-family IPv4 unicast VRF configuration mode

BGP address-family IPv6 unicast VRF configuration mode

Usage Guidelines

This command controls the number of routes installed by BGP, irrespective of whether those BGP routes are the preferred routes in the system. BGP locally tracks the number of routes installed and the number of routes withdrawn from RIB. If the total number of routes installed exceeds the value specified by num, routes will not be installed.

If num is increased, route calculation is automatically triggered.

If num is decreased, the user is prompted to clear the BGP RTM.

Examples

The following example configures the device to limit the maximum number of BGP4 RIB routes that can be installed in the RTM.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# rib-route-limit 10000

The following example configures the device to limit the maximum number of BGP4+ RIB routes that can be installed in the RTM.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# rib-route-limit 32000