The ipv6 icmp-error command limits the rate at which ICMPv6 error messages are sent.
The undo ipv6 icmp-error command restores the default.
| Parameter | Description | Value |
|---|---|---|
| bucket bucket-size | Specifies the number of tokens the bucket contains. | The value is an integer ranging from 1 to 200. The default value is 10. |
| interval | Specifies the rate limit value. | The value is an integer ranging from 0 to 2147483647, in milliseconds. The default value is 100 milliseconds. |
By default, the size of the token buckets is 10 and the limit rate is 100 milliseconds.
The algorithm of the token bucket is as follows:
Use one token as one ICMPv6 message.
Tokens are placed to the virtual bucket at a specified interval until the number of tokens in the bucket reaches the maximum.
Once the number of ICMPv6 messages exceeds the bucket's size, the received packets from then are dropped.
# Set the rate limit of the ICMPv6 error packets to 100.
<sysname> system-view [sysname] ipv6 icmp-error ratelimit 100
# Set the bucket size of ICMPv6 to 50.
[sysname] ipv6 icmp-error bucket 50
# Set the rate limit of the ICMPv6 error packets to 100 and the bucket's size to 50.
[sysname] ipv6 icmp-error bucket 50 ratelimit 100