The ipv6 nd stale-timeout command sets the aging time of ND entries in STALE state.
The undo ipv6 nd stale-timeout command restores the aging time of ND entries in STALE state to the default value.
By default, the aging time of ND entries in STALE state is 1200s.
Parameter | Description | Value |
---|---|---|
timeout-value | Specifies the aging time of ND entries in STALE state. | The value is an integer that ranges from 60 to 172800, in seconds. The default value is 1200s, which is recommended. |
Usage Scenario
The STALE state of an ND entry indicates that whether the neighbor is reachable is unknown. A device does not detect the neighbor reachability unless packets need to be sent to a neighbor.
The aging time of ND entries in STALE state is configurable. To quickly clear invalid ND entries, set the aging time to a smaller value using the ipv6 nd stale-timeout command. This speeds up entry aging.
Prerequisites
The IPv6 function has been enabled on the interface using the ipv6 enable command in the interface view.
Precautions
If the aging time is not configured on an interface, the aging time configured in system view is used for the interface. If the aging time is configured on an interface, the interface configuration takes effect.
After the ipv6 nd stale-timeout command is run, the status of ND entries can be updated after the aging time of ND entries in STALE state expires. That is, the new aging time configuration takes effect after the last aging time expires.
The system checks the validity of ND entries after the aging time of ND entries in STALE state expires. If the neighbor is reachable, the ND entry status changes to REACH; otherwise, the ND entry is deleted.
# Set the aging time of ND entries in STALE state to 3600s on VLANIF100.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ipv6 enable [HUAWEI-Vlanif100] ipv6 nd stale-timeout 3600
# Set the aging time of ND entries in STALE state to 3600s 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 stale-timeout 3600