< Home

ipv6 nd ra hop-limit

Function

The ipv6 nd ra hop-limit command configures a maximum number of hops for an RA message.

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. The default value is 64, which is recommended.

Views

Ethernet interface view, Eth-Trunk interface view, Tunnel interface view, VLANIF interface view, BDIF interface view

Default Level

2: Configuration level

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

The ipv6 enable command has been run on the interface to enable IPv6.

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.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ipv6 nd ra hop-limit 126
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >