Limits the maximum number of BGP Routing Information Base (RIB) routes that can be installed in the Routing Table Manager (RTM).
No maximum number of RIB routes is set.
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
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.
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