Chapter 5. Configuring vSphere Distributed Switches

This chapter covers the following subjects:

Image vSphere Distributed Switch Capabilities

Image Creating/Deleting a vSphere Distributed Switch

Image Adding/Removing ESXi Hosts from a vSphere Distributed Switch

Image Adding/Configuring/Removing dvPort Groups

Image Adding/Removing Uplink Adapters to dvUplink Groups

Image Configuring vSphere Distributed Switch General and dvPort Group Settings

Image Creating/Configuring/Removing Virtual Adapters

Image Migrating Virtual Adapters to/from a vSphere Standard Switch

Image Migrating Virtual Machines to/from a vSphere Standard Switch

Image Configuring LACP on Uplink Port Groups

Image Determining Use Cases for a vSphere Distributed Switch

Now that you understand what a virtual switch does and that consistency of configuration is a key component, what if I were to tell you that there is a way to guarantee consistency by associating a virtual switch to more than one host at the same time? That’s what a vDS does.

A vDS is the same as a vSS in many ways, except that it can be connected to more than one host at the same time, which makes a radical difference. I know what you’re thinking: “Is it similar to a vSS or radically different?” Well, in a word, “Yes.” It’s similar in that it uses the same types of connections (namely, VMkernel ports and VM port groups). It’s also similar in that the point at which the virtual world meets the physical world is an important thing to know and understand. However, it’s radically different because it is managed centrally in the vCenter and can be connected to multiple hosts at the same time. In fact, a single vSphere 6.0 vDS can be connected to as many as 1,000 hosts. Because of this difference, vDSs come with a whole new set of terms to understand.

In this section, I discuss the capabilities of a vDS, along with creating and deleting a vDS and adding and removing ESXi hosts. In addition, this section covers adding, configuring, and removing dvPort groups and dvUplinks (new terms in vDSs). A vDS also has virtual adapters just like a vSS, except that they can be connected to more than one host. You learn about creating, configuring, migrating, and removing virtual adapters, as well as migrating VMs to and from a vDS. In addition, you learn how to determine a use case for a vSphere distributed switch.

“Do I Know This Already?” Quiz

The “Do I Know This Already?” quiz allows you to assess whether you should read this entire chapter or simply jump to the “Exam Preparation Tasks” section for review. If you are in doubt, read the entire chapter. Table 5-1 outlines the major headings in this chapter and the corresponding “Do I Know This Already?” quiz questions. You can find the answers in Appendix A, “Answers to the ‘Do I Know This Already?’ Quizzes and Chapter Review Questions.”

Image

Table 5-1 “Do I Know This Already?” Section-to-Question Mapping

1. Which view should you be in to create a new vDS?

a. Hosts and Clusters

b. Networking

c. VMs and Templates

d. You can create a vDS in any view.

2. What is the minimum number of hosts that you can connect to a vSphere 6.0 vDS?

a. 500

b. 10

c. 1,000

d. 1

3. Which is the maximum number of hosts that can be added to a single vDS?

a. 1,000

b. 50

c. 10,000

d. There is no limit.

4. Which of the following is a capability of a vDS but not of a vSS?

a. Outbound traffic shaping

b. Ingress traffic shaping

c. VLAN segmentation

d. NIC teaming

5. What is the maximum number of uplinks that you can configure for each LAG on a vDS?

a. 10

b. 100

c. 24

d. 32

6. What is the minimum level of licensing required to support a vDS?

a. Enterprise

b. Enterprise Plus

c. Standard

d. Essentials Plus

7. Which of the following is not a part of the configuration of a VMkernel port?

a. IP address

b. Subnet mask

c. Default gateway

d. DNS address

8. What is the minimum number of ports that you can have on a LAG on a vSphere 6.0 vDS?

a. 1

b. 2

c. 32

d. 10

9. Which of the following are valid methods to migrate multiple VMs from a vSS onto a vDS? (Choose two.)

a. Change the vnic setting for each VM.

b. Use the Migrate Virtual Machine Wizard.

c. Storage vMotion

d. DRS

10. Which of the following can be configured on vDS, but not on a vSS? (Choose two.)

a. Inbound traffic shaping

b. Outbound traffic shaping

