Users Guide

Layer 3 Routing Commands 1501
Command Mode
Global Configuration mode, Virtual Router Configuration mode, Interface
Configuration (VLAN) mode
User Guidelines
When in virtual router configuration mode, this command operates within
the context of the virtual router instance. When in global config mode, the
command operates on the global router instance.
Virtual Router Configuration mode is only available on the N3000-
ON/N3100-ON/N3200-ON switches.
Example
console(config-if-vlan10)#ip redirects
ip route
Use the ip route command in Global Configuration mode to configure a
static route. Use the no form of the command to delete the static route.
Syntax
ip route [vrf vrf-name] networkaddr {subnetmask | prefix-length} {Null0 |
nexthopip | vlan vlan-id [nexthopip]} [preference] [name text][track object-
number]
no ip route [vrf vrf-name] networkaddr {subnetmask | prefix-length} {Null0
| 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. The address must
contain 0’s for the address bits corresponding to 0’s in the subnetmask.
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.