The ipv6 nd ra hop-limit command sets the hop limit for RA packets.
The undo ipv6 nd ra hop-limit command restores the hop limit for RA packets to the default value.
By default, the hop limit for RA packets is 64.
Parameter | Description | Value |
---|---|---|
limit | Specifies the hop limit for RA packets. | The value is an integer that ranges from 0 to 255. The default value is 64, which is recommended. |
Usage Scenario
As a parameter in an RA packet, the hop limit enables a host to 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).
Prerequisites
The IPv6 function has been enabled on the interface using the ipv6 enable command in the interface view.
Precautions
After this command is run on the switch, the device discards the RA packet whose hop limit is different from its configuration.
If the ipv6 nd ra hop-limit command is run on an interface, the hop limit for RA packets is determined by the interface configuration.
If the ipv6 nd ra hop-limit command is not run on an interface, the hop limit for RA packets is determined by the hop limit configured using the ipv6 nd hop-limit command.
# Set the hop limit for RA packets sent by VLANIF100 to 126.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ipv6 enable [HUAWEI-Vlanif100] ipv6 nd ra hop-limit 126
# Set the hop limit for RA packets sent by GE0/0/1 to 126.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] ipv6 nd ra hop-limit 126