c. Private VLANs

d. NIC teaming

Foundation Topics

vSphere Distributed Switch Capabilities

It’s likely that you want to know what vDSs can do that vSSs cannot do. In other words, “Why should I consider using one instead of the other?” In fact, a large list of features are specific to a vDS, but to really understand them, you need to see what they both can do and then what only the vDS can do. Table 5-2 illustrates the features that are common between vSSs and vDSs and then those that are unique to vDSs.

Image

Table 5-2 vSS Capabilities Versus vDS Capabilities

Image

The following briefly describes each of the features available on a vDS that are not available on a vSS:

Image Inbound traffic shaping: A port group setting that can throttle the aggregate bandwidth inbound to the switch. This might be useful for a port group containing VMs that are being used as web servers.

Image VM network port block: Specific ports can be configured as “blocked” for a specified VM’s use. This might be helpful for troubleshooting or for advanced configurations.

Image Private VLANs: This is a vSphere implementation of a VLAN standard that is available on the latest physical switches. With regard to vSphere, private virtual local-area networks (PVLANs) can be created in the vSphere that are used only in the vSphere and not on your external network. In essence, a PVLAN is a VLAN within a VLAN. In addition, the PVLANs in your vSphere can be kept from seeing each other. Chapter 6, “Configuring vSS and vDS Features,” covers PVLANs in greater depth.

Image Load-based teaming: You can configure network load balancing in a much more intelligent fashion than with vSSs by enabling the system to recognize the current load on each link before making frame forwarding decisions. This could be useful if the loads that are on each link vary considerably over time.

Image Data-center-level management: A vDS is managed from the vCenter as a single switch from the control plane, even though many hosts are connected to each other at the I/O plane. This provides a centralized control mechanism and guarantees consistency of configuration.

Image Network vMotion: Because a port group that is on a vDS is connected to multiple hosts, a VM can migrate from one host to another without changing port groups. The positive effect of this is that the attributes assigned to the port group (such as security, traffic shaping, and NIC teaming) migrate as well.

Image vSphere switch APIs: Third-party switches have been and are being created that can be installed in the control plane. On switches such as the Cisco Nexus 1000v, the true essence of the switch is installed into the vCenter as a virtual appliance (VA).

Image Per-port policy settings: Most of the configuration on a vDS is at the port group level, but it can be overridden at the individual port level. This allows you tremendous flexibility with regard to port settings such as security, traffic shaping, and so on.

Image Port state monitoring: Each port on vDS can be managed and monitored independently of all other ports. This means that you can quickly identify an issue that relates to a specific port.

Image Link Layer Discovery Protocol: Similar to Cisco Discovery Protocol (CDP), Link Layer Discovery Protocol (LLDP) enables vDSs to discover other devices, such as switches and routers, that are directly connected to them. The advantage of LLDP is that it is an open protocol that is not proprietary to Cisco.

Image User-defined network I/O control: You can set up a quality of service (QoS) (of a sort), but instead of defining traffic paths by protocols, you can define the traffic paths by types of VMware traffic. In earlier versions of vDSs, you could define traffic as vMotion, Management, and others, but now you can define your own categories. This adds to flexibility in network control and design.

Image NetFlow: You can use the standard for traffic monitoring, NetFlow, to monitor, analyze, and log traffic flows in your vSphere. This enables you to easily monitor virtual network flows with the same tools that you use to monitor traffic flows in the physical network. Your vDS can forward NetFlow information to a monitoring machine in your external network.

Image Port mirroring: Most commonly used with intrusion detection systems (IDSs) and intrusion prevention systems (IPSs), port mirroring provides for a copy of a packet to be sent to a monitoring station so that traffic flows can be monitored without the IPS/IDS skewing the data. Port mirroring is new to vSphere 5.x and later vDSs.

Image Backup, Restore, Import, Export Configuration: You can back up a configuration of a vDS so that it can easily be restored later or even exported from one vDS and imported onto another one. This saves time and increases network flexibility.

Image LACP: Link Aggregation Control Protocol (LACP) allows for the combining of multiple physical links into one logical link for the purposes of fault tolerance and load balancing.

Creating/Deleting a vSphere Distributed Switch

