Users Guide

Layer 3 Routing Commands 1511
no ip route [vrf vrf-name] networkaddr {subnetmask | prefix-length} {Null 0
| nexthopip | vlan vlan-id [nexthopip]}
vrf-name—The name of the VRF if which the route is to be installed. If no
vrf is specified, the route is created in the global routing table.
networkaddr
— IP address of destination interface.
subnetmask—A 32 bit dotted-quad subnet mask. Enabled bits in the mask
indicate the corresponding bits of the network address are significant.
Enabled bits in the mask must be contiguous.
prefix-length—A forward slash followed by an integer number ranging
from 1-32 (e.g., /24). The integer number indicates the number of
significant bits in the address beginning with the leftmost (most
significant) bit.
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.
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.
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