Use this Topic to reason about L2 forwarding between VMs and uplinks, port policy, MAC learning and where frames are accepted, filtered or forwarded.
Virtual Switch · Virtual Networking
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.
1. A virtual switch forwards frames between vNICs and uplinks.
2. Types: Linux bridge, OVS, Hyper-V vSwitch, vSphere VSS/VDS.
3. External/Internal/Private on Hyper-V.
4. Check uplink and VLAN config.
5. Learning and security policies.
vNIC → vSwitch port → uplink
Observe the next physical/virtual boundary and the return traffic.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show external switch forwarding, remote delivery, return-path symmetry or application health.
Next check: Observe the next physical/virtual boundary and the return traffic.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
vNIC/virtual port → switch ingress policy → MAC/VLAN forwarding decision → destination virtual port or uplink → external network
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
ovs-vsctl show— Open vSwitch configGet-VMSwitch | ft Name,SwitchType,NetAdapterInterfaceDescription— Hyper-V switch typeesxcli network vswitch standard list— ESXi vSwitch
ReferenceHow it works1 section · depth on demand
Guest-to-physical journey
Virtual Switch should be traced end to end as: guest vNIC → vSwitch port/policy → VLAN/overlay/bridge → uplink/team → physical switch → routed/security path → service.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Frames leaving a virtual switch uplink show local forwarding; they do not show the physical switch accepted the VLAN/MAC or that the return path exists.
Generic switching/STP/VLAN behavior belongs to Networking; product branches own virtual-switch implementation and feature differences.
In depth
A virtual switch connects vNICs to each other and to physical uplinks, forwarding by MAC address within the host. Implementations: VMware vSS/vDS, Hyper-V vSwitch (and SET), Linux bridge, Open vSwitch, NSX/OVN overlays.
Common features: VLAN tagging, uplink teaming/failover, security policies (MAC changes, forged transmits, promiscuous), traffic shaping, port mirroring. Traffic between two VMs on the same host and VLAN never leaves the host — physical monitoring tools will not see it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtual Networking → Virtual Switch. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/formatnetwork.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtual Networking → Virtual Switch reference map
Fast virtual-network boundaries for Virtual Networking → Virtual Switch.
| 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 |