The first thing to consider if you want to create a vDS is your license level, because, for the most part, they can be created only with an Enterprise Plus license. You probably could create them with the 60-day evaluation license, but you would then need to purchase an Enterprise Plus license before the evaluation period expires; otherwise, your switch would cease to function. You also must consider the level of hosts that you have in the data center onto which you are adding the switch, because this will impact the version of the switch that you create. So, to begin to create a new vDS, follow the steps outlined in Activity 5-1.


Note

In the first quarter of 2016, VMware allowed that a vSphere Distributed Switch could be created and used with a Standard license and an accompanying NSX license. (See Knowledge Base Article 2135310.) This is an exception to the rule; assume for test purposes that an Enterprise Plus license is required to support a vSphere Distributed Switch, unless you are specifically given information regarding NSX.


Image
Deleting a vDS

You might assume that deleting a vDS would just be a matter of right-clicking it and selecting to remove it. This is almost true. However, you first need to remove the hosts and the port groups from the vDS. Then you can right-click it and select to remove it. The next two sections cover (among other topics) removing hosts and port groups from a vDS. When you know how to do that, deleting the vDS is as simple as right-clicking and selecting Remove from Inventory under All vCenter Actions.

Adding/Removing ESXi Hosts from a vSphere Distributed Switch

You can add hosts to a vDS after you have created it. In the following activities, you first see how to add a host to an existing vDS, and then you learn how to remove a host from an existing vDS.

To add a host to an existing vDS, follow the steps outlined in Activity 5-2.

Image

To remove a host from an existing vDS, follow the steps outlined in Activity 5-3.

Image

Adding/Configuring/Removing dvPort Groups

As you might remember, port groups allow you to get more than one set of attributes out of the same switch. This is especially true with vDS port groups. The port groups that you create on a vDS are connected to all the hosts to which the vDS is connected; hence, they are called distributed virtual port groups (dvPort groups). Because a vSphere 6.0 vDS can be connected to up to 1,000 hosts, the dvPort groups can become very large and powerful. After you create port groups on a vDS, you can migrate your VMs to the dvPort groups. In the following activities, you learn how to add, configure, and remove dvPort groups on vDSs.

To add a port group to a vDS, follow the steps outlined in Activity 5-4.

Image

The next major section discusses configuring port groups in great detail and covers configuring vSS and vDS policies. For now, I will just point out the steps involved in accessing the area in which you can configure the policies of port groups on vDSs. To begin to configure a port group on a vDS, follow the steps outlined in Activity 5-5.

Image

Over time, your networking needs will change, and you might decide to reorganize by removing some port groups. Take care not to “orphan” the VMs by removing the port group while they are still assigned to it. Instead, carefully consider your options and simply migrate the VMs to another port group as part of your plan. Your options with regard to vSS and vDS policies are covered in Chapter 6. For now, I’ll just point out how you would go about removing a port group that you no longer need.

To remove a port group that you no longer are using, follow the steps outlined in Activity 5-6.

Image

Adding/Removing Uplink Adapters to dvUplink Groups

As shown in Figure 5-19, dvUplink groups connect your vDS to the hidden switches that are contained in your hosts and then from there to the physical world. This allows you to control networking at the control plane on the vDS while the actual input/output (I/O) is still passing from host to host at the I/O plane. Each host keeps its own network configuration in its hidden switch that is created when you add a host to a vDS. This ensures that the network will continue to function, even if your vCenter fails or is not available.

Image
Image

Figure 5-19 Distributed Switch Architecture

That’s a lot of terminology all at once, but as you might remember, I said that one of the main things to understand was where the virtual meets the physical. You should know that the dvUplink groups are virtual, but the uplink adapters lead to physical adapters. Connecting multiple uplink adapters to a dvUplink group opens up the possibilities of load balancing and fault tolerance, which are discussed in Chapter 6. For now, I will show you how to add and remove uplink adapters.

To add uplink adapters to a dvUplink group, follow the steps outlined in Activity 5-7.

Image

When you reorganize, you might want to remove an uplink from a dvUplink group. Activity 5-8 outlines the process to remove the uplink.

Image

Creating/Configuring/Removing Virtual Adapters

