184
ip icmp error-interval
Use ip icmp error-interval to set the bucket size and the interval for tokens to arrive in the bucket for
ICMP error messages.
Use undo ip icmp error-interval to restore the default.
Syntax
ip icmp error-interval interval [ bucketsize ]
undo ip icmp error-interval
Default
The bucket allows a maximum of 10 tokens, and a token is placed in the bucket every 100
milliseconds.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Specifies the interval for tokens to arrive in the bucket. The value range is 0 to 2147483647
milliseconds. To disable the ICMP rate limit, set the value to 0.
bucketsize: Specifies the maximum number of tokens allowed in the bucket. The value range is 1 to
200.
Usage guidelines
This command limits the rate at which ICMP error messages are sent. Use this command to avoid
sending excessive ICMP error messages within a short period that might cause network congestion.
A token bucket algorithm is used with one token representing one ICMP error message.
A token is placed in the bucket at intervals until the maximum number of tokens that the bucket can
hold is reached.
A token is removed from the bucket when an ICMP error message is sent. When the bucket is empty,
ICMP error messages are not sent until a new token is placed in the bucket.
Examples
# Set the bucket size to 40 tokens and the interval for tokens to arrive in the bucket to 200
milliseconds for ICMP error messages.
<Sysname> system-view
[Sysname] ip icmp error-interval 200 40
ip icmp fragment discarding
Use ip icmp fragment discarding to disable forwarding of ICMP fragments.
Use undo ip icmp fragment discarding to enable forwarding of ICMP fragments.
Syntax
ip icmp fragment discarding
undo ip icmp fragment discarding
Default
Forwarding of ICMP fragments is enabled.