Networking Using vSphere Standard Switches

vSphere standard switches allow you to connect virtual machines to the outside world.

Figure 1. Networking with vSphere Standard Switches
There are two hosts - Host 1 and Host 2. Both have a virtual and a physical layer. There are three virtual machines and a vSphere standart switch with port groups A, B, C, D, and E in the virtual layer of Host 1. The first two virtual machines are connected to port group A, while the third virtual machine has two network adapters, one of which is connected to port group C, and the other one is connected to the virtual layer of Host 2 through Network C. Host 2 also has a vSphere standard switch with port groups A, B, C, E, and D. Host 2 has two virtual machines both of which are connected to port group C and Network C. Both hosts have a physical layer with two network adapters connected to their respective vSphere standard switch on one side and a physical network on the other. There are three numbers on the diagram. 1 is on the first uplink adapter of Host 2, while 2 represents the link to the standard switch of Host 2, and 3 represents the port groups of the standard switch.

Networking with vSphere Standard Switches shows the relationship between the physical and virtual network elements. The numbers match those in the figure.

  • Associated with each ESXi host are one or more uplink adapters (1). Uplink adapters represent the physical switches the ESXi host uses to connect to the network. You can manage uplink adapters by using the esxcli network nic command. See Managing Uplink Adapters.
  • Each uplink adapter is connected to a standard switch (2). You can manage a standard switch and associate it with uplink adapters by using the esxcli network vswitch command. See Setting Up Virtual Switches and Associating a Switch with a Network Interface.
  • Associated with the standard switch are port groups (3). Port group is a unique concept in the virtual environment. You can configure port groups to enforce policies that provide enhanced networking security, network segmentation, better performance, high availability, and traffic management. You can use the esxcli network vswitch standard portgroup command to associate a standard switch with a port group, and the esxcli network ip interface command to associate a port group with a VMkernel network interface.
  • The VMkernel TCP/IP networking stack supports iSCSI, NFS, and vMotion and has an associated VMkernel network interface. You configure VMkernel network interfaces by using the esxcli network ip interface command. See Adding and Modifying VMkernel Network Interfaces. Separate VMkernel network interfaces are often used for separate tasks, for example, you might devote one VMkernel network interface card to vMotion only. Virtual machines run their own systems' TCP/IP stacks and connect to the VMkernel at the Ethernet level through virtual switches.