Lessons › Servers & virtualisation
Virtual networking: switches inside the server
▶ Start the interactive lesson
The first two hosts are racked. You plug them into the core switch, install the hypervisor, and build a test VM. It boots fine. It can't ping anything. Your manager smiles. "The VM is plugged into a switch you can't see. Let's find it."
The virtual switch
Each host runs a virtual switch (vSwitch) in software. VMs plug their virtual network cards into it, just like PCs plug into a real switch.
VLANs: trunk to the host
A host usually carries many VLANs: servers, DMZ, management, backup. So the physical switch port facing the host is a trunk, not an access port.
Keep the important traffic apart
Hosts carry several kinds of traffic: VM traffic, host management, live migration and storage. Good designs put each on its own VLAN, and often on its own uplinks.
Key points
- VMs plug into a virtual switch; the vSwitch reaches the network through physical uplinks.
- Hosts carry many VLANs, so the physical port is a trunk. The VLAN on the VM and the VLANs allowed on the trunk must match.
- Separate VM, management, migration and storage traffic, and lock down management.
Words you'll learn
Virtual switch / vSwitch · Uplinks · Port group · Trunk · Live migration / vMotion · NIC teaming