routing-table limit

Use routing-table limit to set the maximum number of active IPv4 or IPv6 routes.

Use undo routing-table limit to restore the default.

Syntax

routing-table limit number simply-alert

undo routing-table limit

Default

The maximum number of active IPv4 or IPv6 routes is not set.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

number: Specifies the maximum number of active IPv4 or IPv6 routes, in the range of 1 to 4294967295.

simply-alert: Generates a log message when the number of active IPv4 or IPv6 routes exceeds the limit. The system still accepts new active routes.

Usage guidelines

The configuration in RIB IPv4 address family view applies to active IPv4 routes in the public network and all VPN instances.

The configuration in RIB IPv6 address family view applies to active IPv6 routes in the public network and all VPN instances.

Examples

# In RIB IPv4 address family view, set the maximum number of active IPv4 routes to 1000 for the public network and all VPN instances, and enable the device to still accept new active routes but generate a log message when the number of active IPv4 routes exceeds the limit.

[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] routing-table limit 1000 simply-alert