VI3 Create vSwitch with different number of ports

When using the sc command ‘esxcfg-vswitch -a vSwitch1’ the created switch has the default of 64 ports.

To create a vSwitch with more or less ports, add ‘:<no ports>’ to the name of the vSwitch.

Resulting command: ‘esxcfg-vswitch -a vSwitch1:128’ to create a vSwitch with 128 ports.

Note: Viewed from ‘esxcfg-vswitch -l’ the Num ports is 64, when viewed from VI client the vSwitch properties gives 56.

One thought on “VI3 Create vSwitch with different number of ports

  1. Hi Rene,

    Do you know if you can change the number of ports on an existing vswitch with this or another command. I know you can do it in the VI Client but thats not always suitable. Also, after changing the port number is there a network restart command that you can use instead of rebooting the entire host?

Comments are closed.