Use it for virtual routers, load balancers, nested hypervisors, clustering or appliances that legitimately originate multiple/source-shifted MAC addresses.
MAC Spoofing
MAC Spoofing policy controls whether a guest may transmit frames whose source MAC differs from the MAC identity normally assigned or learned for its virtual NIC.
1. MAC spoofing protection drops frames from unexpected MACs.
2. Allow only for nested hypervisors, NLB, some clusters.
3. Hyper-V: MacAddressSpoofing On/Off.
4. vSphere: MAC changes, forged transmits.
5. Document exceptions.
guest frame source MAC → policy check → forward/drop
Review security scope and test only the specific addresses/protocols the workload requires.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show the policy is safely scoped or that every alternate MAC is legitimate.
Next check: Review security scope and test only the specific addresses/protocols the workload requires.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
guest generates alternate source MAC → virtual port anti-spoof decision → virtual switch/uplink → upstream learning/security → peer
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- MAC spoofing is primarily a transmit/source-MAC admission concern; receive behavior may be controlled separately.
- Disabling anti-spoof controls can be required for some virtual appliances but increases L2 abuse risk.
- A changed guest MAC can also conflict with upstream port-security or duplicate-MAC checks.
- Permit only the scope required by the workload and verify actual source frames.
esxcli network vswitch standard policy security get -v vSwitch0— MAC changes / forged transmitsGet-VMNetworkAdapter <vm> | fl MacAddressSpoofing— Hyper-V settingcat /etc/pve/firewall/<vmid>.fw— Proxmox macfilter
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
Egress of the alternate source MAC shows the local hypervisor allowed it, but it does not show upstream acceptance or safe isolation.
Settings
| Platform | Setting |
|---|---|
| vSphere | MAC address changes / Forged transmits (Reject by default on vDS) |
| Hyper-V | Set-VMNetworkAdapter -MacAddressSpoofing On|Off |
| Proxmox | Firewall macfilter option |
Enable only for VMs that need it (nested Hyper-V, NLB, some clusters).
In depth
MAC spoofing (VMware: "MAC address changes" and "Forged transmits") controls whether a VM may send or receive with a MAC other than its assigned one. Allow it only where needed:
| Use case | Needs |
|---|---|
| Nested hypervisors | Forged transmits + MAC changes (or MAC learning) |
| Windows NLB (unicast) | MAC spoofing |
| Guest-level bonding/failover clusters with virtual MACs | MAC spoofing |
Set-VMNetworkAdapter -VMName lab-esx -MacAddressSpoofing On
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtual Networking → MAC Spoofing. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/formatnetwork.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtual Networking → MAC Spoofing reference map
Fast virtual-network boundaries for Virtual Networking → MAC Spoofing.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Assigned MAC | Normal vNIC identity | Baseline |
| Alternate source | Guest-generated MAC | Workload need |
| Hypervisor policy | Allow/drop | Local boundary |
| Upstream | Learn/security | External boundary |