Skip to content

Create and configure a virtual switch with Hyper-V — by Microsoft Learn

intermediatepageLink only (©)

Explains the three virtual switch types (external, internal, private) and how to create one in Hyper-V Manager or with New-VMSwitch. It also covers sharing the host adapter with the management OS, VLAN IDs, and a NAT option for Windows clients; creating an external switch can briefly interrupt the host's network connection.

Quick steps

  1. Hyper-V Manager, Actions, Virtual Switch Manager, choose a type and Create Virtual Switch
  2. External switch in PowerShell: New-VMSwitch -Name <switch-name> -NetAdapterName <netadapter-name>
  3. Internal or private: New-VMSwitch -Name <switch-name> -SwitchType Internal (or Private)

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on learn.microsoft.com

Source: Create and configure a virtual switch with Hyper-V by Microsoft Learn. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

hyper-vvirtual switchvm networkingnat

More in Sandbox & Virtualization