ipv6 nd ra router-lifetime

Syntax

ipv6 nd ra router-lifetime value

undo ipv6 nd ra router-lifetime

View

Interface view

Default level

2: System level

Parameters

value: Specifies the router lifetime in seconds, in the range of 0 to 9000. When it is set to 0, the device does not serve as the default router.

Description

Use ipv6 nd ra router-lifetime to configure the router lifetime in RA messages.

Use undo ipv6 nd ra router-lifetime to restore the default.

By default, the router lifetime in RA messages is 1800 seconds.

The router lifetime in RA messages should be greater than or equal to the advertising interval.

Examples

# Set the router lifetime in RA messages on VLAN-interface 100 to 1000 seconds.

<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 nd ra router-lifetime 1000