LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-26-2006, 12:24 PM   #1
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
Multiple networks/cards on a server


I have two questions regarding server networking, using Ethernet. They are as much theoretical questions as practical, and I appreciate advice both on existing software to do this, and whether it can be easily implemented but hasn't been.

Ok, 2 scenarios:

1) I have a network with a Gigabit-capable switch. Is there a way to use a server with two 10/100 cards, combine the bandwidth to the same switch, and have it effectively run 200 Mbps?

2) Failover - Server X is connected to two seperate switches on two seperate networks. The cards are eth0 and eth1 and they are both 10/100 Ethernet cards. Is there a way to configure it so that it uses eth0, but if eth0 goes down, it will (as absolutely quickly as possible) failover and use eth1?

Thanks.
 
Old 07-26-2006, 04:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,849

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
1) yep, you'd use the bond module to combine them to an 802.3ad trunk.

2) you mean two seperate subnets or two connections to the same ip subnet? again the bond module can fail between two cards, but that'll abstract back to a bond0 interface, which will appear the same as the trunk option but with lower capacity. if you're wanting a non bonded approach, check linux-ha.org for a lot of useful information about heartbeat checks and such.
 
Old 07-27-2006, 12:35 PM   #3
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Original Poster
Rep: Reputation: 31
Chris -

My concept is this:

I want as much redundancy/fault tolerance as possible.

Is it possible to have two NIC's in one machine with the same IP?

i.e. in a simple example, I have a database program on a computer called CLIENT, and mySQL on SERVER.

I want to have one switch, called A, that is connected to eth0 in CLEINT (192.168.0.2) and eth0 in SERVER (192.168.0.3).

Then, I want a second switch, called B, that is connected to eth1 in CLIENT (also 192.168.0.2) and eth1 in SERVER (also 192.168.0.3).

The idea being, if Switch A blows up, loses power, gets run over by a spaceship, etc. CLIENT will still be able to connect to mySQL on 192.168.0.3, just going through a different set of NIC's, wires, and switch.

Does this make sense at all?
 
Old 07-27-2006, 12:58 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,849

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
yes absolutely, so the bond module is definitely the direction to go in. this has a number of modes that change the way two (or more) nics are handled. if you're talking cisco switches, somethign like the 3750's then they do funky stacking where you can use two active nics on the server going to one port on each switch, and bond with a full 802.3ad trunk (mode 4 for bond module i think). here is one switch dies, nothign even fails over, you simply go from a 2gb (or 200mb) link down to a 1gb (or 100mb) link... that's just about as good as it gets really, but for a more basic implementation bond can manage the failover with an active/passive nic setup just fine. in fact, i think you can have an active/semi-active setup on the linux side where traffic will be pushed out of both nics but will only arp on one nic, so which two wholly seperate switches you still have nice resillient traffic flow over both switches, meaning you know they are working. if you run vlans you can even split vlans between switches further. neat stuff, but basically read the bond docs tofind the scenario that suits you best. at it's most default i think it's just a case of loading the module and it'll pick a safe a/p default and off you go.
 
Old 07-27-2006, 03:20 PM   #5
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Original Poster
Rep: Reputation: 31
Thanks. When I get the rest of the servers, I'll definitely look into it...

Your advice is very helpful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two networks via two cards? exluddite Linux - Networking 10 07-24-2005 05:13 PM
Linux with multiple network cards, and bridging both networks together fuckyou Linux - Networking 2 07-10-2005 07:21 PM
dhcp server with multiple networks adamantium Linux - Networking 0 03-02-2004 09:16 AM
Linux server with multiple ethernet cards darkseed2g3 Linux - Networking 1 11-19-2003 05:01 PM
Two networks, two network cards, one PC Deffe Linux - Networking 5 11-03-2003 01:00 PM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration