Information Technology Reference
In-Depth Information
7. Click the green plus icon to add physical network adapters to the new vSwitch you are
creating. From the Add Physical Adapters To The Switch dialog box, select the NIC or
NICs connected to the switch that can carry the appropriate trafi c for your VMs.
8. Click OK when you're done selecting physical network adapters. This returns you to the
Create A Standard Switch screen, where you can click Next to continue.
9. Type the name of the VM port group in the Network Label text box.
10. Specify a VLAN ID, if necessary, and click Next.
11. Click Next to review the virtual switch coni guration, and then click Finish.
If you are a command-line junkie, you can create a VM port group from the vSphere CLI as
well. You can probably guess the commands that are involved from the previous examples, but
we'll walk you through the process anyway.
Perform the following steps to create a vSwitch with a VM port group using the command line:
1. Using PuTTY.exe (Windows) or a terminal window (Linux or Mac OS X), establish an
SSH session to a running instance of the vSphere Management Assistant.
2. Enter the following command to add a virtual switch named vSwitch1:
esxcli --server=<vCenter host name> --vihost=<ESXi host name>
--username=<vCenter administrative user> network vswitch standard add
--vswitch-name=vSwitch1
3. Enter the following command to bind the physical NIC vmnic1 to vSwitch1:
esxcli --server=<vCenter host name> --vihost=<ESXi host name>
--username=<vCenter administrative user> network vswitch standard
uplink add --vswitch-name=vSwitch1 --uplink-name=vmnic1
By binding a physical NIC to the vSwitch, you provide network connectivity to the rest
of the network for VMs connected to this vSwitch. Again, remember that you can assign
any given physical NIC to only one vSwitch at a time (but a vSwitch may have multiple
physical NICs bound at the same time).
4. Enter the following command to create a VM port group named ProductionLAN on
vSwitch1:
esxcli --server=<vCenter host name> --vihost=<ESXi host name>
--username=<vCenter administrative user> network vswitch standard
portgroup add --vswitch-name=vSwitch1 --portgroup-name=ProductionLAN
Of the different connection types—VMkernel ports and VM port groups—vSphere admin-
istrators will spend most of their time creating, modifying, managing, and removing VM port
groups.
Ports and Port Groups on a Virtual Switch
A vSwitch can consist of multiple connection types, or each connection type can be created in its
own vSwitch.
Search WWH ::




Custom Search