Specifications

Table Of Contents
maximum routes
MP-136
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
To limit the number of routes allowed in the VRF, use the maximum routes limit command with the
warn-threshold argument. The warn-threshold argument generates a warning and does not allow the
addition of routes to the VRF when the maximum number set by the limit argument is reached. The
software generates a warning message every time a route is added to a VRF when the VRF route count
is above the warning threshold. The software also generates a route rejection notification when the
maximum threshold is reached and every time a route is rejected after the limit is reached.
To set a number of routes at which you receive a notification, but which does not limit the number of
routes that can be imported into the VRF, use the maximum routes limit command with the warn-only
keyword.
To configure the router to generate SNMP notifications (traps or informs) for these values, use the
s
nmp-server enable traps mpls vpn command in global configuration mode.
Examples The following example shows how to set a limit threshold of VRF routes to 1000. When the number of
r
outes for the VRF reaches 1000, the router issues a syslog error message, but continues to accept new
VRF routes.
Router(config)# ip vrf vrf1
Router(config-vrf)# rd 100:1
Router(config-vrf)# route-target import 100:1
Router(config-vrf)# maximum routes 1000 warning-only
The following example shows how to set the maximum number of VRF routes allowed to 1000 and set
the warning threshold at 80 percent of the maximum. When the number of routes for the VRF reaches
800, the router issues a warning message. When the number of routes for the VRF reaches 1000, the
router issues a syslog error message and rejects any new routes.
Router(config)# ip vrf vrf2
Router(config-vrf)# rd 200:1
Router(config-vrf)# route-target import 200:1
Router(config-vrf)# maximum routes 1000 80
The following example for an IPv6 address family defined under the vrf definition command shows how
to set the maximum number of VRF routes allowed to 500 and set the warning threshold at 50 percent
o
f the maximum. When the number of routes for the VRF reaches 250, the router issues a warning
message. When the number of routes for the VRF reaches 500, the router issues a syslog error message
and rejects any new routes.
Router(config)# vrf definition
Router(config-vrf)# address-family ipv6
Router(config-router-vrf)# maximum routes 500 50
Related Commands Command Description
address-family (VRF
conf
iguration)
Enters VRF address family configuration mode to select an address
family type for a VRF table.
import map Configures an import route map for a specified VRF for more control
o
ver routes imported into the VRF.
ip vrf Specifies a name for a VRF routing table and enters VRF
con
figuration mode (for IPv4 only).
rd Creates VRF routing and forwarding tables and specifies the default
rou
te distinguisher for a VPN.