- We have to create a switch, a portgroup for each VLAN, allocate our NIC’s and then set the VLAN ID
esxcfg-vswitch –a vSwitch2
esxcfg-vswitch –A accounts vSwitch2
esxcfg-vswitch –A rnd vSwitch2
esxcfg-vswitch –A sales vSwitch2
esxcfg-vswitch –L vmnic1 vSwitch2
esxcfg-vswitch –L vmnic2 vSwitch2
- The next part is to set the VLAN id for each network (account, rnd and sales)
esxcfg-vswitch –v 10 –p accounts vSwitch2esxcfg-vswitch –v 20 –p rnd vSwitch2esxcfg-vswitch –v 30 –p sales vSwitch2If you run the command esxcfg-vswitch –l we will see this information
If you wish to see this reflected in the VI Client then type:service mgmt-vmware restartNote: This is how my switch configuration looks now