Chapter 2
Virtualization Technologies
CertCrack.com runs its training platform on virtual machines in its small data centre, connects branches with tunnels, and keeps tenants apart with VRFs. Every technology in this chapter appears in that network, and every one of them is a different answer to the same question: how do you run more than one thing on one thing, without them seeing each other?
2.1 Device virtualization
2.1.1 Hypervisors: type 1 and type 2
Hypervisor — the software layer that creates and runs virtual machines. It divides one physical host's CPU, memory, storage, and network interfaces among several guests, schedules their access to the real hardware, and isolates each guest from the others. It is also called a Virtual Machine Monitor (VMM).
The whole of objective 2.1.a is one question: where does the hypervisor sit — because its position decides how much it costs in performance, in attack surface, and in what happens when the layer beneath it fails.
A type 1 (bare-metal) hypervisor installs directly on the hardware. There is no host operating system under it; the hypervisor is the first software that boots. VMware ESXi, Microsoft Hyper-V, KVM, and Citrix Hypervisor (Xen) are type 1. Because nothing sits between the hypervisor and the hardware, overhead is lowest, the attack surface is small — there is no general-purpose OS to patch and exploit — and the failure domain is clean. Type 1 is the data centre default.
A type 2 (hosted) hypervisor is an application. It installs on top of a conventional host operating system — Windows, macOS, or Linux — the way any other program does. VMware Workstation, VMware Fusion, Oracle VirtualBox, and Parallels Desktop are type 2. Guest I/O travels through the host OS's drivers and scheduler, so overhead is higher and performance less predictable, and the host OS is a full attack surface and a full failure domain: patch it, reboot it, compromise it, and every guest feels it. None of that makes type 2 wrong — it makes it placed: on a developer's laptop, in a training lab, in a test environment, anywhere convenience matters more than density and deterministic performance.

| Property | Type 1 (bare-metal) | Type 2 (hosted) |
|---|---|---|
| Sits on | Hardware directly | A host operating system |
| Overhead | Lowest available | Higher — I/O passes through the host OS |
| Attack surface | Small — no general-purpose OS | Full host OS to patch and protect |
| Failure domain | Host runs guests, nothing else | Host OS failure takes every guest with it |
| Typical place | Data centre, production | Laptop, lab, test environment |
| Examples | ESXi, Hyper-V, KVM, Xen | Workstation, Fusion, VirtualBox, Parallels |
2.1.2 The virtual machine
A virtual machine is a guest operating system plus its applications, running on virtual hardware the hypervisor presents: virtual CPUs, virtual RAM, virtual disks, virtual NICs. What the guest sees and what the host holds are different things — the guest believes it owns a disk; the host holds a file. The guest believes it owns a NIC; the host holds a virtual switch port. That gap is the whole trick, and the exam tests it by asking which side of the gap a given fact lives on: the guest's MAC address is real to the guest and virtual to the host; the guest's disk is a file the host can copy, snapshot, and move.
2.1.3 Virtual switching
Virtual machines on one host talk through a virtual switch inside the hypervisor — a software switch with ports for each VM's virtual NIC and uplinks to the host's physical NICs. A frame between two VMs on the same host never touches the physical network; a frame to the outside world leaves through an uplink. The virtual switch enforces the same ideas as a physical switch — VLAN tagging, port security, traffic shaping — and the exam's question is usually about where a frame goes: same host (virtual switch only), different host (uplink, physical network, and back down), or different VLAN (a router or Layer 3 boundary, virtual or physical).
If a question asks whether a type 2 hypervisor can host production workloads, the answer is about placement, not possibility. Type 2 can run anything — the question is whether the extra layer's cost in performance, attack surface, and failure domain is acceptable. "It works in a lab" is not the same claim as "it belongs in the data centre".
2.2 Data path virtualization
2.2.1 VRF: one router, many routing tables
VRF (Virtual Routing and Forwarding) — a separate routing table (RIB) and forwarding table (FIB) on one router. Each VRF is an independent routing instance: interfaces, routes, and protocols belong to a VRF, and a route in one VRF is invisible to another unless it is deliberately leaked or shared.
VRF exists to solve one problem: overlapping address space. Two tenants both use 10.1.0.0/16. On one shared router without VRF, that is a collision. With one VRF per tenant, the same prefix lives in two tables and never collides. The exam tests this with the same picture every time: two tenants, one box, identical addresses, no conflict — because the tables are separate.

VRF-Lite is VRF without MPLS: the separation is local to the device, and VRF awareness must be carried hop by hop (subinterfaces, separate links, or per-VRF routing protocols). Full MPLS VPNs carry the VRF identity across the provider with route targets; VRF-Lite does not — that is the boundary the exam draws. Verification to know: show ip vrf, show ip route vrf <name>, and ping vrf <name> <address> — a ping without the VRF name tests the global table, not the tenant's.
Two tenants on one shared edge router both number their networks 10.1.0.0/16. A ping from Tenant A to 10.1.0.5 succeeds, and a ping from Tenant B to 10.1.0.5 also succeeds — to a different host. What makes that possible, and what would a plain ping 10.1.0.5 from the router test?
Answer: Each tenant has its own VRF, so 10.1.0.0/16 exists in two separate routing tables. A plain ping tests the global routing table only — it says nothing about either tenant's VRF. Use ping vrf <name> to test a tenant's table.
2.2.2 GRE and IPsec tunneling
A GRE tunnel wraps one packet inside another: the original packet becomes the payload of a new IP packet addressed to the tunnel destination. GRE's job is encapsulation — it carries protocols and multicast that the underlay cannot, and it creates a logical point-to-point link between two routers that may be many hops apart. GRE by itself provides no encryption and no authentication. That is not a flaw in GRE; it is a fact about what GRE is for.
IPsec provides what GRE does not: confidentiality (ESP encryption), integrity, and authentication. The standard combination is GRE over IPsec — GRE for the encapsulation, IPsec for the protection — two tunnels, one path. The alternative is IPsec alone (a VTI, or crypto-map based), which protects traffic but cannot carry multicast or non-IP protocols the way GRE can.
| Property | GRE | IPsec | GRE over IPsec |
|---|---|---|---|
| Encapsulation | Yes — packet inside packet | ESP/AH headers, not a tunnel for other protocols | Both |
| Encryption | No | Yes (ESP) | Yes |
| Multicast / routing protocols | Yes | No (alone) | Yes |
| Key exchange | — | IKEv2 (UDP 500, NAT-T 4500) | IKEv2 |
2.2.3 Recursive routing: the tunnel that swallows itself
The classic GRE failure is recursive routing. A tunnel destination is reached through a route that points into the tunnel itself — so the router tries to encapsulate the tunnel packet inside the tunnel, forever. Symptoms: the tunnel flaps up and down, or never comes up. The fix is to make sure the route to the tunnel destination is learned through the underlay (a static route or an IGP route via the physical interface), never through the tunnel. When a tunnel flaps, check the route to the tunnel destination first.
2.2.4 IKEv2: four messages to a working tunnel
IPsec tunnels are negotiated by IKEv2 in two phases. Phase 1 (IKE_SA_INIT + IKE_AUTH) authenticates the peers and establishes a secure channel; Phase 2 (CREATE_CHILD_SA) negotiates the IPsec SAs that actually protect traffic. Four messages build a working tunnel. If Phase 1 fails, no traffic is protected and the usual suspects are mismatched pre-shared keys, wrong peer addresses, and NAT-T where UDP 4500 is blocked.
2.3 Network virtualization concepts
2.3.1 LISP: identity separated from location
LISP (Locator/ID Separation Protocol) splits an endpoint's identity (EID — who it is) from its location (RLOC — where it is). An ingress tunnel router (ITR) maps the destination EID to an RLOC by asking the mapping system; an egress tunnel router (ETR) registers its EIDs with the map server. The mapping system — map server and map resolver, speaking UDP 4342 — holds the database. Data-plane traffic is encapsulated between xTRs; control-plane registrations and requests go to the mapping system. LISP is also the control plane of SD-Access (Chapter 1): the same idea, applied to a campus fabric.
When a LISP site talks to a non-LISP site, a proxy (PxTR) stands in the middle: a PITR advertises the site's EIDs to the non-LISP world, and a PETR forwards traffic back into the LISP site. Without the proxy, LISP and non-LISP cannot reach each other at all.
2.3.2 VXLAN: Layer 2 over Layer 3
VXLAN — Virtual Extensible LAN. A MAC-in-UDP encapsulation that stretches a Layer 2 segment across a Layer 3 underlay. Each virtual network is identified by a 24-bit VNI (VXLAN Network Identifier) — about 16 million segments, against the VLAN's 4,094. VTEPs (VXLAN Tunnel Endpoints) encapsulate and decapsulate; the underlay only needs IP reachability between VTEPs. UDP destination port 4789.

