The ipv6 nd ra router-lifetime command configures the lifetime of the messages advertised by the device.
The undo ipv6 nd ra router-lifetime command restores the default.
By default, the lifetime is 1800 seconds.
| Parameter | Description | Value |
|---|---|---|
| ra-lifetime | Specifies the lifetime of the messages advertised by the device. | It is an integer 0 or ranging from 4 to 9000 seconds. By default, it is 1800 seconds. |
Ethernet interface view, Eth-Trunk interface view, Tunnel interface view, VLANIF interface view, BDIF interface view
Usage Scenario
A router adds the RA message lifetime to an RA message before sending the RA message to the hosts on the local network segment. The lifetime indicates the validity period in which this router functions as a default router of these hosts.
Prerequisites
The ipv6 enable command has been run in the interface view to enable IPv6.
Configuration Impact
If a host receives an RA message with the RA message lifetime of 0s from the device, the host does not update the address of the device in its own default router entries.
Precautions
The RA message lifetime must be longer than or equal to the interval for sending RA messages. If the RA message lifetime is shorter than the interval for sending RA messages, the system will display an error message, and you need to re-set the lifetime.