Enabling sending ICMP error messages

Perform this task to enable sending ICMP error messages, including redirect, time exceeded, and destination unreachable messages.


[NOTE: ]

NOTE:

If a DHCP enabled device receives an ICMP echo reply without sending any ICMP echo requests, the device does not send any ICMP protocol unreachable messages to the source. For more information about DHCP, see Layer 3—IP Services Configuration Guide.


To enable sending ICMP error messages:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable sending ICMP error messages.

  • Enable sending ICMP redirect messages:ip redirects enable

  • Enable sending ICMP time exceeded messages:ip ttl-expires enable

  • Enable sending ICMP destination unreachable messages:ip unreachables enable

The default settings are disabled.

Sending ICMP error messages facilitates network management, but sending excessive ICMP messages increases network traffic. The device performance degrades if it receives a lot of malicious ICMP messages that cause it to respond with ICMP error messages.

To prevent such problems, you can disable the device from sending ICMP error messages. A device that is disabled from sending ICMP time exceeded messages does not send ICMP TTL exceeded in transit messages. However, it can still send ICMP fragment reassembly time exceeded messages.