ipv6 nd ra router-lifetime

Function

The ipv6 nd ra router-lifetime command sets the lifetime of the RA messages sent by a Router.

The undo ipv6 nd ra router-lifetime command restores the default setting.

By default, the lifetime for RA messages is three times of the maximum interval for advertising RA messages.

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 RA messages sent by a Router.

The value is 0 or an integer ranging from 4 to 9000, in seconds.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, PW-VE interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Management interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nd write

Usage Guidelines

Usage Scenario

A Router adds the lifetime of the RA message to the RA message before sending the RA message to the hosts on the local network segment. The lifetime indicates the validity period of this Router as a default router of these hosts.

Prerequisites

IPv6 has been enabled on the involved interface using the ipv6 enable command.

Configuration Impact

If a host receives an RA message with the lifetime field being 0 from a Routing device, it does not update the address of this Router in its own default routing entries.

Precautions

The lifetime of the RA messages must be longer than or equal to the interval for sending RA messages. (By default, the maximum and minimum intervals for sending RA messages are 600 seconds and 200 seconds, respectively. You can run the ipv6 nd ra command to set a proper interval.) If the set lifetime of the RA messages is shorter than the set interval for sending RA messages, the system prompts an error. In such a case, you need to re-set the lifetime.

Example

# On GE 0/1/1, set the lifetime of the RA messages sent by a Router to 1000 seconds.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/1] ipv6 nd ra router-lifetime 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >