Enterprise Advanced SONiC: Use Case: VXLAN/EVPN Fabric 5.1 Loopback and VTEP Configuration In a data center, the same static anycast MAC address is used in all pods. This MAC address acts as the gateway MAC that is set as the source MAC address in routed packets in VLANs, which have a configured static anycast address. If the network fabric uses filters to drop packets which have the static anycast MAC address as the source MAC address, configure the router HW MAC address to be set as the source MAC address in routed packets: Leaf1(config)# [no] ip anycast-mac-address router-mac-for-forwarding 1. Configure a Loopback interface (0 to 16383) which will be used as the VTEP source IP address.
The interface is automatically enabled and up. Leaf1(config)# interface Loopback [1-16383] Leaf1(conf-if-lo1)# ip address [ip-address/mask] Leaf1(conf-if-lo1)# exit 2. Configure a source IP address using the Loopback IP address from Step 1. This VTEP source IP address is used in VXLAN-encapsulated packet headers. By default, no source IP interface is configured. l The VXLAN interface name is a text string up to ten characters in length. Use a VTEP name in vtep## format, such as vtep1 . l Enter the source IP address in dotted decimal A.B.C.D format. An IPv6 address is not supported as the source VXLAN address. Only one source IP address is supported on a VTEP.
On a standalone VTEP, the source IP address is used both as the source VXLAN tunnel endpoint in the overlay, and as the IP source address for routing in the underlay. Leaf1(config)# interface vxlan vtep[name] Leaf1(config-if-vxlan-vtep1)# source-ip [ipv4-address | Loopback-interface] Leaf1(config-if-vxlan-vtep1)# exit 3. Configure the anycast MAC address of the gateway used on all VTEPs to forward VXLAN traffic in the overlay. Configure the same anycast MAC address on each VTEP in the VXLAN network. Leaf1(config)# ip anycast-address enable Leaf1(config)# ip anycast-mac-address [mac-address] Leaf1(config)# ipv6 anycast-address enable 33