The hop-limit command configures a rule to match RA messages against the maximum and minimum hop limits in RA messages.
The undo hop-limit command restores the default hop limits.
By default, the maximum and minimum hop limits in an RA message are 255 and 1 respectively.
Parameter | Description | Value |
---|---|---|
maximum max-value |
Specifies the maximum hop limit used to match RA messages. |
The value is an integer in the range from 1 to 255. |
minimum min-value |
Specifies the minimum hop limit used to match RA messages. |
The value is an integer in the range from 1 to 255. |
In the same IPv6 RA guard policy, if both max-value and min-value are configured, min-value must be less than or equal to max-value.
The Hop Limit field in an RA message indicates the maximum number of hops that the message can pass through. The value is decremented by 1 each time the message passes through a device. The message is discarded when the field value is 0. After the maximum or minimum hop limit is configured in the IPv6 RA guard policy view, the interface to which the policy is applied forwards only the RA messages whose hop limit is within the configured range and discards those whose hop limit is outside the configured range.