Hello! Welcome to the tenth module of our course, "Network Virtualization."
In our previous lessons, we focused on connecting and securing geographically separate sites using technologies like IPsec and DMVPN. We were operating at the macro level of the wide-area network. Now, we are shifting our focus inward, from the connections between data centers and branch offices to the virtual infrastructure that runs inside them. This is a critical area for modern network engineers, as the line between network and compute has become increasingly blurred.
This lesson addresses the learning outcome: Explain server virtualization concepts including hypervisors and virtual switches. We'll start from the ground up, exploring why we virtualize servers and then diving into the two key components that make it possible. This foundational knowledge is not only essential for the ENCOR exam but is also the bedrock for understanding more advanced topics we'll cover soon, such as Network Function Virtualization (NFV) and Software-Defined Access (SD-Access).
1. The "Why": Solving Server Sprawl
Before virtualization became mainstream, the standard practice was a "one application, one server" model. This led to a phenomenon known as server sprawl, where data centers became filled with hundreds or thousands of physical servers, each running a single application and often being severely underutilized.
This created significant challenges:
- High Capital Expenditures (CapEx): The constant need to purchase new physical servers.
- High Operational Expenditures (OpEx): Massive costs for power, cooling, and physical rack space.
- Inefficiency: Most servers were idle much of the time, wasting resources.
- Slow Deployment: Provisioning a new physical server for an application could take days or weeks.
Server virtualization addresses these problems by allowing a single, powerful physical server to host multiple independent "virtual machines" (VMs).
Hypervisor type 1 and 2 Tutorial
To understand the business and technical drivers behind virtualization, please read the following section from the 'Hypervisor type 1 and 2 Tutorial'.
Read the section titled 'Benefits of Virtualizing'. Focus on how server consolidation helps reduce both CapEx and OpEx.
2. The "How": Introducing the Hypervisor
The magic behind server virtualization is a piece of software called a hypervisor, or Virtual Machine Monitor (VMM). The hypervisor is responsible for abstracting the physical hardware (CPU, memory, storage, networking) and presenting virtualized versions of that hardware to each VM. The physical server is called the host, and the VMs running on it are called guests.
Hypervisors are broadly categorized into two types, and understanding their architectural differences is fundamental.
Type 1 vs. Type 2 Hypervisors
What's the difference between Type 1 vs. Type 2 hypervisor?
This article from TechTarget provides a professional, in-depth explanation of the two hypervisor types. As a solutions engineer, you will appreciate the focus on enterprise use cases, performance, and security implications.
Please read the following sections: 'What are hypervisors?' 'Type 1 hypervisors' 'Type 2 hypervisors' 'Key differences between Type 1 and Type 2 hypervisors' Pay close attention to how the hypervisor's position in the software stack (bare-metal vs. hosted) impacts performance, security, and typical use cases.
To reinforce those concepts with a more visual explanation, the following video provides clear examples and analogies.
Type 1 vs. Type 2 Hypervisors: What's the Difference?
This video offers a concise, visual walkthrough of the differences between Type 1 and Type 2 hypervisors.
Watch the segment from 12:18 to 14:51. This will clearly illustrate the architectural diagrams for both types and provide common product examples like VMware ESXi and Oracle VirtualBox.
Here is a summary of the key distinctions:
| Feature | Type 1 Hypervisor (Bare-Metal) | Type 2 Hypervisor (Hosted) |
|---|---|---|
| Architecture | Installs directly on the physical hardware. The hypervisor is the OS. | Installs as an application on top of a conventional host OS (e.g., Windows, macOS, Linux). |
| Performance | High. Direct access to hardware resources results in low overhead. | Lower. Competes for resources with the host OS and has an extra software layer to traverse. |
| Security | More secure. Isolation between VMs is strong, and the attack surface is smaller. | Less secure. A vulnerability in the host OS can potentially compromise all guest VMs. |
| Use Case | Enterprise data centers, cloud computing, production workloads. | Desktops, development, testing, running applications from a different OS. |
| Examples | VMware ESXi, Microsoft Hyper-V, KVM, Citrix Hypervisor. | VMware Workstation, Oracle VirtualBox, Parallels Desktop. |
For your work in enterprise networking and for the CCNP exam, Type 1 hypervisors are the primary focus, as they form the foundation of modern data centers and private clouds.
3. Virtual Networking: The Virtual Switch
Now for the part that matters most to a network professional: how do these VMs communicate? Each VM has one or more virtual Network Interface Cards (vNICs). To connect these vNICs to each other and to the outside world, the hypervisor includes a virtual switch (vSwitch).
A vSwitch is a software-based Layer 2 switch that runs inside the hypervisor. It allows VMs on the same host to communicate with each other directly, with the traffic never leaving the physical server. This is extremely fast as it all happens in memory.
To connect to the physical network, the vSwitch uses the physical NICs of the host server as uplinks.
This diagram illustrates the complete architecture:

