Virtualization · Virtual Networking
Virtual Switch
Cheat sheet · https://pcornel.dk/topic.php?topic=3521
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 configGet-VMSwitch | ft Name,SwitchType,NetAdapterInterfaceDescription— Hyper-V switch typeesxcli 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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Ingress port | Frame arrives | Source-side evidence |
| Policy | VLAN/security applied | Decision boundary |
| Forwarding | Destination/uplink selected | Local L2 proof |
| Egress | Frame leaves port/uplink | Not 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