Layer 3 Routing Commands 1469ip redirectsUse the ip redirects command to enable the generation of ICMP Redirectmessages. Use the no form of this command to prevent the sending of ICMPRedirect Messages. In global configuration mode, this command affects allinterfaces. In interface configuration mode, it only affects that interface.Syntaxip redirectsno ip redirectsDefault ConfigurationICMP Redirect messages are enabled by default.Command ModeGlobal Configuration mode, Virtual Router Configuration mode, InterfaceConfiguration (VLAN) modeUser GuidelinesWhen in virtual router configuration mode, this command operates withinthe context of the virtual router instance. When in global config mode, thecommand operates on the global router instance.Virtual Router Configuration mode is only available on theN3000/N3100/N4000 switches.Exampleconsole(config-if-vlan10)#ip redirectsip routeUse the ip route command in Global Configuration mode to configure astatic route. Use the no form of the command to delete the static route.Syntaxip route [vrf vrf-name] networkaddr {subnetmask | prefix-length} {Null 0 |nexthopip | vlan vlan-id [nexthopip]} [preference] [name text]