MAC learning
The VTEP performs source MAC learning on the VSI as a Layer 2 switch.
For traffic from the local site to the remote site, the VTEP learns the source MAC address before VXLAN encapsulation.
For traffic from the remote site to the local site, the VTEP learns the source MAC address after removing the VXLAN header.
A VSI's MAC address table includes the following types of MAC address entries:
Local MAC—MAC entries learned from the local site. The outgoing interfaces for the MAC address entries are site-facing interfaces.
Static—Manually added MAC entries.
Dynamic—Dynamically learned MAC entries.
Remote MAC—MAC entries learned from a remote site. The outgoing interfaces for the MAC address entries are VXLAN tunnel interfaces.
Static—Manually added MAC entries.
Dynamic—MAC entries learned in the data plane from incoming traffic on VXLAN tunnels. The learned MAC addresses are contained in the inner Ethernet header.
OpenFlow—MAC entries issued by a remote controller through OpenFlow.
OVSDB—MAC entries issued by a remote controller through OVSDB.
For a MAC address, the manual static entry has higher priority than the dynamic entry.