Computer Tips and Tricks
Get the latest posts via rss

Wednesday, 20 October 2010

Change VMWare ESX/VSphere Host VLAN ID

Recently we had an issue where we had not set the VLAN ID on 10 new VMWare VSphere servers. This resulted in us being unable to manage the VMWare hosts, the only way to resolve this was to change the VLAN ID manually on each of the hosts.

If you find yourself in this situation, you can use the following procedure to change the VLAN ID in VSphere/ESX.

Log on to a VMWare VSphere or ESX host with your ROOT account.

At the prompt enter: esxcfg-vswitch -l

This will show the information about your Virtual Switch, including the VSwitch name and the name of the Service Console. Obviously you will also need to know the VLAN ID that you want the host to be added to.
With this in mind use: esxcfg-vswitch VirtualSwitchName -v  VLAN_ID -p “ServiceConsoleName” to change the VLAN ID on the host.

NOTE: Once the VLAN ID is set, you can change it at anytime in the VSphere/ESX VMWare Client.


Post a Comment