Sunday, May 22, 2011

ESXi 4.x host network config scripts

I have been working on a bunch of iSCSI ESXi host installs and this information has proven very valuable. Time to share with everyone else.

Using Putty or terminal log into your ESX/ESXi 4.x host and run the following commands. Read the descriptions before you run the commands

NOTE: I ran these commands after I install and setup the iSCSI switch in order verify MTU 9000 (Jumbo Frames)

To list all the kernels and information
esxcfg-vmknic -l
Change the MTU of the kernel
esxcfg-vmknic -m 9000 KERNEL_NAME
Check to make sure everything work as you wanted.
esxcfg-vmknic -l
List all of the vSwitches
esxcfg-vswitch -l
Change the MTU of the vSwitch
esxcfg-vswitch -m 9000 SWITCH_NAME
List the switch to verify changes were made.
esxcfg-vswitch -l
NOTE: even though everything looks correct I usually reboot the server so that it loads all o the changes on boot, you might find it helpful to recheck if problems arise later.

If you want to check the MTU on everything run the following:
vmkping -s 8000 <ip address of iSCSI storage>
This checks the whole path is working with jumbo frames (9000 will not work as a few bits are added making it over 9000)

No comments:

Post a Comment

Raspberry Pi Zero W - Wireless Configuation

create the file under "boot" folder wpa_supplicant.conf country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev u...