Prior to vSphere 5.0 and ESXi 5.0, virtual adapters on vDSs included service console ports as well as VMkernel ports. In fact, if you are still using legacy ESX hosts in your virtual data center, you must take into account that they will require a service console port on either a vSS or a vDS, for the purpose of connecting to and managing the switch from the physical world. Because ESXi 5.0 and later hosts do not have service consoles, they also do not have service console ports, so with regard to this topic, I will limit the discussion of virtual adapters to VMkernel ports. This section covers creating, configuring, and removing virtual adapters.

As you might remember, you create VMkernel ports for one of six main reasons: IP storage, management, vMotion, VSAN, vSphere Replication, or FT logging. There is only one VMkernel on the ESXi host, which is the hypervisor, but there can be many VMkernel ports. To create a new VMkernel port on a vDS, you create and configure a VMkernel virtual adapter.

To create a virtual adapter, follow the steps outlined in Activity 5-9.

Image

After you finish configuring it, you can check the setting of your virtual adapter by coming back to VMkernel Adapters for the host, as shown in Figure 5-30. To make changes to those configuration settings, you can select the Edit Settings link that looks like a pencil and edit the properties of the virtual adapter.

Image

Figure 5-30 Viewing Adapter Settings

To configure a virtual adapter, follow the steps outlined in Activity 5-10.

Image

When things change and you no longer need the service that the VMkernel port was providing, you can free up the vmnic by removing it from the virtual adapter.

To remove a vmnic from a VMkernel adapter, follow the steps outlined in Activity 5-11.

Image

Migrating Virtual Adapters to/from a vSphere Standard Switch

You do not necessarily have to migrate virtual adapters from your vSSs to your vDSs, but you might want to, especially if your ultimate goal is to do away with the vSS altogether. In that case, make sure that all the VMkernel ports that you have been using on your vSSs are successfully migrated to your vDSs. This section shows how you can use the tools provided by the vCenter to easily migrate VMkernel ports from vSSs to vDSs.

To migrate virtual adapters from a vSS to a vDS, follow the steps outlined in Activity 5-12.

Image

Migrating Virtual Machines to/from a vSphere Standard Switch

As you learned earlier, the purpose of port groups is to get more than one function from a switch. In other words, port groups give you options on which to connect your VMs. You can configure different policies on port groups that are specific to the VMs that you will connect to them. In this regard, port groups on vDSs are no different from those on vSSs; they both give you more options for your VMs.

To help you understand the concept of migrating the VMs from a vSS to a vDS, suppose for a moment that the switches are physical. You walk into your network closet and you have some switches that have been there for years. They are old and noisy, and they have a limited set of features compared to new switches available today. As luck would have it, you received some money in the budget to buy a shiny new switch that has lots of features that the old noisy switches do not have. You have racked the switch and powered it up for testing, and you are now ready to start moving the cables that the computers are using from the old switch to the new switch.

In essence, this is the opportunity that you have when you create a new vDS. You can take advantage of all the new features of vDS, but only after you have moved the VMs over to the vDS. You could do this one at time, much like you would be forced to do in the physical world, but there are tools in vSphere that make it much faster and easier to move multiple VMs at the same time. In this section, you learn how you would move an individual VM from a vSS to a vDS, or vice versa, and then you learn how to use the tools provided by vSphere to move multiple VMs at the same time. In both cases, the focus will be on the VM port group, which you might remember is one of the connection types that are very important.

To migrate a single VM to/from a vDS, follow the steps outlined in Activity 5-13.

Image

If you have only a few VMs to move, this might be an attractive option for you and your organization. However, if you have many VMs to move, you might want a better way that will allow you to move many VMs at once.

To migrate multiple VMs from one port group to another simultaneously, follow the steps outlined in Activity 5-14.

Image

Configuring LACP on Uplink Port Groups

As previously discussed, you can have more than one vmnic configured for a port group to provide for load balancing and fault tolerance. The options discussed thus far treat each physical link as a separate logical link. For fault tolerance, one link can take the place of another; whereas for load balancing, you use software methods to determine which link is used by each VM for each session.

