Virtualization · Virtual Networking
MAC Address
Cheat sheet · https://pcornel.dk/topic.php?topic=3529
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 MACGet-VMNetworkAdapter <vm> | fl MacAddress,DynamicMacAddressEnabled— Hyper-V MACbridge 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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Configured MAC | vNIC identity | Intent |
| Observed source MAC | Frame evidence | Runtime identity |
| Learned port | Switch location | Local forwarding state |
| MAC move | New host/uplink | Expected 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