ip icmp redirects

Enables IPv4 ICMP redirect messages.
Syntax
ip icmp redirects
no ip icmp redirects
Command Default

By default, IP ICMP redirect at the global level is disabled and a Layer 3 switch does not send an ICMP redirect message to the source of a misdirected packet in addition to forwarding the packet to the appropriate router.

Modes

Global configuration mode

VE interface configuration mode

Usage Guidelines

You can enable and disable IPv4 ICMP redirect messages globally or on individual Virtual Ethernet (VE) interfaces, but not on individual physical interfaces.

Note: The device forwards misdirected traffic to the appropriate router, even if you disable the redirect messages.

The no form of the command removes the ICMP redirect control.

Examples

The following example configures the IP redirect messages at the global level.

device(config)# ip icmp redirects

The following example configures the IP redirect messages on a VE interface.

device(config)# interface ve 10
device(config-vif-10)# ip icmp redirects