As an alternative, what if you could combine the bandwidth of several physical links into one logical link for the purposes of providing additional throughput and fault tolerance? The difference is that even if one of the physical links has an issue, the logical link still stays up, albeit with a little less throughput than before. Of course, if you are going to make this work, you have to configure it on both vSphere and on the connecting switches.

With vSphere 5.5 and later, you can set up link aggregation groups (LAGs) that connect to switches that support dynamic link aggregation. vSphere 5.1 allowed only one LAG per vDS, but vSphere 5.5 and later allow up to 64 LAGs per vDS, with up to 24 physical ports on each LAG. This gives you a tremendous flexibility, especially if you already have physical switches that support dynamic link aggregation.

To configure LACP on uplink port groups, you should follow the steps outlined in Activity 5-15.

Image

Determining Use Cases for a vSphere Distributed Switch

As I mentioned earlier, if you decide that you are going to use a vDS in your vSphere, you typically need to obtain an Enterprise Plus license. Of course, the Enterprise Plus license gives you many other features in addition to those that relate to networking, but this section focuses on networking features and ways that they might benefit a medium-sized to large-sized organization.

As outlined previously in Table 5-2, many features are available only on vDSs. They include features such as inbound traffic shaping, private VLANs, more granular port control for blocking, mirroring, LACP, and so on. These features can benefit your organization by giving you greater flexibility, tighter control, and enhanced security in your network. How you use them will likely vary based on what you are currently using in the physical world.

One of the nice things about this decision is that it does not have to be an “all or nothing” one. In other words, you can continue to use vSSs and begin to incorporate vDSs. You can leave your VMkernel ports or even service console ports (on ESX hosts) on the vSSs and use only VM port groups on the vDSs if you so desire. It’s up to you to decide what will be best for your virtual networking now and into the future and how to best use the features that VMware provides. The flexibility is there, and it’s your decision as to its implementation in your virtual network and its connection to your physical network.

Summary

This chapter covered the following main topics:

Image Identifying the capabilities of vSSs and the creation, configuration, editing, and removal of vSSs and the port groups they contain.

Image The creation, configuration, management, and removal of vDSs and the port groups that they contain, including comparing and contrasting their features with those of vSSs.

Image The configuration of LACP and the process of creating LAGs and assigning them to uplinks.

Exam Preparation Tasks

Review All the Key Topics

Review the most important topics from the chapter, noted with the Key Topic icon in the outer margin of the page. Table 5-3 lists these key topics and the page numbers where each is found.

Image
Image

Table 5-3 Key Topics for Chapter 5

Review Questions

The answers to these review questions are in Appendix A.

1. Which of the following is not a valid use for a VMkernel port?

a. IP storage

b. vMotion

c. FT logging

d. VM Port Group

2. What is the maximum number of hosts that you can connect to a vSphere 6.0 vDS?

a. 500

b. 10

c. 1,000

d. 32

3. Which of the following is configurable on a vDS but not on a vSS?

a. Private VLANs

b. NIC teaming

c. Outbound traffic shaping

d. 802.1Q tagging

4. Which of the following is a capability of a vDS but not of a vSS?

a. Outbound traffic shaping

b. Network Migration of Policies

c. VLAN segmentation

d. NIC teaming

5. What is the maximum number for LAGs that you can have on a vSphere 6.0 vDS?

a. 1,000

b. 50

c. 64

d. 10,000

6. Which discovery protocol is configurable on a vDS, but not on a vSS?

a. CDP

b. SNMP

c. LLDP

d. SMTP

7. Which of the following is not a part of the configuration of a VMkernel port?

a. IP address

b. Subnet mask

c. Default gateway

d. MAC address

8. Which of the following are not possible with a vSS but are possible with a vSphere 6.0 vDS?

a. Per-port policy settings

b. vMotion

c. User-defined network I/O Control

d. Load balancing

9. Which of the following tools allows you to migrate multiple VMs from a vSS onto a vDS?

a. vMotion

b. The Migrate Virtual Machine Wizard

c. Storage vMotion

d. DRS

10. Which tool should you use to remove a vmnic from a vDS?

a. The Manage the Physical Network Adapters Connected to the Selected Switch link

b. The Teaming and Failover tool

c. The Add and Remove Host Networking tool

d. The Manage Networks tab

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.235.104