Pcornel
Virtualization · VMware vSphere

Port Groups

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

Back to the Topic

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 groups
  • Get-VM <vm> | Get-NetworkAdapter | ft Name,NetworkName,Type — VM connection
  • esxcli 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

BoundaryWhat to verifyEvidence limit
Inventory/configExpected VMware vSphere → Port Groups object, policy or configuration is presentConfigured state does not prove effective runtime behavior
Runtime/control planeRelevant vCenter/ESXi object, service or task state matches the intended conditionManagement state does not prove storage/network/guest outcome
Dependency/data pathRequired compute, storage, network, device and guest dependencies are healthyLocal success does not prove the next boundary
AcceptanceOriginal guest/application test succeeds after observation or changeRequired 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

Confirmation

Confirm action

Continue?