You are not logged in.

#1 2011-02-08 02:49:48

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Teaming NIC's

I did a search on the Wiki to see if anyone ever had any info on how to team two NIC's on one machine in case one fails, your server doesn't lose it's network connection. Has anyone ever tried this on Arch specifically and if so, are there any special packages or instructions?


./

Offline

#2 2011-02-08 10:58:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Teaming NIC's

I just use two cards. I have

INTERFACES=(eth0 eth1)

in my rc.conf and e.g. Firefox doesn't care which one is working.
What programs do you want to run?

Offline

#3 2011-02-08 11:47:45

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 226
Website

Re: Teaming NIC's

Have a look at bonding, as described in the wiki: https://wiki.archlinux.org/index.php/Co … rk#Bonding
see modinfo bonding for aviable modes of bonding (xor, failover etc...)
a description of the modes is also here for example

Last edited by seiichiro0185 (2011-02-08 11:51:51)


My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP

Offline

#4 2011-02-08 13:17:39

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: Teaming NIC's

karol wrote:

I just use two cards. I have

INTERFACES=(eth0 eth1)

in my rc.conf and e.g. Firefox doesn't care which one is working.
What programs do you want to run?

I don't / can't understand this. Where is the fail over? If your machine requires a static IP, your 2nd NIC is obviously going to be different from the failing NIC and then nobody can access the machine.

seiichiro0185 wrote:

Have a look at bonding, as described in the wiki: https://wiki.archlinux.org/index.php/Co … rk#Bonding
see modinfo bonding for aviable modes of bonding (xor, failover etc...)
a description of the modes is also here for example

Yes. That is exactly what I was looking for. I've done it on RHEL servers but my home Arch server doesn't have it sadly.

Last edited by Carlwill (2011-02-08 13:17:59)


./

Offline

#5 2011-02-08 13:20:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Teaming NIC's

@Carlwill
You never said what do you use it for :-)

Offline

#6 2011-02-08 13:21:43

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: Teaming NIC's

Carlwill wrote:

anyone ever had any info on how to team two NIC's on one machine in case one fails, your server doesn't lose it's network connection.


./

Offline

#7 2011-02-08 13:29:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Teaming NIC's

If my server has 2 NICs and one fails, it doesn't lose the Internet connection, I can e.g. download stuff anyway. I guess you are right that

Carlwill wrote:

If your machine requires a static IP, your 2nd NIC is obviously going to be different from the failing NIC and then nobody can access the machine.

but you didn't write it in your OP.

Anyway, glad you solved your problem.

Last edited by karol (2011-02-08 13:29:55)

Offline

#8 2011-02-08 23:05:36

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Teaming NIC's

karol wrote:

I just use two cards. I have

INTERFACES=(eth0 eth1)

in my rc.conf and e.g. Firefox doesn't care which one is working.

This isn't teaming (aka bonding).

At a guess, your route table has 2 routes for everything; 1 for each NIC. I'm surprised this hasn't created problems for you with source address and MAC address confusion. If you implement a stateful firewall then you'll almost certainly run into issues without some SNAT trickery.

Much more reliable and KISS to enable true bonding with the right kernel module in active-backup mode.

Offline

Board footer

Powered by FluxBB