Virtual Switch
Cheat sheet · https://pcornel.dk/topic.php?topic=387
Answer
A Hyper-V virtual switch is a software switch in the host. Virtual machines plug into it; an External switch connects them to the physical network, an Internal one to the host only, a Private one just to each other.
Remember
A VLAN ID set on the virtual adapter needs a trunk on the physical switch port. With a shared external switch, the host's own address lives on vEthernet (<switch>). Creating an external switch takes over the physical adapter and interrupts its connection.
First checks
Get-VMSwitch | ft Name,SwitchType,NetAdapterInterfaceDescription,AllowManagementOS— switchesGet-VMSwitchTeam— SET teamsGet-VMNetworkAdapter -ManagementOS— host vNICs
Verify in this order
vNIC → Hyper-V vSwitch port → SET team → physical NICs
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Hyper-V → Virtual Switch reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| External | VM ↔ physical network path | Still needs uplink/upstream |
| Internal | VM ↔ VM + management OS | No direct external uplink |
| Private | VM ↔ VM on host | No management OS/external path |
| Policy | VLAN/MAC/other settings | Configured ≠ packet passed |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=387