R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)
222
Parameters
milliseconds: Sets the interval for tokens to arrive in the bucket. The value range is 0 to 2147483647
milliseconds, and the default is 100 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,
and the default is 10.
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. Tokens are placed in the
bucket at intervals until the maximum number of tokens that the bucket can hold is reached. Tokens are
removed from the bucket when ICMP error messages are sent. When the bucket is empty, ICMP error
messages are not sent until a new token is placed in the bucket.
Examples
# Configure an interval of 200 milliseconds and bucket size of 40 tokens for ICMP error messages.
<Sysname> system-view
[Sysname] ip icmp error-interval 200 40
ip icmp source
Use ip icmp source to enable specifying the source address for outgoing ICMP packets.
Use undo ip icmp source to restore the default.
Syntax
ip icmp source [ vpn-instance vpn-instance-name ] ip-address
undo ip icmp source [ vpn-instance vpn-instance-name ]
Default
The device uses the IP address of the sending interface as the source IP address for outgoing ICMP
packets.
Views
System view
Predefined user roles
network-admin
Parameters
vpn-instance vpn-instance-name: Specifies the VPN instance to which the specified address belongs. The
vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. The specified VPN instance
must exist. If the specified IP address is on the public network, do not use this option.
ip-address: Specifies an IP address.
Usage guidelines
It is a good practice to specify the IP address of the loopback interface as the source IP address for
outgoing ping echo request and ICMP error messages. This feature helps users to locate the sending
device easily.
Examples
# Specify 1.1.1.1 as the source address for outgoing ICMP packets.