< Home

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.

Format

ipv6 nd hop-limit limit

undo ipv6 nd hop-limit

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.

Views

System view

Default Level

2: Configuration level

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.

The hop limit for RA packets depends on the configuration of the ipv6 nd hop-limit command in the system view and the configuration of the ipv6 nd ra hop-limit command in the interface 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.

Example

# Set the hop limit for IPv6 unicast packets initially sent by a device to 100.

<HUAWEI> system-view
[HUAWEI] ipv6 nd hop-limit 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >