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

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 vrfVRFs on a router and their interfaces.
show ip route vrf NAMEOne VRF's routing table.
docker ps / kubectl get podsOn a container host: the running containers.

Exam traps

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