Configuring Vmware ESX Networking via CLI (Part II)

This is a continuation of Configuring Vmware ESX Networking via CLI (Part I). This 2nd Part dealt with Port Group. The material of this blog is taken from

  1. Configuring networking from the ESX service console command line (kb.vmware.com)
  2. New User’s Guide to Configuring VMware ESX Networking via CLI (blog.scottlowe.org)

Portgroup Configurations

1. What is vmware Port Group? For more inforamtion,  you may want to see the Vmware Virtual Networking Concepts (pdf)

2. Creating a Port Group

# esxcfg-vswitch -A <Port Group Name> <vSwitch Name>

3. To set the VLAN ID for a Port Group

# esxcfg-vswitch -v <VLAN ID> -p <Port Group Name> <vSwitch Name>

For example,

# esxcfg-vswitch -v 0 -p “Service Console” vSwitch0

where 0 is the VLAN ID

4. Deleting a Port Group

# esxcfg-vswitch -D <Port Group Name> <vSwitch Name>