Two ways to learn where a destination lives. Flood-and-learn uses multicast in the underlay: unknown destinations are flooded, and VTEPs learn from the replies — simple, and chatty at scale. BGP EVPN is the control plane: VTEPs advertise MAC and IP reachability as BGP routes (EVPN Type-2 routes carry MAC/IP bindings, Type-3 routes carry VTEP membership in a VNI), so flooding is replaced by a database. EVPN is the data centre default; flood-and-learn is the starting point the exam uses to explain what EVPN replaces.
| Property | Flood-and-learn | BGP EVPN |
|---|---|---|
| How destinations are learned | Multicast flooding in the underlay | BGP advertisements (Type-2 / Type-3) |
| Underlay requirement | Multicast enabled | IP reachability only |
| Scale | Limited — flooding grows with endpoints | Scales — a database, not a flood |
| Mobility | Re-flood on move | Route update on move |
Encapsulation comparison is a favourite question shape: GRE (packet in packet, no encryption), IPsec ESP (encryption, no multicast alone), VXLAN (MAC-in-UDP, 24-bit VNI, port 4789). The question gives a requirement — "carry multicast", "encrypt", "stretch Layer 2" — and exactly one encapsulation fits. Learn the requirement each one answers, not just its header.
Deep Dive — one packet, four virtualizations
The chapter's Deep Dive follows a single packet from a virtual machine at CertCrack.com HQ to a virtual machine at a branch, and counts the virtualizations it crosses: a virtual switch hands it to a virtual NIC; a VRF keeps it in Tenant A's table; a GRE tunnel carries it across the WAN, protected by IPsec; at the far end a VXLAN segment delivers it to a VM that believes it is on the same Layer 2 network as the sender. Four layers of "not really there", one packet, no contradiction — because each virtualization solves a different problem at a different layer, and none of them needs to know about the others.
Configuration Workshop — build the virtual network
- Two tenants, one router. Create VRFs RED and BLUE on a lab router, assign one interface to each, and put 10.1.0.0/16 in both. Verify with
show ip route vrf REDandshow ip route vrf BLUE— then prove the isolation withping vrf RED 10.1.0.5. - GRE over IPsec. Build a GRE tunnel between two routers, confirm OSPF or EIGRP forms across it, then protect it with IPsec (IKEv2). Break it deliberately: point the route to the tunnel destination through the tunnel and watch recursive routing flap it.
- VXLAN on paper. Draw two VTEPs, one VNI, and one VM at each end. Label the inner frame, the VXLAN header (VNI), the UDP header (port 4789), and the outer IP header. Then answer: what does the underlay need to know? (Only how to reach the far VTEP.)
In a virtual lab (EVE-NG, CML, or GNS3), build the workshop's VRF pair and GRE tunnel on virtual routers. Type 2 hypervisors are the right tool for this lab — the chapter's own placement rule, applied to your study.
Common mistakes and exam traps — Virtualization
| Trap | Truth |
|---|---|
| Type 2 is "worse" than type 1, always | Type 2 is placed differently — lab and laptop, not data centre — not worse in the abstract |
| A ping tests a VRF | A plain ping tests the global table; use ping vrf <name> |
| GRE encrypts traffic | GRE provides no encryption; add IPsec (GRE over IPsec) |
| VNI is 12 bits like a VLAN ID | VNI is 24 bits — about 16 million segments |
| LISP floods to find endpoints | LISP looks up: map request to the mapping system, then tunnel directly |
End-of-chapter check questions (multiple choice)
Answer these without looking back, then check against the key. Each question has one correct answer. These questions are written fresh for this guide — they are not the book's mock-test questions.
A data centre host runs a hypervisor installed directly on the server hardware, with no general-purpose operating system underneath it. How is this hypervisor classified, and where does it belong?
A) Type 2 — it belongs in the data centre B) Type 1 — it belongs in the data centre C) Type 2 — it belongs only on a laptop D) Neither type — classification depends on the number of guests
What is the single structural difference between a type 1 and a type 2 hypervisor?
A) The number of virtual machines each can host B) Whether a host operating system sits between the hypervisor and the hardware C) Whether the guests run their own operating systems D) Whether the hypervisor supports virtual switching
Two virtual machines on the same host exchange frames. Which device forwards those frames, and does the traffic touch the physical network?
A) The physical switch; yes B) The virtual switch inside the hypervisor; no C) The host operating system; yes D) The default gateway; no
Two tenants on one shared router both use 10.1.0.0/16. What makes this possible without a collision?
A) NAT rewrites one tenant's addresses B) Each tenant has its own VRF — a separate routing and forwarding table C) The router runs two routing protocols D) The tenants are placed in different VLANs
From a router with VRFs configured, which command tests reachability inside VRF BLUE?
A) ping 10.1.0.5 B) ping vrf BLUE 10.1.0.5 C) show ip route D) traceroute vrf BLUE without a destination
GRE is chosen to carry routing-protocol multicast across a WAN. What must be added if the traffic must also be encrypted?
A) Nothing — GRE encrypts by default B) A second GRE tunnel C) IPsec — GRE over IPsec D) A VRF on each tunnel endpoint
A GRE tunnel flaps up and down continuously. The most likely cause is:
A) The tunnel destination is reached through a route that points into the tunnel itself — recursive routing B) The tunnel MTU is too large C) IPsec Phase 2 failed D) The tunnel endpoints use different VRFs
In LISP, which component holds the database mapping endpoint identities (EIDs) to locations (RLOCs)?
A) The ingress tunnel router (ITR) B) The mapping system — map server / map resolver C) The proxy tunnel router (PxTR) D) The egress tunnel router (ETR) alone
How many bits is a VXLAN Network Identifier (VNI), and what does that buy compared with a VLAN ID?
A) 12 bits — the same as a VLAN ID B) 16 bits — about 65,000 segments C) 24 bits — about 16 million segments D) 32 bits — one segment per IP address
What is the key difference between flood-and-learn VXLAN and BGP EVPN VXLAN?
A) Flood-and-learn uses BGP; EVPN uses multicast B) Flood-and-learn learns destinations by underlay multicast flooding; EVPN advertises reachability as BGP routes C) EVPN cannot carry Layer 2 D) Flood-and-learn uses a 12-bit VNI; EVPN uses a 24-bit VNI
Answer key
ping vrf BLUE 10.1.0.5. A plain ping tests the global table.Chapter 2 — based on the Cisco 350-401 ENCOR v1.2 exam objectives for Domain 2.0. Unofficial study material — not affiliated with or endorsed by Cisco Systems, Inc.
Want the full CCNP Enterprise Core (350-401 ENCOR) package?
Read this guide free. Then prove you're ready with 900 original practice questions, instant explanations, 36 interactive PBQ labs, and 3 months of online access — plus the downloadable PDF of this guidebook.
Get CCNP ENCOR Full Access — $10