Users Guide

Table Of Contents
Layer 3 Routing Commands 1510
ip redirects
Use the ip redirects command to enable the generation of ICMP Redirect
messages. Use the no form of this command to prevent the sending of ICMP
Redirect Messages. In global configuration mode, this command affects all
interfaces. In interface configuration mode, it only affects that interface.
Syntax
ip redirects
no ip redirects
Default Configuration
ICMP Redirect messages are enabled by default.
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/N3100/N4000 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} {Null 0 |
nexthopip | vlan vlan-id [nexthopip]} [preference] [name text]