Overview

Create virtual switches

A virtual switch connects virtual machines to each other, to the host and to the outside network. Pick the right type for each job before you build any VMs.

4 minute readFor IT technicians and network managersReviewed 15 November 2026
What improves

VMs get the right kind of network connection from the start.

Why it matters

The wrong switch type leaves a VM with no internet, or exposes it to a network it should not be on.

How you do it

Choose between External, Internal and Private, then create the switches in PowerShell.

Every name, address and value in this guide is an example. Replace them with your own.

The three types

TypeVMs can reachUse it for
ExternalEach other, the host and the physical networkThe firewall's internet side, or servers on the school network
InternalEach other and the hostA network behind a virtual firewall that the host also needs to reach
PrivateEach other onlyAn isolated test network

What you will have at the end

SwitchTypeFor
CON-WANExternal, or Internal with NATThe firewall's internet side
CON-LANInternalThe school network behind the firewall
CON-TESTPrivateIsolated test machines

The route

  1. Create the switches
  2. Give a Wi-Fi-only host a NAT switch

    Only if the host has no wired card.

  3. Put VMs on VLANs

    Tag a VM's card, or trunk a firewall's.

Your progress is kept in this browser only.