ecmp mode

Use ecmp mode to enable the enhanced or compressed ECMP mode.

Use undo ecmp mode to disable the ECMP mode.

Syntax

ecmp mode { compressed | enhanced }

undo ecmp mode

Default

The enhanced or compressed ECMP mode is disabled.

Views

System view

Predefined user roles

network-admin

Parameters

compressed: Specifies the compressed ECMP mode.

enhanced: Specifies the enhanced ECMP mode.

Usage guidelines


[CAUTION: ]

CAUTION:

Use enhanced ECMP mode only if you require a small number of ECMP route groups. In this mode, the supported number of ECMP route groups significantly decreases.


When one or multiple ECMP routes fail, the default ECMP mode enables the device to reallocate 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.

An ECMP route group contains ECMP routes to the same destination. When the hardware resources used by all ECMP route groups on the device reach the upper limit, no more ECMP route groups can be created. The compressed ECMP mode enables the device to compress the hardware resources of all ECMP route groups to save storage space for more ECMP route groups.

If you execute the command multiple times, the most recent configuration takes effect.

This command applies to both IPv4 and IPv6 ECMP routes.

Examples

# Enable the enhanced ECMP mode.

<Sysname> system-view
[Sysname] ecmp mode enhanced
Use enhanced ECMP mode only if you require a small number of ECMP route groups. 
In this mode, the supported number of ECMP route groups significantly decreases.
The configuration will take effect at the next reboot. Continue? [Y/N]:y
Save the running configuration and reboot device to make the configuration take 
effect.