Pcornel
Virtualization · Virtual Networking

Virtual Switch

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

Back to the Topic

Answer

A Virtual Switch is a software switching function in the virtualization layer that forwards Ethernet frames between virtual ports and, when connected, physical or logical uplinks.

Remember

  • A virtual switch is an L2 forwarding boundary unless additional routed/NAT functions are explicitly present.
  • Port attachment and switch existence do not prove correct VLAN or security policy.
  • MAC learning is evidence of source traffic, not proof that return traffic can reach the VM.
  • External connectivity still depends on host uplinks and physical/network-fabric configuration.

First checks

  • ovs-vsctl show — Open vSwitch config
  • Get-VMSwitch | ft Name,SwitchType,NetAdapterInterfaceDescription — Hyper-V switch type
  • esxcli network vswitch standard list — ESXi vSwitch

Verify in this order

vNIC → vSwitch port → uplink

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 → Virtual Switch reference map

BoundaryMeaningEvidence limit
Ingress portFrame arrivesSource-side evidence
PolicyVLAN/security appliedDecision boundary
ForwardingDestination/uplink selectedLocal L2 proof
EgressFrame leaves port/uplinkNot remote proof

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

Confirmation

Confirm action

Continue?