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 [ instance instance-name ] lifetime seconds
undo protocol protocol [ instance instance-name ] 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
Parameters
protocol: Specifies a routing protocol.
seconds: Specifies the maximum lifetime for routes and labels in the RIB, in the range of 1 to 6000 seconds.
instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. This argument applies only to the BGP protocol. If you do not specify a BGP instance, this command sets the maximum lifetime for all BGP routes and labels in the RIB.
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 RIP routes and labels in the RIB to 60 seconds.
<Sysname> system-view [Sysname] rib [Sysname-rib] address-family ipv4 [Sysname-rib-ipv4] protocol rip lifetime 60