VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
2 Replies Last post: Aug 7, 2006 8:18 AM by Quotient  

Configure vSwitch load-balancing algorithm using command line posted: Jul 24, 2006 5:23 PM

Click to view Quotient's profile Expert 394 posts since
Nov 30, 2005
Currently our pSwitch environment is using src-dst-ip for its load-balancing algorithm, which IMO is the best to use.
However, new vSwitches and importantly the default vSwitch created during setup uses the "MAC hash" value (I think...).

I can add additional pNICs to the team from the CLI using esxcfg-vswitch -L... but I can't find the command to change the teaming policy in any documented esxcfg-* tool parameters... :(

So, does anyone know how to specify the non-default load-balancing algorithm "IP hash" from the command line...?

Perhaps it's possible to use the perl module TeamPolicy.pm...? Or perhaps esxcfg-linuxnet...?
Click to view mrityu's profile Enthusiast 32 posts since
Dec 2, 2003
i dont think there is currently a documented way to do this from CLI, although it can be done via scritpting using TeamPolicy.pm, i think it would be easier to jus edit the /etc/vmware/esx.conf file manually.

Do note that manually editing any file under this folder is not supported by vmware.

the lines to look for are

/net/vswitch/child[0001]/teamPolicy/linkCriteria/beacon = "ignore"
/net/vswitch/child[0001]/teamPolicy/linkCriteria/fullDuplex = "ignore"
/net/vswitch/child[0001]/teamPolicy/linkCriteria/minSpeed = "10"
/net/vswitch/child[0001]/teamPolicy/linkCriteria/pctError = "ignore"
/net/vswitch/child[0001]/teamPolicy/maxActive = "1"
/net/vswitch/child[0001]/teamPolicy/notifySwitch = "true"
/net/vswitch/child[0001]/teamPolicy/reversePolicy = "true"
/net/vswitch/child[0001]/teamPolicy/rollingRestoration = "false"
/net/vswitch/child[0001]/teamPolicy/team = "lb_srcid"
/net/vswitch/child[0001]/teamPolicy/uplinks[0000]/pnic = "vmnic7"

and the line to edit is

/net/vswitch/child[0001]/teamPolicy/team = "lb_srcid"

to "ip_hash"

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities