Chapter 7. Virtual Networking

More often than not, you want virtual machines to be able to reach the physical world, and the only way they can accomplish that is through virtual switches. Virtual switches are software-only devices and exist solely in the VMkernel on your ESX host. Think of them as the bridge that your virtual machines cross to get to your physical network.

In this chapter, we examine how to setup virtual switches, connect virtual machines to them, how to make virtual switches fault tolerant, and how to assign various policies to ports on a virtual switch.

Virtual Switch Options

Many configuration options exist for virtual switches. You can assign virtual local area networks (VLANs) and security as well as limit the amount of traffic that virtual machines can generate. Additionally, you can assign many NICs to a virtual switch for load balancing and fault tolerance. NICs are called uplink adapters. Multiple uplink adapters are a wise choice for production environments.

Tip

If you want an isolated virtual network — for testing or any other reason — you can set up a virtual switch without an uplink adapter. Any virtual machines plugged in to a disconnected switch can see only each other: They can never see the outside world or virtual machines connected to any other virtual switch. This lets you create a great isolated test environment.

However, if you want your test environment to access the outside world, you certainly can. Virtual machines can be set up with two network ...

Get VMware® Infrastructure 3 FOR DUMMIES® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.