Users Guide
Layer 3 Routing Commands 1502
• nexthopip—The next-hop IPv4 address is specified in the argument
nexthopip. Packets matching the destination route are forwarded to the
next hop IP address. The next hop may be a numbered or unnumbered
interface.
• vlan-id—A configured VLAN routing interface identifier for a VRF or an
IP unnumbered interface. If a VLAN routing interface for a VRF is
specified, it imports the associated subnet into the default routing
instance from the VRF associated with the VLAN.
•
Null0
—The optional Null0 keyword indicates that packets matching the
route are dropped. This capability allows the administrator to purposefully
implement a black hole for selected traffic.
• text—A textual name for the route as configured by the administrator.
May be up to 32 characters in length.
• track object-number—The IP SLA tracking object identifier
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.