Skip to main content
Arista Configuration Example for VXLAN

Arista Configuration Example for VXLAN

·430 words·3 mins
Mike Curtis
Author
Mike Curtis
Dedicated to Technology
Table of Contents

VXLAN is used to extend a layer 2 domain over a layer 3 network. refer to the Arista documentation for more information.

eos vxlan configuration

Per the documentation, the following is needed to step a layer2 VXLAN connection.

switch(config)# interface vxlan 1
switch(config-if-Vx1)# show active
interface Vxlan1
   vxlan udp-port 4789
switch(config-if-Vx1)#

The VXLAN source-interface command specifies the loopback interface from which the VTEP derives the source address (IP) that it uses when exchanging VXLAN frames.

switch(config)# interface loopback 15
switch(config-if-Lo15)# ip address 10.25.25.3/24
switch(config-if-Lo15)# exit
switch(config)# interface vxlan 1
switch(config-if-Vx1)# vxlan source-interface loopback 15
switch(config-if-Vx1)#  show active
interface Vxlan1
   vxlan source-interface Loopback15
   vxlan udp-port 4789
switch(config-if-Vx1)#

The VTI requires a one-to-one correspondence between specified VLANs and VNI values.

switch(config)# interface vxlan 1
switch(config-if-Vx1)# vxlan vlan 100 vni 100
switch(config-if-Vx1)# vxlan vlan 200 vni 10.10.200
switch(config-if-Vx1)# show active
interface Vxlan1
   vxlan udp-port 4789
   vxlan vlan 200 vni 658120
   vxlan vlan 100 vni 100
switch(config-if-Vx1)# vxlan vni notation dotted
switch(config-if-Vx1)# show active
interface Vxlan1
   vxlan udp-port 4789
   vxlan vlan 100 vni 0.0.100
   vxlan vlan 200 vni 10.10.200
switch(config-if-Vx1)#

Actual example and verify
#

Switch A

hostname arista-a
!
interface Loopback1
   ip address 10.11.255.3/32
!
interface Vxlan1
   vxlan source-interface Loopback1
   vxlan udp-port 4789
   vxlan vlan 7 vni 10.11.7
   vxlan flood vtep 10.11.255.2
!
vxlan vni notation dotted

Switch B

hostname arista-b
!
interface Loopback1
   ip address 10.11.255.2/32
!
interface Vxlan1
   vxlan source-interface Loopback1
   vxlan udp-port 4789
   vxlan vlan 7 vni 10.11.7
   vxlan flood vtep 10.11.255.3
!
vxlan vni notation dotted

If all went well you should not be able to see mac address entries

arista-a#show mac add
          Mac Address Table
------------------------------------------------------------------

Vlan    Mac Address       Type        Ports      Moves   Last Move
----    -----------       ----        -----      -----   ---------
   7    0050.7966.681b    DYNAMIC     Vx1        1       0:00:05 ago
   7    5017.e100.0600    DYNAMIC     Et7        1       0:20:20 ago
   7    505f.f600.0900    DYNAMIC     Et7        1       0:20:55 ago
   8    5007.5d0d.a0d4    DYNAMIC     Et8        1       0:21:06 ago
   8    5053.0b00.0507    DYNAMIC     Et8        1       0:26:29 ago
Total Mac Addresses for this criterion: 5

          Multicast Mac Address Table
------------------------------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       ----        -----
Total Mac Addresses for this criterion: 0

--------------------------------------------------------------------------------------
arista-b#show mac add
          Mac Address Table
------------------------------------------------------------------

Vlan    Mac Address       Type        Ports      Moves   Last Move
----    -----------       ----        -----      -----   ---------
   7    0050.7966.681b    DYNAMIC     Et7        1       0:00:09 ago
   7    505f.f600.0900    DYNAMIC     Vx1        1       0:20:55 ago
   7    507e.229b.911c    DYNAMIC     Vx1        1       0:00:09 ago
   8    5053.0b00.0506    DYNAMIC     Et8        1       0:20:36 ago
   8    507e.229b.911c    DYNAMIC     Et8        1       0:21:02 ago
Total Mac Addresses for this criterion: 5

          Multicast Mac Address Table
------------------------------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       ----        -----
Total Mac Addresses for this criterion: 0