---
title: EVPN Multihoming
slug: aidc/evpn-multihoming
description: virtualization configuration
createdAt: 2025-12-01T11:11:08.000Z
---

## <font color="#1d50a2">EVPN Multihoming View</font>

<font color="#1d05a2">Table 1 EVPN Multihoming View</font>

| **Command**                                     | **Purpose**                                 |
| ----------------------------------------------- | ------------------------------------------- |
| **show evpn es** \{**detail**\|**json**\|*ESI*} | Display the ES detailed status information. |

###

**\[Command]**
**show evpn es** \{*detail*\*|**json**|ESI}\*

**\[Purpose]**
Display the ES detailed status information.

**\[Parameters]**

| **Parameter** | **Description**  |
| ------------- | ---------------- |
| *ESI*         | Specify the ESI. |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show evpn es detail
ESI: 03:00:00:01:00:00:01:00:00:64
 Type: Local,Remote
 Interface: link-aggregation 5
 State: up
 Bridge port: yes
 Ready for BGP: yes
 VNI Count: 0
 MAC Count: 2
 DF status: df
 DF preference: 32767
 Nexthop group: 536870913
 VTEPs:
     10.1.0.238 df_alg: preference df_pref: 32767 nh: 268435459
```

## <font color="#1d50a2">EVPN Multihoming Config</font>

<font color="#1d05a2">Table 2 EVPN Multihoming Config</font>

| **Command**                                     | **Purpose**                            |
| ----------------------------------------------- | -------------------------------------- |
| **evpn mh disable-advertise-svi-mac**           | Disable SVI MAC advertise to BGP.      |
| **evpn mh mac-holdtime** *holdtime*             | Set MAC table entry hold time.         |
| **evpn mh neigh-holdtime** *holdtime*           | Set neighbor table entry hold time.    |
| **evpn mh redirect-off**                        | Enable fast failover on control plane. |
| **evpn mh es-id** \{*ESI*\|*es-id*}             | Configure ESI.                         |
| **evpn mh es-sys-mac** *HH\:HH\:HH\:HH\:HH\:HH* | Set the ES system MAC.                 |
| **evpn mh es-df-pref** *preference*             | Set the preference for DF election.    |
| **evpn unique-ip vlan** *vlan-id*               | Enable EVPN Unique IP feature.         |

### <font color="#1d50a2">evpn mh disable-advertise-svi-mac</font>

**\[Command]**
**evpn mh disable-advertise-svi-mac**

**\[Purpose]**
Disable SVI MAC advertise to BGP.

**\[View]**
Global Configuration View

**\[Notes]**
BGP advertisement for SVI MAC is enabled by default.
Run command **no evpn mh disable-advertise-svi-mac** to enable SVI MAC advertise to BGP.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# evpn mh disable-advertise-svi-mac
```

### <font color="#1d50a2">evpn mh mac-holdtime *holdtime*</font>

**\[Command]**
**evpn mh mac-holdtime** *holdtime*

**\[Purpose]**
Set MAC table entry hold time.

**\[Parameters]**

| **Parameter** | **Description**                                                                                                                                                                                                                                                        |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *holdtime*    | Set the hold time in seconds, the range is 0-86400. It indicates how long at least the MAC entries on the local side will be aged after the locally learned MAC entries of the ES peer are aged. The default value is 18 minutes and it is recommended to set it to 0. |

**\[View]**
Global Configuration View

**\[Notes]**
Run command **no evpn mh mac-holdtime** to delete the hold time configuration.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# evpn mh mac-holdtime 0
```

### <font color="#1d50a2">evpn mh neigh-holdtime *holdtime*</font>

**\[Command]**
**evpn mh neigh-holdtime** *holdtime*

**\[Purpose]**
Set neighbor table entry hold time.

**\[Parameters]**

| **Parameter** | **Description**                                                                                                                                                                                                                                                                  |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *holdtime*    | Set the hold time in seconds, the range is 0-86400. It indicates how long at least the neighbor entries on the local side will be aged after the locally learned neighbor entries of the ES peer are aged. The default value is 18 minutes and it is recommended to set it to 0. |

**\[View]**
Global Configuration View

**\[Notes]**
Run command **no evpn mh neigh-holdtime** to delete the hold time configuration.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# evpn mh neigh-holdtime 0
```

