Pages

Sunday, February 7, 2010

Use CLI to add new port groups in VMware ESX 3.5 or vSphere

If you need to add multiple port groups at once on a single vSwitch or multiple virtual switches, you can use the following commands,
esxcfg-vswitch vSwitch2 -A VMs-403
esxcfg-vswitch vSwitch2 -p VMs-403 -v 403

esxcfg-vswitch vSwitch2 -A VMs-405
esxcfg-vswitch vSwitch2 -p VMs-405 -v 405

esxcfg-vswitch vSwitch2 -A VMs-409
esxcfg-vswitch vSwitch2 -p VMs-409 -v 409


where,

vSwitch2 - Name of your virtual switch
-A - To add a new port group to the virtual switch
-p - VLAN Id of your port group

No comments:

Post a Comment