Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Virtual Switch

Direct answer

A Hyper-V virtual switch is a software switch in the host. Virtual machines plug into it; an External switch connects them to the physical network, an Internal one to the host only, a Private one just to each other.

When to use this

Use it when a virtual machine has link and no connectivity, or before creating or changing a switch on a host you reach over the network.

First 30 seconds

1. Hyper-V vSwitch types: External (uplink), Internal (host + VMs), Private (VMs only).

2. Use Switch Embedded Teaming (SET) for redundancy.

3. Converged networking: host vNICs for management, live migration, storage.

4. Same switch names on all cluster nodes.

5. Consider VMQ/RSS settings.

Operational verification

vNIC → Hyper-V vSwitch port → SET team → physical NICs

Evidence · next step

Follow the packet in both directions from guest vNIC through vSwitch and any physical uplink.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common interpretation traps
  • "The adapter is connected to a switch, so the machine is on the network." An internal or private switch does not reach the physical network.
  • "The VLAN is set on the virtual machine, so it is done." The physical port must be a trunk carrying that VLAN.
  • "The host's address is on the physical adapter." With a shared external switch it is on vEthernet (<switch>).
  • "Creating an external switch is harmless." It takes over the physical adapter; do it from the console, not over that connection.
  • "The guest shows link up, so the path works." A virtual adapter has link whenever it is connected to any switch.
  • "After a live migration the network is the same." Only if the destination host has a switch with the same name and the same VLANs behind it.
Common traps

It does not show IP/DNS/application health from switch connectivity alone.

Next check: Follow the packet in both directions from guest vNIC through vSwitch and any physical uplink.

Platform / version applicability
hyper-v
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.

Platformhyper-v
Scope / prerequisiteUse it when a virtual machine has link and no connectivity, or before creating or changing a switch on a host you reach…
What next?3 suggested next steps
Child topics (this level)3
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.

3 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 path Verify boundary

Guest stack → VM vNIC → Hyper-V vSwitch/port policy → management OS or physical NIC → external network → return path

Step 2 Operational verification Verify boundary

External/internal/private Hyper-V switches, adapters, VLAN behavior and VM network path verification.

Fast verification

  • Verify switch type/uplink with Get-VMSwitch and VM vNIC attachment with Get-VMNetworkAdapter.

- Check VLAN mode/IDs and host management-OS sharing where applicable.

- Trace guest vNIC → vSwitch → physical NIC → physical switch; link-up in the guest shows only the first segment.

Step 3 Verification & troubleshooting Narrow the fault

Path: Virtualization → Hyper-V → Virtual Switch. Local intent: Hyper-V Virtual Switch is the software Layer-2 switching construct that connects Hyper-V virtual NICs to other VMs, the management OS and/or a physical adapter according to switch type and policy.

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
Drill down

Subtopics

Go one level deeper into this subject.

Key points

A VLAN ID set on the virtual adapter needs a trunk on the physical switch port. With a shared external switch, the host's own address lives on vEthernet (<switch>). Creating an external switch takes over the physical adapter and interrupts its connection.

Key checks
  • Get-VMSwitch | ft Name,SwitchType,NetAdapterInterfaceDescription,AllowManagementOS — switches
  • Get-VMSwitchTeam — SET teams
  • Get-VMNetworkAdapter -ManagementOS — host vNICs
ReferenceWhat it is1 section · depth on demand

Mental model

A Hyper-V virtual switch is a software Ethernet switch inside the host. Virtual machines' network adapters plug into it, and — depending on its type — it connects them to the physical network, to the host only, or just to each other.

ReferenceWhy it matters2 sections · depth on demand

When to use it

Use this Topic when the problem is in Virtual Switches. Use Hyper-V when the problem concerns hypervisor, VM/container lifecycle, virtual networking, cluster, storage or capacity.

Why it matters operationally

A virtual machine with no network is usually a virtual switch question: is its adapter connected to the right switch, is that switch bound to the right physical adapter, and does the VLAN setting match the physical switch port? These are checked on the host, in a minute, before anyone looks inside the guest.

ReferenceHow it works1 section · depth on demand

How it works

Three types.

TypeConnects virtual machines to
ExternalThe physical network, through a physical adapter of the host
InternalEach other and the host
PrivateEach other only

External switches. The physical adapter is taken over by the switch and becomes its uplink. If Allow management operating system to share this network adapter is selected, the host gets a virtual adapter of its own on the switch — named vEthernet (<switch>) — and the host's IP configuration lives there. Creating an external switch on the adapter that carries the host's management connection interrupts that connection briefly, or for good if sharing is not selected.

VLANs. By default a virtual machine's adapter sends and receives untagged frames. To place it in a VLAN:

Set-VMNetworkAdapterVlan -VMName <name> -Access -VlanId 20

The physical switch port behind the host must then be a trunk that carries that VLAN. A tag set on the virtual adapter with an access port on the physical switch — or the reverse — gives a machine with link and no connectivity.

Teaming. Several physical adapters can serve one switch through Switch Embedded Teaming, giving redundancy and more capacity.

Per-adapter settings include MAC address (dynamic or static), MAC address spoofing — needed when the guest itself forwards frames for other addresses, as with nested virtualisation or some load balancers — and DHCP guard and router guard, which stop a guest from acting as a DHCP server or router.

Looking at it.

Get-VMSwitch
Get-VMNetworkAdapter -VMName <name>
Get-VMNetworkAdapterVlan -VMName <name>
Get-VMNetworkAdapter -ManagementOS

Get-VMSwitch shows each switch, its type and the physical adapter behind it; Get-VMNetworkAdapter shows which switch a machine's adapter is on, its MAC address, its status and the addresses the guest reports.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A present/connected vSwitch shows a virtual forwarding object exists, but it does not show upstream switch, VLAN, IP or application health.

Key operational limits

  • Snapshots/checkpoints are not independent backups
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 dochyper-v current

Authoritative/upstream documentation reviewed for bounded claims in Hyper-V → Virtual Switch. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/ · confidence 94%
Terminology layer

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.

Aliases that resolve here
hyper-v virtual switchvswitchhyper-v switch
Embedded reference data

Quick lookup tables

Hyper-V → Virtual Switch reference map

Fast Hyper-V boundaries for Hyper-V → Virtual Switch.

BoundaryMeaningEvidence limit
ExternalVM ↔ physical network pathStill needs uplink/upstream
InternalVM ↔ VM + management OSNo direct external uplink
PrivateVM ↔ VM on hostNo management OS/external path
PolicyVLAN/MAC/other settingsConfigured ≠ packet passed
Confirmation

Confirm action

Continue?