Port Groups
Cheat sheet · https://pcornel.dk/topic.php?topic=3778
Answer
A port group connects VM network adapters to a vSphere virtual switch and applies network settings to them: VLAN ID, security (promiscuous mode, MAC changes), teaming and traffic shaping. On a distributed switch, port groups are defined once for all hosts.
Remember
- Port group name ≠ VLAN identity.
- VM attached to port group ≠ reachable network.
- Inherited policy ≠ effective policy when overrides exist.
- Identical names across hosts/vSwitches ≠ identical configuration.
First checks
Get-VirtualPortGroup | ft Name,VLanId— port groupsGet-VM <vm> | Get-NetworkAdapter | ft Name,NetworkName,Type— VM connectionesxcli network vswitch standard portgroup list— host view
Verify in this order
vNIC → port group (VLAN, policy) → switch
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.
VMware vSphere → Port Groups reference map
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Inventory/config | Expected VMware vSphere → Port Groups object, policy or configuration is present | Configured state does not prove effective runtime behavior |
| Runtime/control plane | Relevant vCenter/ESXi object, service or task state matches the intended condition | Management state does not prove storage/network/guest outcome |
| Dependency/data path | Required compute, storage, network, device and guest dependencies are healthy | Local success does not prove the next boundary |
| Acceptance | Original guest/application test succeeds after observation or change | Required for end-to-end closure |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3778