Pcornel
Virtualization · Virtual Networking

Port Groups

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

Back to the Topic

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 IDs
  • Get-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

BoundaryMeaningEvidence limit
MembershipWhich logical networkAdministrative attachment
VLANL2 segmentation policyTagging boundary
SecurityMAC/promiscuous rulesAdmission boundary
BackingvSwitch/uplink/hostPhysical reachability

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

Confirmation

Confirm action

Continue?