Hi Guys ,
we have hosted some of our applications in multiple servers and these servers are connected to 2 switches .
These 2 switches are having a connection with a router . These 2 switches are configured as active and standby for these Servers . But we have observed that most of the traffic is coming from Switch 2 . Could you please guide that how we can configure these devices so traffic should be load balanced from both switches .
How to configured switches in the Active passive mode? which protocol or technology has applied?
There is no Stack so I am looking that you have configured Interface teaming on the server as Switch-Unware. So this is normal behaviour.
From your description it sounds like your servers have a pair of NICs in active/ standby configuration.
Are the pair of 2960 switches stacked together. If not you are stuck with this topology.
If they are in a stack together, then you should configure an etherchanel between the switches to the two server NICs. You should also configure the etherchannel load balancing algorithm to use src-dst-ip and not MAC address.
Please share you switch config and a brief topology diagram showing switch/server connections if you need further detail.
You'd have to stack or load balance naturally with the placement of servers to equal out the traffic. Unfortunately, I do not believe there is much more you can do in this situation.
Since your switches are not stacked a port-channel connected to both switches is not an option. This would be the ideal solution and you should look into it.
If you have more than two servers and want to distribute the traffic, you could make the second servers secondary NIC its Active interface. This would at least send all of its traffic via the second switch.
A diagram may be useful for this situation, one of the ways I would do this is by working out the average traffic on each server, then connect them to each switch so it load balances naturally with the servers connected to each one. This means it is as simple as possible, with as little configuration.
We also do this technique with IP addresses to naturally load balance them in the CORE for BGP, the way you do it is splitting the IP's depending on how many exits, so if you had a /24, for example, you'd half it into two /25's and assign a server to one range and then another server to the alternative range, this way you don't need any complicated configuration but just simply a design load balancing solution.
on a side note, if you have two switches, you could make one switch the primary root for one half of your VLANs, ane the other switch the primary root for the other half. If you do that, just make sure all configured VLANs are allowed on all interconnecting trunks...