5.5. Port Groups and VLANsWhen you go to configure a virtual switch, you'll see in the same window the area in which you can configure a port group. So, what is a port group? Port groups are VLANs basically. VLANs, or virtual local area networks, are defined by the IEEE 802.1Q standard. A VLAN is a group of network devices on a LAN that is configured to communicate as if they were attached to the same LAN segment and were in the same broadcast domain. In reality, however, they can be geographically dispersed and connected to a number of different LAN segments. This is accomplished through VLAN tagging. VLAN tags, for example, can be switch port based, MAC address based, protocol based, or policy based. A VLAN tag is an extra four bytes that are inserted after the source and destination address in an Ethernet frame. For more information on 802.1Q and VLAN tags, go to http://standards.ieee.org/getieee802/download/802.1Q-2003.pdf. Under the USER TYPE drop-down, we input Systems Administrator, clicked Accept/Begin Download, and got the download shown in Figure 5.24 See section 9 of this document for VLAN tag format information. Figure 5-24. User Type Drop-Down MenuIn ESX Server, there exist three options for VLANs:
Exterior Switch Tagging (EST) mode relies exclusively on the tagging of network traffic by the physical switch (see Figure 5.25). All traffic goes through one of your ESX Server's physical NICs, which is attached to a physical switch port providing VLAN tagging on outgoing traffic and strips the tag for incoming traffic. The limitation to this method, of course, is that it's switch port based so the number of VLANs your ESX Server can support is limited to the number of physical NICs you have in your ESX Server. Figure 5-25. Exterior Switch TaggingIn Figure 5.26, there's one physical NIC dedicated to the virtual machines; thus, you could have only one VLAN. EST is supported by all versions of ESX. Virtual Switch Tagging (VST) mode is the recommended configuration by VMware. This mode is used when you utilize port groups. You configure a port group to a virtual switch. You then assign one of your virtual machine's virtual network adapters to the port group itself. Figure 5.26 shows a basic VST configuration. Figure 5-26. A Basic VST ConfigurationFigure 5.27 depicts two Port Groups: VLAN10 and VLAN11. Both port groups are assigned to the same virtual switch, which is bound to one physical NIC on the ESX Server. The physical NIC is plugged into a physical switch port. All necessary switch trunks and support for 802.1Q must be established within your production switches. VLAN10 and VLAN11 are the Port Group labels. You'll select from the list of Port Group labels when configuring your virtual machine. The following is a step-by-step process for creating a Port Group and assigning that Port roup to a virtual machine.
A quick recap: each port group represents one VLAN, and you can have multiple port groups per virtual switchthus, you can have multiple VLANs per virtual switch. This eliminates the restriction of one VLAN per physical NIC tied to the one physical switch port we found in the EST mode. VLANs (aka, Port Groups) are handled by ESX Server itself for your virtual machines, and the virtual switch is responsible for VLAN tagging. VST is available only in ESX Server 2.1.0 and later releases. The final mode for using VLANs within your ESX environment is called Virtual Guest Tagging (VGT). VGT requires that you run VLAN 802.1Q drivers in the virtual machine itself. This allows you to run any VLAN you need since the configuration is within the virtual machine itself and not tied to any switch or physical NIC. However, VLAN tagging takes extra CPU cycles away from your virtual machine and you need to ensure you use a driver that supports VLAN hardware acceleration. VGT requires ESX Server version 2.1.1 or later and, of course, your guest operating system needs to support the 802.1Q drivers. For more information on Port Groups, VLANs, and VMware recommendations, read the well-written whitepaper at www.vmware.com/pdf/esx_vlan.pdf. |