Pcornel
Windows · Hyper-V

Hyper-V Networking

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

Back to the Topic

Answer

VM packets traverse a virtual NIC, a Hyper-V virtual switch and possibly a host physical adapter or internal/private path before reaching external networks; VLAN and policy settings can alter behavior at multiple layers.

Remember

  • VM vNIC Connected ≠ external network reachable.
  • A vSwitch can be healthy while the wrong physical adapter, VLAN or upstream network is used.
  • External, internal and private switches expose different connectivity scopes.
  • Guest IP configuration remains a guest/Windows networking boundary, not a vSwitch property.

First checks

  • Get-VM — VMs and state
  • Get-VMHost — host settings
  • Get-VMSwitch — virtual switches
  • Get-VMNetworkAdapter -VMName <vm> — vNICs, switch, VLAN
  • Get-VMHardDiskDrive -VMName <vm> — attached disks
  • Get-WinEvent -LogName Microsoft-Windows-Hyper-V-VMMS-Admin -MaxEvents 30 — VMMS events

Verify in this order

vNIC → virtual switch → physical NIC/team → network

Where it usually breaks

First mismatch in host/cluster identity → management configuration → quorum/resource ownership → network/storage dependencies → VM/service runtime → guest/application verification; preserve identity/native error/pre-state before mutation.

Hyper-V → Hyper-V Networking reference map

BoundaryMeaningEvidence limit
VM vNICVirtual adapter is attached/configuredDoes not prove guest IP stack works
vSwitchCorrect virtual switch and type selectedDoes not prove external uplink works
Physical uplinkHost NIC/link/VLAN path availableDoes not prove remote service/return path
Guest flowGuest can complete intended flowStrong end-to-end network evidence

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

Confirmation

Confirm action

Continue?