1.12 Explain virtual machines, containers and VRFs
CCNA 200-301 v1.1 · 1.0 Network Fundamentals
One physical server can run many systems, and one router can run many routing tables. Virtual machines virtualise hardware with a hypervisor; containers share the host's kernel and package just an application; VRFs split a router into separate routing domains. For the CCNA you compare them and say where the network meets each one.
What you must know
- Explain what a hypervisor does and compare type 1 and type 2.
- Compare virtual machines with containers: isolation, size, start time.
- Describe virtual switching inside a host.
- Explain what a VRF is and why it allows overlapping addresses.
Virtual machines
A hypervisor shares a server's CPU, memory, storage and NICs between virtual machines, each with its own operating system. A type 1 (bare-metal) hypervisor such as VMware ESXi, Hyper-V or KVM runs directly on the hardware; a type 2 runs as an application on a desktop OS (VirtualBox, VMware Workstation). VMs inside a host connect to a virtual switch, which links their virtual NICs to the physical NICs and can tag VLANs toward the physical switch's trunk.
Containers
A container (Docker, run at scale by Kubernetes) packages an application with its libraries but shares the host's kernel. Containers are megabytes rather than gigabytes and start in seconds, so many more fit on one host; the price is weaker isolation than a VM. Network devices run containers too: Cisco IOS XE can host applications in containers alongside the routing software.
VRFs
A VRF (virtual routing and forwarding instance) gives a router or Layer 3 switch several independent routing tables. Each interface belongs to one VRF, and traffic in one VRF cannot reach another unless you leak routes between them. Two customers can both use 10.0.0.0/24 on the same router. Service providers use VRFs for customer VPNs; enterprises use them to separate guests, IoT or management traffic.
Commands
show vrf | VRFs on a router and their interfaces. |
show ip route vrf NAME | One VRF's routing table. |
docker ps / kubectl get pods | On a container host: the running containers. |
Exam traps
- Type 1 hypervisors run on bare metal; type 2 run on top of an operating system.
- Containers share the host kernel; VMs each run their own OS.
- VRFs allow overlapping addresses because each VRF has its own routing table.
- A virtual switch is a real switch for the network: its uplinks need trunks and VLANs.
Check yourself
- Is VMware ESXi a type 1 or type 2 hypervisor?
- Type 1 (bare metal).
- Why do containers start faster than VMs?
- They do not boot an operating system; they share the host's kernel.
- Two customers use 192.168.1.0/24 on one router. What makes that possible?
- Putting each customer's interfaces in its own VRF.
More topics in 1.0 Network Fundamentals
- 1.1 Explain what each kind of network component does
- 1.2 Describe common network topology designs
- 1.3 Compare cabling and physical interface types
- 1.4 Identify interface and cabling faults: collisions, errors, duplex or speed mismatch
- 1.5 Compare how TCP and UDP behave
- 1.6 Configure and verify IPv4 addresses and divide a network into subnets
- 1.7 Describe private IPv4 address space
- 1.8 Configure and verify IPv6 addresses and prefixes
- 1.9 Describe the IPv6 address types
- 1.10 Verify IP settings on Windows, macOS and Linux clients