How to do it...

Follow these steps to connect a virtual machine to a logical switch:

  1. Navigate to Networking & Security | Logical Switches.
  2. In the center pane, select or double-click the applicable logical switch name. Click the Actions button in the center pane and select Add VM or click the Add VM icon:

The Add Virtual Machines dialog box will open.

  1. Select the VM(s) and move the applicable VM from Available Objects on the left to Selected Objects on the right by double-clicking the VM or using the blue arrow. Click Next once you have selected all the required VMs:
  1. Select one or more vNICs (network adapters) from each VM you want to connect to the logical switch and click Next:
  1. Review your settings and click Finish.