protocol lifetime

Use protocol lifetime to set the maximum lifetime for IPv4 or IPv6 routes and labels in the RIB.

Use undo protocol lifetime to restore the default.

Syntax

protocol protocol lifetime seconds

undo protocol protocol lifetime

Default

The maximum lifetime for IPv4 or IPv6 routes and labels in the RIB is 480 seconds.

Views

RIB IPv4 address family view, RIB IPv6 address family view

Predefined user roles

network-admin

mdc-admin

Parameters

second: Sets the maximum lifetime for routes and labels in the RIB, in the range of 0 to 900 seconds. When this argument is set to 0, RIB entries immediately age out when a protocol switchover occurs.

Usage guidelines

When GR is enabled, make sure the protocol can complete GR and install all route entries to the RIB within the lifetime configured in this command.

Examples

# Set the maximum lifetime for OSPF routes and labels in the RIB to 60 seconds.

<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] protocol ospf lifetime 60