Virtual Switch Deep Dive: Components and VLANs
Just like a physical Cisco switch, a vSwitch has its own set of components and configurations. The most common implementation you'll encounter is VMware's vSphere, so we will use it as a practical example.
Understanding VMware Virtual Switches.. Explanations of VLANS, Teaming and More..
This video provides an excellent and detailed look inside a VMware vSwitch. It demonstrates concepts that are directly applicable to your role and the ENCOR exam.
Please watch the following two segments: Components of a Standard Switch (02:15 - 05:40): Focus on the definitions of uplinks (physical NICs), Virtual Machine Port Groups, and VMkernel Port Groups (used for management traffic like vMotion and IP storage). VLAN Tagging Methods (15:41 - 25:10): This is critical. Pay close attention to the three methods: External Switch Tagging (EST), Virtual Switch Tagging (VST), and Virtual Guest Tagging (VGT). Understand how each method determines where the 802.1Q tag is added or removed.
Let's summarize the VLAN tagging methods, as this is a frequent point of confusion:
-
External Switch Tagging (EST):
- How it works: The vSwitch does no tagging. The physical switch port connected to the host's uplink is configured as an access port in a specific VLAN.
- Analogy: The vSwitch port group acts like a simple hub, and the physical switch handles all VLAN assignment.
- Use Case: Simple, but inflexible. Requires a dedicated physical uplink for each VLAN.
-
Virtual Switch Tagging (VST):
- How it works: The vSwitch port group is assigned a VLAN ID. The vSwitch adds the 802.1Q tag before sending traffic out the uplink. The physical switch port connected to the host's uplink must be configured as a trunk port.
- Analogy: This is the most common method and is analogous to a standard trunk link between two physical switches.
- Use Case: The standard for carrying multiple VLANs to a single host over a shared uplink.
-
Virtual Guest Tagging (VGT):
- How it works: The vSwitch passes all frames through without modification. A special 802.1Q trunking driver is installed inside the guest OS of the VM, which handles the tagging itself. The vSwitch port group is set to a special trunk mode (VLAN ID 4095 in VMware), and the physical switch port is also a trunk.
- Analogy: The VM itself is behaving like a small router or switch connected to a trunk port.
- Use Case: Rare. Used when a single VM needs to be on many VLANs simultaneously (e.g., a virtual firewall or IDS).
Test your understanding!
You are configuring a new virtual machine that needs to be in VLAN 100. The ESXi host's physical NIC is connected to a Cisco switch port configured with switchport mode trunk.
Which VLAN tagging method should you use on the vSwitch, and what VLAN ID would you configure on the VM's port group?
Show answer
You should use Virtual Switch Tagging (VST). Because the physical switch port is a trunk, it expects to receive 802.1Q tagged frames. You would configure the port group that the VM is connected to with VLAN ID 100. The vSwitch will then tag all outbound traffic from that VM with VLAN 100 before sending it over the trunk to the Cisco switch.
Conclusion
In this lesson, we have moved from the physical to the virtual world, establishing the foundational concepts of server virtualization. As a network engineer, you are no longer just responsible for the physical cables and switches; you must also understand the virtual networking environment where modern applications live.
Key Takeaways:
- Server Virtualization solves issues of cost, space, and underutilization by running multiple isolated Virtual Machines (VMs) on a single physical host.
- The Hypervisor is the core software that enables this. Type 1 (bare-metal) hypervisors run directly on hardware and are used in data centers, while Type 2 (hosted) hypervisors run on top of a desktop OS.
- Virtual Switches (vSwitches) provide Layer 2 connectivity between VMs using vNICs. They connect to the physical network via uplinks.
- Virtual Switch Tagging (VST) is the most common method for handling VLANs, where the vSwitch tags traffic and the physical switch uplink port is a trunk.
Preview of the Next Lesson:
We've just seen how a hypervisor can run a virtualized general-purpose server (like Windows or Linux). What if we could take a network appliance, like a router, firewall, or load balancer, and run it as a VM on a generic server? That is the core idea behind our next topic: describing the concept of Network Function Virtualization (NFV). We will see how the principles of server virtualization are applied to transform how we build and deploy network services.