You are not logged in.

#1 2011-01-26 00:36:47

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

Configure Mutiple NIC's?

My Arch Linux machine has three network adapters:

[carlos@slave ~]$ dmesg | grep eth
e1000 0000:04:00.0: eth0: (PCI:33MHz:32-bit) 00:1b:21:07:a0:41
e1000 0000:04:00.0: eth0: Intel(R) PRO/1000 Network Connection
tg3 0000:02:00.0: eth1: Tigon3 [partno(BCM5751PKFBG) rev 4001] (PCI Express) MAC address 00:19:b9:13:73:6f
tg3 0000:02:00.0: eth1: attached PHY is 5750 (10/100/1000Base-T Ethernet) (WireSpeed[1])
e1000 0000:04:02.0: eth2: (PCI:33MHz:32-bit) 00:1b:21:07:93:f9
e1000 0000:04:02.0: eth2: Intel(R) PRO/1000 Network Connection
ADDRCONF(NETDEV_UP): eth0: link is not ready
e1000: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present

My question is if there's a way to tell Linux which adapter is eth0? I don't know why Arch Linux defaults my eth0 to a Intel PCI NIC rather than the onboard (eth1) adapter. Every other distribution I've used always load eth0 as the tg3 adapter.

Thanks for any info!


./

Offline

#2 2011-01-26 00:45:29

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,771

Re: Configure Mutiple NIC's?

Yes you can.  You need to create a udev rule.  This link describes how to lock them down how you want.  I realize you are not experiencing the NIC swaping phenomenon -- yet.  Regarldless, this : https://wiki.archlinux.org/index.php/Ud … _Each_Boot should help


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-01-26 14:18:01

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: Configure Mutiple NIC's?

^^
I can also recommend to give specific names through udev, f.e. 'int1', 'int2' and 'ext' - that way you can make it a lot more transparent for all your other configurations (dhcp, bind etc.)...

Offline

#4 2011-01-26 22:18:47

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

Re: Configure Mutiple NIC's?

zenlord wrote:

^^
I can also recommend to give specific names through udev, f.e. 'int1', 'int2' and 'ext' - that way you can make it a lot more transparent for all your other configurations (dhcp, bind etc.)...

Just be careful of some applications that expect the interfaces to be ethX.

I'm not aware of any off the top of my head, but I'm certain there's some around that make the assumption.

Offline

#5 2011-01-30 13:22:01

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

Re: Configure Mutiple NIC's?

In case anyone cares. I found this very interesting news. I'm sure this will be slipped in RHEL 7.

http://digitizor.com/2011/01/25/fedora- … ce-naming/


./

Offline

#6 2011-01-30 13:26:47

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Configure Mutiple NIC's?

You didn't say if you're using all three interfaces - if you're only using one, all you have to do is blacklist e1000.

Offline

#7 2011-01-30 14:41:01

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Configure Mutiple NIC's?

You can always resort to the brute force method, instead of letting udev sort things out load the modules manually in the order you want the cards to show up.

I think (and I may be wrong) that the cards handled by e1000 will always show up in the same order because when the driver scans for devices it will always find the cards in the same order as their location on the bus doesn't change, for the other card it will show up either before or after the built-in cards depending on the order you load the respective drivers.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#8 2011-01-30 22:40:54

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

Re: Configure Mutiple NIC's?

Carlwill wrote:

In case anyone cares. I found this very interesting news. I'm sure this will be slipped in RHEL 7.

http://digitizor.com/2011/01/25/fedora- … ce-naming/

What a stupid idea -- Trust Dell to come up with it. Maybe it's the Archer in me, but that's too complicated, especially in RedHat based systems where you don't even have to touch udev; All you have to do is add a "HWADDR=" line to /etc/sysconfig/network-scripts/ifcfg-ethX

Last edited by fukawi2 (2011-01-30 22:41:21)

Offline

Board footer

Powered by FluxBB