ip icmp redirect

Syntax

ip icmp redirect
没有ip icmp redirect

描述

Enables the sending of ICMPv4 and ICMPv6 redirect messages to the source host. Enabled by default.ICMP redirect and active forwarding are mutually exclusive.

The没有form of this command disables ICMPv4 and ICMPv6 redirect messages to the source host.

命令上下文

config

权威

Administrators or local user group members with execution rights for this command.

Examples

Enabling ICMP redirect messages:

switch(config)#ip icmp redirect

禁用ICMP redirect messages:

switch(config)#没有ip icmp redirect