icmp receive
Function
The icmp receive command enables the device to receive ICMP messages.
The undo icmp receive command disables the device from receiving ICMP messages.
By default, the device receives ICMP messages.
Format
icmp { type icmp-type code icmp-code | name icmp-name | all } receive
undo icmp { type icmp-type code icmp-code | name icmp-name | all } receive
Parameters
Parameter | Description | Value |
---|---|---|
type icmp-type | Specifies the type number of an ICMP message. | The value is an integer ranging from 0 to 255. |
code icmp-code | Specifies the code of an ICMP message. | The value is an integer ranging from 0 to 255. |
name icmp-name | Specifies the name of an ICMP message. The value can be any of the following:
|
The value is a string of case-insensitive characters, with spaces not supported. The string length ranges from 1 to 32. |
all | Specifies all ICMP packets. | - |
Usage Guidelines
Usage Scenario
On secure networks, the device can normally receive ICMP messages. In the case of heavy traffic on the network, if hosts or ports are frequently unreachable, the device will receive a large number of ICMP packets, which causes heavier traffic burdens over the network and degrades the performance of the device.
On insecure networks, network attackers often make use of ICMP error messages to spy on the internal structure of the network.
Configuration Impact
After the undo icmp receive command is run, the device no longer process ICMP messages of a certain type, causing the host to fail to ping the device.
Precautions
If the network status is normal and the device is required to receive ICMP messages, you can run the icmp receive command.