Administrator Guide

Layer 3 Routing Commands 1830
L3 configuration on an interface, including the IP address, is retained when
the interface migrated to a new VRF instance. A interface may be migrated
from the global routing instance to a VRF or from any non-global VRF
instances as well.
Example
The following example shows the configuration of two VRFs (Red and Blue)
for IPv4 routing. Both VRFs will operate over two trunk ports (te1/0/1-2) on
their respective VLANs (100 and 200).
console(config)#ip vrf Red
console(config-vrf-Red)#ip routing
console(config-vrf-Red)#exit
console(config)#ip vrf Blue
console(config-vrf-Blue)#ip routing
console(config-vrf-Blue)#exit
console(config)#vlan 100,200
console(config-vlan100,200)#exit
console(config)#interface range te1/0/1-2
console(config-if)#switchport mode trunk
console(config-if)#exit
console(config)#interface vlan 100
console(config-if-vlan100)#ip vrf forwarding Red
console(config-if-vlan100)#exit
console(config)#interface vlan 200
console(config-if-vlan100)#ip vrf forwarding Blue
console(config-if-vlan100)#exit
maximum routes
This command reserves the number of routes allowed and sets the maximum
limit on the number of routes for a virtual router instance in the total routing
table space for the router, provided there is enough free space in the router’s
total routing table.
Syntax
maximum routes {limit | warn threshold}
no maximum routes [warn]
limit—Reserve this number of routes for the VRF instance.
threshold —The percentage of total routes over which the router issues a
warning that the router has allocated the specified number of routes.
Range 1-100.