---
title: ECMP Configuration Guide
slug: aidc/ecmp-configuration-guide
createdAt: 2025-11-28T05:58:14.780Z
---

## <font color="#1d50a2">Introduction</font>

Equal-Cost Multi-Path is an important technology for improving network performance and reliability. Through specific algorithms, network traffic is evenly distributed to multiple links or ports, avoiding congestion on a single link or port due to excessive traffic and fully utilizing network bandwidth resources. When a link fails, the switch can automatically switch traffic to other normal links to achieve redundant backup. Common load sharing methods include source MAC, destination MAC, source IP, destination IP, and their combinations, which are suitable for scenarios such as server cluster access, core layer and aggregation layer interconnection. By configuring functions such as link aggregation and policy routing, switches can efficiently complete load sharing tasks, ensuring stable network operation and high-speed data.

## <font color="#1d50a2">ECMP Configure</font>

### <font color="#1d50a2">Default setting</font>

<font color="#1d05a2">Table 1 Load balancing Default Setting</font>

| **Parameter**        | **Default value**                                                               |
| -------------------- | ------------------------------------------------------------------------------- |
| hash seed            | 10                                                                              |
| IPv4 type hash key   | vlan\_id/ip-protocol/src-ip/dst-ip/l4-src-port/l4-dst-port                      |
| IPv6 type hash key   | vlan-id/src-ipv6/dst-ipv6/l4-src-port/l4-dst-port/in-port/nextheader/flow-label |
| Non IP type hash key | src-mac/dst-mac/ethertype/vlan-id                                               |

### <font color="#1d50a2">Configure Load Balancing Mode</font>

<font color="#1d05a2">Table 2 Configure Load Balancing Mode</font>

| **Purpose**                           | **Commands**                                                | **Description** |
| ------------------------------------- | ----------------------------------------------------------- | --------------- |
| Enter global configuration view       | **configure terminal**                                      | -               |
| Configure load balancing mode and key | **hash mode** \{**ipv4**\|**ipv6**\|**non-ip**} *hash\_key* | -               |

### <font color="#1d50a2">Configure hash enhancement</font>

After configuring hash enhancement, the value of hash seed will be randomly modified on the switch with an interval of 1ms. When there are multiple equivalent forwarding paths after the traffic reaches the switch, hash enhancement can be enabled to share the load of traffic on these multiple forwarding paths.

<font color="#1d05a2">Table 3 Enable hash enhancement</font>

| **Purpose**                      | **Commands**           | **Description** |
| -------------------------------- | ---------------------- | --------------- |
| Enter global configuration view. | **configure terminal** | -               |
| Enable hash enhancement          | **hash enhancement**   | -               |

