You are not logged in.

#1 2010-01-01 14:45:36

LoneStar
Member
Registered: 2009-12-06
Posts: 6

Two Ethernet devices, eth0 and eth1 can't decide which device they are

The issue is that the desktop has two ethernet devices, one on-board and the other is PCI. The on-board one doesn't really work anyone, which is why I've switched to the PCI card, which works fine. The problem comes in when Arch boots and sets up the network; I want the PCI card to be a static IP, and the on-board device to to go to hell...well actually I just don't care about the on board device. So I set up rc.conf to look roughly like:

hostname="Host"
eth0="eth0 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255"
gateway="default gw 192.168.0.1"
ROUTES=(gateway)

and my resolv.conf:

nameserver 192.168.0.1

Now this works sometimes. Almost ever-other boot eth0 is my on-board device. All other times eth0 is my PCI card. So, the real question is how can I make eth0 (or eth1) always my PCI card? I don't care which it is, I just need to be able to determine if my PCI card will be eth0 or eth1 at start up.

Also, here is what I get from lspci

02:08.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
02:0c.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)

Offline

#2 2010-01-01 14:47:45

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Two Ethernet devices, eth0 and eth1 can't decide which device they are

Offline

#3 2010-01-01 14:48:40

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Two Ethernet devices, eth0 and eth1 can't decide which device they are

disable onboard lan in bios?


Mr Green

Offline

#4 2010-01-01 14:55:27

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

Re: Two Ethernet devices, eth0 and eth1 can't decide which device they are

or just blacklist the driver for the onboard card.

Offline

#5 2010-01-01 14:57:30

LoneStar
Member
Registered: 2009-12-06
Posts: 6

Re: Two Ethernet devices, eth0 and eth1 can't decide which device they are

Wow, thanks for the speedy replies from everyone. After viewing that wiki article, that's exactly what I was hoping for (statically naming via MAC addresses). But also thanks to everyone else, that gives me some ideas if I run into any similar issues!

Offline

#6 2010-01-24 11:13:03

FerBenzaa
Member
Registered: 2009-01-30
Posts: 32

Re: Two Ethernet devices, eth0 and eth1 can't decide which device they are

Hi,

Im having the same problem with my wireless and ethernet cards.

I read the wiki and I would like to know how to get the module name for my wireless device. I want to use the module names in the rc.conf file.

Any help?

Offline

#7 2010-01-24 11:34:00

FerBenzaa
Member
Registered: 2009-01-30
Posts: 32

Re: Two Ethernet devices, eth0 and eth1 can't decide which device they are

Sorry, I found the answer using

dmesg  | grep -i wireless

and comparing the result with lsmod

Offline

#8 2010-01-24 16:33:58

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

Re: Two Ethernet devices, eth0 and eth1 can't decide which device they are

lspci -k is better.

Offline

Board footer

Powered by FluxBB