The ipv6 nd hop-limit command sets hop limit for IPv6 unicast packets initially sent by a device.
The undo ipv6 nd hop-limit command restores the hop limit for IPv6 unicast packets to the default value.
By default, the IPv6 unicast packets initially sent by a device can travel 64 hops.
Parameter | Description | Value |
---|---|---|
limit | Specifies the hop limit. | The value is an integer that ranges from 1 to 255. The default value is 64, which is recommended. |
Usage Scenario
A hop limit on a device provides the following functions:
Limiting the number of hops through which IPv6 unicast packets are allowed to travel.
Functioning as a parameter in an RA packet to help a host automatically configure a hop limit (a limit on the number of hops through which IPv6 unicast packets initially sent by a host are allowed to travel).
Precautions
The hop limit for unicast packets is set using the ipv6 nd hop-limit command in the system view.
The hop limit set for IPv6 unicast packets is the same as that set for RA packets. In the following cases, however, the hop limit for IPv6 unicast packets is 64, while the hop limit for RA packets is 0.
After a host receives an RA packet with the hop limit of 0, it sets its hop limit to the default value 64, consistent with the default hop limit on the device.