ip irdp lifetime

Syntax

ip irdp lifetime lifetime-value

undo ip irdp lifetime

View

Interface view

Default level

2: System level

Parameters

lifetime-value: Specifies the lifetime of IP addresses advertised on the interface, in the range of 4 to 9000 seconds.

Description

Use ip irdp lifetime to set the lifetime of IP addresses advertised on an interface.

Use undo ip irdp lifetime to restore the default.

By default, the lifetime is 1800 seconds.

The lifetime of IP addresses cannot be shorter than the maximum advertising interval on an interface. Otherwise, a configuration error prompt is displayed.

Related commands: ip irdp maxadvinterval.

Examples

# Set the lifetime of IP addresses advertised on VLAN-interface 1 to 2000 seconds.

<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip irdp lifetime 2000