Administrator Guide

Layer 3 Routing Commands 1557
text
—A textual name for the route as configured by the administrator.
May be up to 32 characters in length.
Default Configuration
Default value of preference is 1. The router will prefer a route with a smaller
administrative distance that a route with a higher administrative distance.
Command Mode
Global Configuration mode
User Guidelines
The IP route command sets a value for the route preference. Among routes to
the same destination, the route with the lowest preference value is the route
entered into the forwarding database. Specifying the preference of a static
route controls whether a static route is more or less preferred than routes from
dynamic routing protocols. The preference also controls whether a static
route is more or less preferred than other static routes to the same
destination.
The ip route command optionally configures a route in the selected VRF. The
IP route command can set a value for the route preference. Among routes to
the same destination, the route with the lowest preference value is the route
entered into the forwarding database.
Specifying the preference of a static route controls whether a static route is
more or less preferred than routes from dynamic routing protocols. The
preference also controls whether a static route is more or less preferred than
other static routes to the same destination.
This command creates a static route in a specified virtual router instance
refered to by name ‘vrf-name’ by taking an optional vrf argument. If the next-
hop interface argument is given without specifying a nexthopip, it is added as
a static interface route. If the next-hop interface is in the default routing
domain, they routes are identified as leaked routes in the virtual router table.
The VRF identified in the parameter must have been previously created or an
error is returned.
Route leaking in VRFs is only supported to or from the default routing
instance and only for static routes. Configuring a leaked route from a non-
default VRF to another non-default VRF results in undefined behavior.
2CSNXXX_SWUM204.book Page 1557 Monday, January 25, 2016 1:25 PM