ipv6 nd ra hop-limit

Function

The ipv6 nd ra hop-limit command sets the maximum number of hops through which IPv6 unicast packets sent by the device are allowed to pass.

The undo ipv6 nd ra hop-limit command restores the default maximum number of hops for an RA message.

By default, the default maximum number of hops for an RA message is 64.

Format

ipv6 nd ra hop-limit limit

undo ipv6 nd ra hop-limit

Parameters

Parameter Description Value
limit

Specifies the maximum number of hops for an RA message.

The value is an integer ranging from 0 to 255.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, PW-VE interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Management interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nd write

Usage Guidelines

Usage Scenario

The hop limit is a parameter carried in an RA message. It defines the maximum number of hops that the RA message (which is an IPv6 unicast packet) passes through.

Prerequisites

IPv6 has been enabled on the involved interface using the ipv6 enable command.

Configuration Impact

If the device finds that the hop limit in its received RA message is different from that configured on the device itself, the device will discard this RA message.

Precautions

  • If the ipv6 nd ra hop-limit command has been run on an interface, the hop limit for an RA message uses the value configured on the interface.
  • If the ipv6 nd ra hop-limit command has not been run on an interface, the hop limit for an RA message uses the value configured globally, that is, the value configured in the ipv6 nd hop-limit command.

Example

# Configure the maximum number of hops for an RA message to be 126.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/1] ipv6 nd ra hop-limit 126
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >