Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Virtual Switching

Direct answer

Virtual switching (vSwitch, Linux bridge, Open vSwitch) forwards frames between VMs on a host and maps port groups or VLAN tags to the host's physical uplinks.

When to use this

Use it when VMs on the same host or VLAN cannot talk, or when designing how virtual switches map to VLANs and physical uplinks.

First 30 seconds

1. Which virtual switch and uplinks does the port group use? Teaming mode?

2. VLAN tagging: on the port group (VST) or inside the guest (VGT)? Consistent with the switch trunk?

3. Physical switch ports to the host are trunks with the VM VLANs and matching native VLAN?

4. Teaming by IP hash needs a static EtherChannel on the switch; other modes must not use one.

5. Two VMs on the same host and VLAN talk? Then the problem is upstream.

Operational verification

port group with VLAN ID → virtual switch → teamed physical uplinks → switch trunk with matching VLANs and teaming/EtherChannel setting → frames forwarded

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it when VMs on the same host or VLAN cannot talk, or when designing how virtual switches map to VLANs and physical …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification and output interpretation Verify boundary

Verify virtual MAC/port learning where available, port-group/VLAN assignment, uplink state and corresponding physical trunk/VLAN state. Use packet capture at the right virtual/physical boundary when location matters. Correlate MAC/IP identities across layers.

Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • A virtual switch connects VMs to each other and to the physical network inside the host.
  • It supports VLAN tagging on port groups.
  • Physical NICs act as its uplinks.
Key checks
  • Hypervisor console (vCenter, Hyper-V Manager, Proxmox) — VM state, vNIC, port group / virtual switch and VLAN.
  • Get-VMNetworkAdapter -VMName <vm> | fl / Get-VMNetworkAdapterVlan (Hyper-V) — vNIC, switch and VLAN.
  • qm config <vmid> / bridge vlan show (Proxmox/Linux) — VM NIC and bridge VLANs.
  • show interfaces trunk on the physical switch — host uplink carries the VM VLANs.
  • show mac address-table address <vm-mac> — the VM MAC learned on the host uplink.
ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

Virtual switching: the switch inside the hypervisor

NIST SP 800-125 notes that hypervisors may implement virtual switches, hubs and routers, and that some use VLAN standards to control how guests connect. Some virtual switches support VLAN and firewall features for separating and isolating VM traffic.

Virtual switch implementations

PlatformVirtual switch
VMware vSphereStandard switch (per host), distributed switch (vCenter-wide)
Hyper-VHyper-V Virtual Switch (external, internal, private)
KVM/LinuxLinux bridge, Open vSwitch, macvtap
ContainersLinux bridge (docker0), CNI plugins
esxi# esxcli network vswitch standard portgroup list
Name                 Virtual Switch  Active Clients  VLAN ID
-------------------  --------------  --------------  -------
Management Network   vSwitch0                     1        0
VM-USERS             vSwitch0                    12       20
VM-DMZ               vSwitch0                     3       80
linux$ ovs-vsctl show
    Bridge br-int
        Port vm-web01
            tag: 20
            Interface vm-web01
        Port uplink
            trunks: [20, 80]
            Interface eno1
SW(config)# interface TenGigabitEthernet1/0/10
SW(config-if)# description ESXi-01 vmnic0
SW(config-if)# switchport mode trunk
SW(config-if)# switchport trunk allowed vlan 10,20,80
SW(config-if)# spanning-tree portfast trunk

How it connects to the physical network

ElementRole
Port group or VLAN tagPuts VM vNICs in a VLAN
Uplinks (physical NICs)Trunks to the physical switch carrying the port group VLANs
TeamingSeveral uplinks for redundancy and load sharing (often active/standby or by originating port)

Visibility (NIST SP 800-125)

Traffic between guests on the same host never reaches the physical network, so physical monitoring tools can't see it. NIST notes that some organisations route inter-VM traffic through the physical network to keep it visible, accepting the performance cost. Alternatives are port mirroring and NetFlow/IPFIX on the virtual switch, or micro-segmentation firewalls in the hypervisor.

Switch-side configuration

SettingReason
Trunk with only the needed VLANsEach port group's VLAN must be allowed
spanning-tree portfast trunkVirtual switches typically don't run STP; ports should forward immediately
BPDU guard (if the virtual switch never sends BPDUs)Protects against a VM bridging two vNICs
LACP only if the hypervisor teaming is configured for itMismatched teaming causes MAC flapping

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

Virtual switching is the software switch inside a hypervisor that connects VMs to each other and to the physical network. It handles VLAN tagging, uplink teaming and security policies in much the same way as a physical access switch. A key difference is visibility: traffic between two VMs on the same host never leaves the server, so physical monitoring and firewalls do not see it unless the design forces it out.

Virtual switching connects VMs to each other and to physical uplinks inside the host.

PlatformSwitch
ESXivSwitch (standard), vDS (distributed, vCenter)
Hyper-VHyper-V Virtual Switch, SET teaming
KVM/ProxmoxLinux bridge (VLAN-aware), Open vSwitch
CloudVPC/VNet constructs, NSX, OVN

VM-to-VM traffic on the same host and VLAN never touches the physical network — physical SPAN and ACLs do not see it. Virtual switches do not run STP towards the physical network; they avoid loops by not forwarding between uplinks.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Architecture/protocol mechanics and state model

A virtual switch forwards frames between VM virtual ports and host uplinks using virtual port/VLAN policy. It can switch VM-to-VM traffic without those frames ever appearing on a physical switch, which changes where evidence must be collected.

Limits and common misconceptions

Absence of a VM-to-VM flow on the physical uplink can be correct local switching. Conversely, physical switch MAC evidence shows only traffic that actually reached that uplink.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration intent

Document port groups/bridges, tagged/untagged VLAN behavior, uplink teams, MTU, security policy and whether routing/NAT occurs in the host or elsewhere.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → Server Virtualization → Virtual Switching. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Embedded reference data

Quick lookup tables

Virtual Switching · operational reference

Compact state/design/evidence reference for fast lookup.

PathPossible forwarding
VM↔VM same vSwitchLocal virtual switching
VM↔externalvSwitch → uplink
Tagged networkVirtual/physical VLAN policy
Routed/NATSeparate host/network boundary
Confirmation

Confirm action

Continue?