The ipv6 nd ns retrans-timer command sets the interval for sending NS packets.
The undo ipv6 nd ns retrans-timer command restores the interval for sending NS packets to the default value.
By default, the interval for sending NS packets is 1000 ms.
Parameter | Description | Value |
---|---|---|
interval | Specifies the interval for sending NS packets. | The value is an integer that ranges from 1000 to 4294967295, in milliseconds. The default value is 1000 milliseconds, which is recommended. |
Usage Scenario
Setting the interval for sending NS packets provides the following functions:
Controlling the interval at which a local routing device detects neighbor reachability.
Controlling the interval at which a local routing device performs DAD.
Functioning as a parameter in an RA packet to instruct hosts to specify this interval as their own interval for sending NS packets.
Prerequisites
The IPv6 function has been enabled on the interface using the ipv6 enable command in the interface view.
Precautions
Frequently sending NS packets causes high CPU usage, which affects the system performance. Therefore, you are advised to set the interval for sending NS packets to a larger value. The default interval, 1000 milliseconds, is recommended.
If you run the ipv6 nd ns retrans-timer command multiple times, only the latest configuration takes effect.
The interval for sending NS packets is the same as that for sending RA packets. In the following cases, however, the interval for sending NS packets is the default value1000 ms, while the interval for sending RA packets is 0 ms.
After a host receives an RA packet of which the sending interval is 0 ms from a device, the host sets the interval for sending NS packet to 1000 ms, the same as that on the device.
# Set the interval for sending NS packets to 10000 milliseconds on VLANIF100.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ipv6 enable [HUAWEI-Vlanif100] ipv6 nd ns retrans-timer 10000
# Set the interval for sending NS packets to 10000 milliseconds on GE0/0/1.
<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 ns retrans-timer 10000