Gentoo Archives: gentoo-user

From: Etaoin Shrdlu <shrdlu@×××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Change NIC ordering
Date: Sun, 11 May 2008 18:31:10
Message-Id: 200805112028.31585.shrdlu@unlimitedmail.org
In Reply to: [gentoo-user] Change NIC ordering by Mark Knecht
1 On Sunday 11 May 2008, 20:03, Mark Knecht wrote:
2 > Hi,
3 > In a machine with two NICs:
4 >
5 > 1) How do I configure which is considered eth0?
6
7 Probably editing /etc/udev/rules.d/70-persistent-net.rules.
8
9 > 2) After drivers are loaded how do I see what hardware is using which
10 > driver?
11
12 The above file should have a comment before each line indicating what
13 driver the device needs. Apart from that, you can probably peek
14 into /sys. On my system, there seems to exist a directory named
15 /sys/class/net/<device>/device/driver/module/drivers/pci\:<module>/, for
16 instance for eth0 it's
17
18 /sys/class/net/eth0/device/driver/module/drivers/pci\:3c59x/
19
20 So I see that eth0 is using driver 3c59x. This is a totally homebrew
21 method, the result of 5-minute search, and most likely better method
22 exist (which I'd like to know too).
23 --
24 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Change NIC ordering Mark Knecht <markknecht@×××××.com>