Setting the maximum lifetime for routes and labels in the RIB

Perform this task to prevent routes of a certain protocol from being aged out due to slow protocol convergence resulting from a large number of route entries or long GR period.

The configuration takes effect at the next protocol or RIB process switchover.

To set the maximum lifetime for routes and labels in the RIB (IPv4):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter RIB view.

rib

N/A

3. Create the RIB IPv4 address family and enter its view.

address-family ipv4

By default, no RIB IPv4 address family exists.

4. Set the maximum lifetime for IPv4 routes and labels in the RIB.

protocol protocol [ instance instance-name ] lifetime seconds

By default, the maximum lifetime for routes and labels in the RIB is 480 seconds.

To set the maximum route lifetime for routes and labels in the RIB (IPv6):

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter RIB view.

rib

N/A

3. Create the RIB IPv6 address family and enter its view.

address-family ipv6

By default, no RIB IPv6 address family exists.

4. Set the maximum lifetime for IPv6 routes and labels in the RIB.

protocol protocol [ instance instance-name ] lifetime seconds

By default, the maximum lifetime for routes and labels in the RIB is 480 seconds.