< Home

ipv6 nd ra router-lifetime

Function

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.

Format

ipv6 nd ra router-lifetime ra-lifetime

undo ipv6 nd ra router-lifetime

Parameters

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.

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

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.

Example

# On the GE interface, configure the lifetime of the messages advertised by the device.

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