• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Samba with 2 nics?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

kaltag

Senior Member
Joined
Jul 28, 2002
Location
Boise Idaho
Good evening, I'm looking at building a high traffic server (streaming HDTV and very large files) that will serve a Gigabit network and clients with a Gb switch. The server will have at least 2 nics in it and I was curious if it's possible to have samba "load balance" across both nics so that the server only appears as one machine on the network and will use both nics simultaneously? I've found plenty of info on setting it up on 2 subnets but I really don't wanna do that if at all possible. I've also found this thread http://forums.gentoo.org/viewtopic-...ba+balance.html which makes it look like it'd be possible to setup iptables and have it do the balancing. Does Samba have any sort of internal ability to do this or am I looking at an external app/firewall rules? Any info is greatly appreciated.
 

klingens

Member
Joined
Apr 3, 2002
Location
Xanadu
Imho you're looking at a switch with special firmware. Loadbalancing like this will only work if both ends understand the speciality of the situation. Since Linux, due to its openness, is easier to mod than anything else, that means the more closed and proprietary switch has to support it from the get go.
 
OP
kaltag

kaltag

Senior Member
Joined
Jul 28, 2002
Location
Boise Idaho
After much searching it seems I'm kinda screwed without buying a REALLY expensive switch. The firewall method would sort of work but according to people who understand iptables MUCH better than I, it wouldn't do a REAL ballance, just whichever connection was inactive at the time of connect. So it would be possible to have 2 or more poeple using only 1 nic and the other completely idle if the connections occured at just the right time.
 

su root

Senior Member, --, I teach people how to read your
Joined
Aug 25, 2001
Location
Ontario, Canada
How many clients are we talking here? If it is a lot, then you could try the poor man's load balancer, a DNS round robin (or even poorer, manually specifying the different NICs by IP).

Besides that, if you want any kind of effectiveness, you will want to get a 802.3ad compatible switch (aka "Ethernet Bonding"). Cisco has their own proprietary "Etherchannel" bonding. You will need to configure the bond on the Linux side too.