Networks inside one box — VMs, containers and VRFs
Modern networks rarely connect physical hosts directly. This chapter covers server virtualization (hypervisors and VMs), containers (Docker / Kubernetes), and VRFs (virtual routing tables on a single router) — and how they show up in modern networks.
What you'll learn
- Compare a VM and a container in terms of isolation and overhead.
- Explain what a hypervisor does (Type 1 vs Type 2).
- Describe a VRF and when an enterprise uses one.
Server virtualization — VMs and hypervisors
New to networking? Read this chapter for the big picture: one physical box can hold many virtual computers, switches and even routing tables. You will use these ideas again later in the course, so there is no need to master the details now. A hypervisor runs multiple guest operating systems on one physical host, each in its own virtual machine. Each VM has its own kernel and emulated hardware (vNIC, vDisk). Type 1 hypervisors (ESXi, Hyper-V, KVM) run directly on hardware; Type 2 (VirtualBox, Workstation) run on top of a host OS.
On the network side, VMs share the host's physical NIC through a virtual switch (vSwitch) — software that does L2 switching inside the hypervisor. This is why a 'server' on a network diagram might map to dozens of VMs on one box.
Containers — lighter than VMs, share the kernel
Containers (Docker, containerd, Podman) package an application with its dependencies and run as isolated processes that share the host's kernel. They boot in milliseconds and use a fraction of the memory of VMs. Kubernetes orchestrates thousands of containers across a cluster, scheduling them onto worker nodes and stitching them together with overlay networks.
From a network perspective: each container typically has a virtual interface (veth pair) bridged or routed onto the host's network namespace; pod-to-pod communication is handled by a CNI plugin (Calico, Cilium, Flannel).
8 more sections in this chapter, plus a 4-question quiz.
Create a free account to read Chapter 1.8 — Networks inside one box — VMs, containers and VRFs
You can see the title, summary, and learning objectives. To read the chapter and build the labs, create a free account — Module 1 is fully readable on the free plan.
- Read every chapter in Module 1 — How Networks Work
- Save labs of up to 5 devices
- Save up to 3 topologies
- See the full course syllabus + chapter titles
Free account · no card required · compare plans any time