ip icmp redirect

Enables IPv4 Internet Control Message Protocol (ICMP) Redirect messages, which request that packets be sent on an alternative route.

Syntax

ip icmp redirect
no ip icmp redirect

Command Default

ICMP redirect messages are enabled by default.

Modes

Interface configuration mode

Port-channel configuration mode

Usage Guidelines

The no form of the command disables IPv4 ICMP Redirect messages.

You can disable ICMP redirect messages when traffic needs to be routed into and out of the same Layer 3 interface. Disabling redirects helps prevent the handling of production traffic in the CPU of Layer 3 switches and routers.

Examples

The following example enables IPv4 ICMP Redirect messages on an Ethernet interface.

device(config)# interface ethernet 2/5
device(conf-int-eth-2/5)# ip icmp redirect