### <font color="#1d50a2">evpn mh redirect-off</font>

**\[Command]**
**evpn mh redirect-off**

**\[Purpose]**
Enable fast failover on control plane.

**\[View]**
Global Configuration View

**\[Notes]**
This feature is disabled by default and is recommended to be enabled.
Run command **no evpn mh redirect-off** to disable fast failover.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# evpn mh redirect-off
```

### <font color="#1d50a2">evpn mh es-id \{ESI|es-id\}</font>

**\[Command]**
**evpn mh es-id** \{*ESI|es-id*}

**\[Purpose]**
Configure ESI.

**\[Parameters]**

| **Parameter** | **Description**                                                         |
| ------------- | ----------------------------------------------------------------------- |
| *ESI*         | Set a 10-byte ESI in the format 00\:AA\:BB\:CC\:DD\:EE\:FF\:GG\:HH\:II. |
| *es-id*       | The range is 1-16777215.                                                |

**\[View]**
LAGIF Configuration View

**\[Notes]**
There are two methods to configure ESI:
1\. Directly set a unique 10-byte ESI in the format 00\:AA\:BB\:CC\:DD\:EE\:FF\:GG\:HH\:II;
2\. Set es-id and es-sys-mac, and then form a unique 10-byte ESI with reserved bits.
Run command **no evpn mh es-id** to delete the ESI.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface link-aggregation 123
sonic(config-lagif-123)# evpn mh es-id 03:00:00:01:00:00:02:00:00:c9
sonic# configure terminal
sonic(config)# interface link-aggregation 124
sonic(config-lagif-124)# evpn mh es-id 100
sonic(config-lagif-124)# evpn mh es-sys-mac 00:00:01:00:00:10
```

### <font color="#1d50a2">evpn mh es-sys-mac *HH\:HH\:HH\:HH\:HH\:HH*</font>

**\[Command]**
**evpn mh es-sys-mac** *HH\:HH\:HH\:HH\:HH\:HH*

**\[Purpose]**
Set the ES system MAC.

**\[Parameters]**

| **Parameter**            | **Description** |
| ------------------------ | --------------- |
| *HH\:HH\:HH\:HH\:HH\:HH* | MAC address.    |

**\[View]**
LAGIF Configuration View

**\[Notes]**
Run command **no evpn mh es-sys-mac** to delete the ES system MAC.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface link-aggregation 125
sonic(config-lagif-125)# evpn mh es-sys-mac 00:00:01:00:00:10
```

### <font color="#1d50a2">evpn mh es-df-pref *preference*</font>

**\[Command]**
**evpn mh es-df-pref** *preference*

**\[Purpose]**
Set the preference for DF election.

**\[Parameters]**

| **Parameter** | **Description**                                                                                                                                |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| *preference*  | Set the preference for DF election. The range is 1-65535. The device with the largest value will be the Designated Forwarder (DF) for this ES. |

**\[View]**
LAGIF Configuration View

**\[Notes]**
Run command **no evpn mh es-df-pref** to restore the preference to the default value 32767.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface link-aggregation 126
sonic(config-lagif-126)# evpn mh es-df-pref 0
```

### <font color="#1d50a2">evpn unique-ip vlan *vlan-id*</font>

**\[Command]**
**evpn unique-ip vlan** *vlan-id*

**\[Purpose]**
Enable EVPN Unique IP feature.

**\[Parameters]**

| **Parameter** | **Description**                  |
| ------------- | -------------------------------- |
| *vlan-id*     | VLAN ID, the range is \[1,4094]. |

**\[View]**
Global Configuration View

**\[Notes]**
This feature is not enabled by default. When enabled, the gateway of a couple of ES peers is allowed to have different MAC and IP addresses configured.
Run command **no evpn unique-ip vlan** *vlan-id* to disable the EVPN Unique IP feature.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# evpn unique-ip vlan 25
```

