Link to home
Start Free TrialLog in
Avatar of lacroix_al

asked on

Load balancing ESX 4 on a dell R610

I have a dell server R610 with VMware ESX 4 running on it.
The server has 4 physical ethernet ports.
I am currently only using one of them.
Does ESX have load balancing and if so how do I set it up?

Thank you

Avatar of coolsport00
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Luciano Patrão
Luciano Patrão
Flag of Portugal image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well, Teaming is different than Load Balancing "Jail". Some post for Load Balance yet want "teaming", so I guess we need clarification. Does the poster want Teaming (failover) or Load Balancing?


@coolsport00 enable both.

Teaming NICs achieves load balance and failover on VMware ESX

Since I do this by script every time and the script enable both.

Here is an example how to:

Avatar of lacroix_al


Thank you all for the post.
I want to use all four nics at the same time (not failover)
in my eyes I see failover as using one nic with backup.

the server currently has five servers running on it. I have four network cards. I guess I could set each server up to use a network card and have two of them share one of the cards.
the issue is if one goes down then that server is out.
if I have all five servers share all four network cards if one card goes down all servers would stay up.

I hope this helps clarify

I think you need to setup a vm to do it or buy a module from vmware
Best practice would have you using 2 nics for ESX(i) communication (managment network, vmotion, etc.) and the other two nics for virtual machine communication. However many nics you assign for virtual machine communication set up your team with all active. I recommend ip hash as the load balancing method for most folks.

Good Luck
Hi @BestWay - yeah...just needed clarification mostly from the poster. :) Thanks for sharing the techtarget URL. :)


Not many people use scripts. I am a script alcoholic :)

Example how to create vSwitch and enable teaming. I run a script like this as post VMware post installation. If you need to create the same vSwiths, network and the same NICs to add an host to a cluster. I do all this by script(that I have created previously from the existing host configuration)


Create vSwitch
esxcfg-vswitch -a vSwitch2

Add/link the vmnics to vSwitch
esxcfg-vswitch -L vmnic1 vSwitch2
esxcfg-vswitch -L vmnic2 vSwitch2

Create teaming and load balance for this vSwitch
vmware-vim-cmd hostsvc/net/vswitch_setpolicy --nicorderpolicy-active=vmnic1,vmnic2 --nicteaming-policy=loadbalance_ip vSwitch2
vmware-vim-cmd hostsvc/net/vswitch_setpolicy --securepolicy-promisc=true vSwitch2

Enable Cisco Discovery
esxcfg-vswitch -B both vSwitch2

Create 2 portgroups with different VLANs as an example
esxcfg-vswitch -A "PortGroup01" vSwitch2
esxcfg-vswitch -p "PortGroup01" -v 64 vSwitch2

esxcfg-vswitch -A "PortGroup02" vSwitch2
esxcfg-vswitch -p "PortGroup02" -v 84 vSwitch2

service mgmt-vmware restart

Just an example and a different way to work.

Hope this can help


Just to add this.

Loadbalancing and Teaming it always depends on the Host Server and how many physical NICs we have to implement this.

If a server have only 4 NICs, some of this configuration you get no advantages, since you do no have many NICs to improve the VMs Network load balancing and Teaming.

But for 8 and 10 NICs is very useful.

WOW! Thank you all for the postings.
You have posted so much info here I am not sure what to do.

let me see if I can make since of this.
I have 4 nics. I use one for management and team the other three for fail over and load balancing.
to do this I need to create a Vswitch and add the nics to the Vswitch.
then setup ip hashing for load ballancing - not sure what this is?

Then I read if I only have 4 nics I will not see any speed improvement.

did I get close?


Well you will have 3 NICs for VMs networking not 4.

But for this you will get load balance, and failover if you want to enabled.

Speed improvement?? Well not quiet, but better communication balance(networking) that is different. And in the end yes better speed(not in the real kbs) but by better load performance.

Hope that this make any since to you :)

Pretty much any of the load balancing you can set up will still limit your to gigabit speed for any single connection, however you can have more connections going on at the same time - kind of like having one car going 60 mph on the freeway can carry 4 people, but 3 cars can carry 12, but no one gets there any faster if this makes any sense.

The ip hash method I recommend takes both the source and the destination ip addresses and creates mathematically a "hash" that is in turn used for path selection. That way any host can take any path depending on the destination that it is going to. With a fair set of hosts and destinations this algorithm for path selection results in pretty good load balancing over the available paths.

Hope this helps