The ipv6 nd hop-limit command sets the maximum number of hops on the device.
The undo ipv6 nd hop-limit command restores the default maximum number of hops, namely, 64.
By default, the IPv6 unicast packets sent by the device can pass through 64 hops.
| Parameter | Description | Value |
|---|---|---|
| limit | Specifies the hop limit. | It is an integer ranging from 1 to 255. By default, the value is 64. |
Usage Scenario
A hop limit on a routing device can:
Limit the number of hops through which IPv6 unicast packets are allowed to travel.
Be a parameter in an RA message 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).
Configuration Impact
The hop limit for unicast packets is set using the ipv6 nd hop-limit command in the system view.
Precautions
The hop limit set for IPv6 unicast packets is the same as that set for RA messages. In the following cases, however, the hop limit for IPv6 unicast packets is 64, whereas the hop limit for RA messages is 0.
After a host receives an RA message with the hop limit of 0, it sets its own hop limit to the default value 64, consistent with the default hop limit on the routing device.