Virtualization · Virtual Networking
Port Groups
Cheat sheet · https://pcornel.dk/topic.php?topic=3523
Answer
Port Groups are logical collections of virtual switch ports that apply a common connectivity and policy profile, commonly including VLAN identity and security/traffic settings.
Remember
- A port-group name is only an administrative label; effective policy and uplink path must be checked.
- Moving a vNIC between port groups can change VLAN/security/QoS behavior immediately.
- Same port-group name on different hosts does not guarantee identical backing configuration.
- Cluster migrations require equivalent network availability on the destination host.
First checks
esxcli network vswitch standard portgroup list— port groups and VLAN IDsGet-VDPortgroup | ft Name,VlanConfiguration— VDS port groups (PowerCLI)Get-VMNetworkAdapterVlan -VMName <vm>— Hyper-V VLAN per vNIC
Verify in this order
vNIC → port group (VLAN, policy) → uplinks
Where it usually breaks
First mismatch in guest NIC → virtual switch/bridge → VLAN/port group/security policy → physical uplink → routed path → peer/workload; preserve identity/native error/pre-state before mutation.
Virtual Networking → Port Groups reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Membership | Which logical network | Administrative attachment |
| VLAN | L2 segmentation policy | Tagging boundary |
| Security | MAC/promiscuous rules | Admission boundary |
| Backing | vSwitch/uplink/host | Physical reachability |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3523