Skip to content
Ask AI

EVPN Multihoming

Table 1 EVPN Multihoming View

CommandPurpose
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]

ParameterDescription
ESISpecify the ESI.

[View] Privileged User View

[Use Cases]

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

Table 2 EVPN Multihoming Config

CommandPurpose
evpn mh disable-advertise-svi-macDisable SVI MAC advertise to BGP.
evpn mh mac-holdtime holdtimeSet MAC table entry hold time.
evpn mh neigh-holdtime holdtimeSet neighbor table entry hold time.
evpn mh redirect-offEnable fast failover on control plane.
evpn mh es-id {ESI|es-id}Configure ESI.
evpn mh es-sys-mac HH:HH:HH:HH:HH:HHSet the ES system MAC.
evpn mh es-df-pref preferenceSet the preference for DF election.
evpn unique-ip vlan vlan-idEnable EVPN Unique IP feature.

[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]

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

[Command] evpn mh mac-holdtime holdtime

[Purpose] Set MAC table entry hold time.

[Parameters]

ParameterDescription
holdtimeSet 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]

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

[Command] evpn mh neigh-holdtime holdtime

[Purpose] Set neighbor table entry hold time.

[Parameters]

ParameterDescription
holdtimeSet 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]

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

[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]

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

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

[Purpose] Configure ESI.

[Parameters]

ParameterDescription
ESISet a 10-byte ESI in the format 00:AA:BB:CC:DD:EE:FF:GG:HH:II.
es-idThe 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]

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

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

[Purpose] Set the ES system MAC.

[Parameters]

ParameterDescription
HH:HH:HH:HH:HH:HHMAC address.

[View] LAGIF Configuration View

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

[Use Cases]

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

[Command] evpn mh es-df-pref preference

[Purpose] Set the preference for DF election.

[Parameters]

ParameterDescription
preferenceSet 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]

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

[Command] evpn unique-ip vlan vlan-id

[Purpose] Enable EVPN Unique IP feature.

[Parameters]

ParameterDescription
vlan-idVLAN 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]

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