ipv6 nd hop-limit
Function
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.
Parameters
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 Guidelines
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.
- If the hop limit for RA packets is not set in the interface view or in the system view, the hop limit for RA packets is 64 by default.
- If the hop limit for RA packets is not set in the interface view, the value set using the ipv6 nd hop-limit command in the system view is used as the hop limit for RA packets.
- If the ipv6 nd ra hop-limit command is run in the interface view, the configuration in the interface view takes effect, no matter whether the hop limit is set 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.
- No hop limit is set for IPv6 unicast packets. The default value takes effect.
- The undo ipv6 nd hop-limit command is run to restore the default hop limit set for IPv6 unicast packets.
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.