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.
Virtual Switch
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.
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.
vNIC → Hyper-V vSwitch port → SET team → physical NICs
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
- "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.
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.
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
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-VMSwitchand VM vNIC attachment withGet-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 · 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.
Subtopics
Go one level deeper into this subject.
An External Hyper-V virtual switch connects VM vNICs to a selected physical network adapter so VM traffic can reach the physical network; the management OS can optionally share that adapter through its own virtual NIC.
Subtopic InternalAn Internal Hyper-V virtual switch connects VMs to each other and to a virtual network adapter in the management OS, without directly bridging that switch to a physical NIC.
Subtopic PrivateA Private Hyper-V virtual switch connects VMs attached to that switch on the same host while excluding both the management OS and any direct physical uplink.
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.
Get-VMSwitch | ft Name,SwitchType,NetAdapterInterfaceDescription,AllowManagementOS— switchesGet-VMSwitchTeam— SET teamsGet-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.
| Type | Connects virtual machines to |
|---|---|
| External | The physical network, through a physical adapter of the host |
| Internal | Each other and the host |
| Private | Each 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
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 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%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
Hyper-V → Virtual Switch reference map
Fast Hyper-V boundaries for Hyper-V → Virtual Switch.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| External | VM ↔ physical network path | Still needs uplink/upstream |
| Internal | VM ↔ VM + management OS | No direct external uplink |
| Private | VM ↔ VM on host | No management OS/external path |
| Policy | VLAN/MAC/other settings | Configured ≠ packet passed |