< Home

hop-limit

Function

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.

Format

hop-limit { maximum max-value | minimum min-value }

undo hop-limit { maximum | minimum }

Parameters

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.

Views

IPv6 RA guard policy view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# In the IPv6 RA guard policy p1, set the maximum and minimum hop limits in RA messages to 10 and 5 respectively.

<HUAWEI> system-view
[HUAWEI] nd raguard policy p1
[HUAWEI-nd-raguard-policy-p1] hop-limit maximum 10
[HUAWEI-nd-raguard-policy-p1] hop-limit minimum 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >