We help IT Professionals succeed at work.

ESX, load-balance and Cisco Switch

cegepdematane
cegepdematane asked
on
I can't seem to get load-balance with my ESX 4 and my Cisco Switch (monitor with esxtop and zenoss)

ESX is Route based on ip hash
on the vSwitch and on the VM

We got a cisco switch 4507 with supervisor 6

Here is the config

port-channel load-balance src-dst-ip

interface Port-channel2
 switchport
 switchport mode trunk
 switchport nonegotiate
 spanning-tree portfast
!

interface GigabitEthernet2/9
 switchport mode trunk
 switchport nonegotiate
 channel-group 2 mode on

interface GigabitEthernet2/18
 switchport mode trunk
 switchport nonegotiate
 channel-group 2 mode on

Comment
Watch Question

Paul SolovyovskySenior IT Advisor
Top Expert 2008

Commented:
For load aggregation you will need to setup etherchannel.  This provide inbount/outbound load aggregation.  Just keep in mind that if you're using iSCSI for instance you will not get more than 1GB of bandwidth until you setup multiple vmkernel ports since it will max at 1GB per session.


There are several items for "load balancing"

1.  failover
2.  link aggregation
3.  load balancing

These are 3 different aspects so keep that in mind.  In a teamed vswitch the VMs will be distributed between the physical nics, in a round robin type of fashion to use one of the nics as primary and in case that nic dies the other one will take over, bascially failover.  Etherchannel is link aggregation.

I am not a Cisco Expert but just need to confirm whether you have configured ether-channel at the physical switch level.

Author

Commented:
We want balance of the charge to my two nics

etherchannel is configured in line below ??

port-channel load-balance src-dst-ip

interface Port-channel2
 switchport
 switchport mode trunk
 switchport nonegotiate
 spanning-tree portfast
!

interface GigabitEthernet2/9
 switchport mode trunk
 switchport nonegotiate
 channel-group 2 mode on

interface GigabitEthernet2/18
 switchport mode trunk
 switchport nonegotiate
 channel-group 2 mode on
Senior IT Advisor
Top Expert 2008
Commented:
Do you have enough traffic that you're going on either nic..or at least 50-60%?  If not then a VM that opens a seesion may not go to the second nic unless there is a need.  Once a session is started from my understanding it will stay on a specific nic for that session.

Most of the time there is a need on the SAN side for the link aggregation and load balancing.  I've done many of these and haven't see a situation where a customer is using more than 1 or 2Gb