Pcornel
Virtualization · Virtual Networking

MAC Address

Cheat sheet · https://pcornel.dk/topic.php?topic=3529

Back to the Topic

Answer

A MAC Address identifies the Layer 2 source/destination endpoint used by a VM vNIC and by virtual/physical switches to make local Ethernet forwarding decisions.

Remember

  • The guest MAC and hypervisor-configured MAC should map to the same intended vNIC identity.
  • A learned MAC proves source frames were seen on a port; it does not prove destination traffic or IP health.
  • Duplicate MAC addresses can cause unstable forwarding that moves between ports/hosts.
  • VM migration can legitimately move a MAC to a different physical uplink and require upstream relearning.

First checks

  • virsh domiflist <vm> — VM MAC
  • Get-VMNetworkAdapter <vm> | fl MacAddress,DynamicMacAddressEnabled — Hyper-V MAC
  • bridge fdb show br vmbr0 — bridge MAC table

Verify in this order

vNIC MAC → bridge/switch learning → forwarding

Where it usually breaks

First mismatch in guest NIC → virtual switch/bridge → VLAN/port group/security policy → physical uplink → routed path → peer/workload; preserve identity/native error/pre-state before mutation.

Virtual Networking → MAC Address reference map

BoundaryMeaningEvidence limit
Configured MACvNIC identityIntent
Observed source MACFrame evidenceRuntime identity
Learned portSwitch locationLocal forwarding state
MAC moveNew host/uplinkExpected on migration or suspicious if unstable

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3529

Confirmation

Confirm action

Continue?