Pages

Friday, December 9, 2011

Nice change in vSphere 5.0 for changing MTU size

As most of us who worked with vSphere 4 would probably know, changing the MTU size of a vSwitch had to be done via command line with the:

esxcfg-vswitch –m #### vSwitch#

… which looked something like this:

login as: root

Using keyboard-interactive authentication.

Password:

The time and date of this login have been sent to the system logs.

VMware offers supported, powerful system administration tools. Please

see www.vmware.com/go/sysadmintools for details.

The ESXi Shell can be disabled by an administrative user. See the

vSphere Security documentation for more information.

~ # esxcfg-vswitch -l

Switch Name Num Ports Used Ports Configured Ports MTU Uplinks

vSwitch0 128 4 128 1500 vmnic2,vmnic3

PortGroup Name VLAN ID Used Ports Uplinks

VM Network 0 0 vmnic2,vmnic3

Management Network 1116 1 vmnic2,vmnic3

~ # esxcfg-vswitch -m 9000 vSwitch0

~ #

~ #

~ #

~ # esxcfg-vswitch -l

Switch Name Num Ports Used Ports Configured Ports MTU Uplinks

vSwitch0 128 4 128 9000 vmnic2,vmnic3

PortGroup Name VLAN ID Used Ports Uplinks

VM Network 0 0 vmnic2,vmnic3

Management Network 1116 1 vmnic2,vmnic3

~ #

image

What’s nice about vSphere 5.0 is that you can now configure the MTU size in the GUI.  See the following screenshots with vSphere 4.x on the left and 5.0 on the right:

image

image

No comments: