41
Examples
# Set the maximum lifetime for IPv4 routes in the FIB to 60 seconds.
<Sysname> system-view
[Sysname] rib
[Sysname-rib] address-family ipv4
[Sysname-rib-ipv4] fib lifetime 60
max-ecmp-num
Use max-ecmp-num to configure the maximum number of ECMP routes.
Syntax
max-ecmp-num number
Default
The maximum number of ECMP routes is 8.
Views
System view
Predefined user roles
network-admin
Parameters
number: Specifies the maximum number of ECMP routes, in the range of 1 to 32.
Usage guidelines
In the default ECMP mode, when one or multiple ECMP routes fail, the device reallocates all traffic to the
remaining routes.
The enhanced ECMP mode enables the device to reallocate only the traffic of the failed routes to the
remaining routes, ensuring forwarding continuity.
Examples
# Configure the maximum number of ECMP routes as 10.
<Sysname> system-view
[Sysname] max-ecmp-num 10
The configuration will take effect at the next reboot. Continue? [Y/N]:y
Reboot device to make the configuration take effect.
After reboot, the maximum number of ECMP routes is 10.
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