1 |
On Sun, May 11, 2008 at 11:28 AM, Etaoin Shrdlu |
2 |
<shrdlu@×××××××××××××.org> wrote: |
3 |
> On Sunday 11 May 2008, 20:03, Mark Knecht wrote: |
4 |
> > Hi, |
5 |
> > In a machine with two NICs: |
6 |
> > |
7 |
> > 1) How do I configure which is considered eth0? |
8 |
> |
9 |
> Probably editing /etc/udev/rules.d/70-persistent-net.rules. |
10 |
> |
11 |
> |
12 |
> > 2) After drivers are loaded how do I see what hardware is using which |
13 |
> > driver? |
14 |
> |
15 |
> The above file should have a comment before each line indicating what |
16 |
> driver the device needs. Apart from that, you can probably peek |
17 |
> into /sys. On my system, there seems to exist a directory named |
18 |
> /sys/class/net/<device>/device/driver/module/drivers/pci\:<module>/, for |
19 |
> instance for eth0 it's |
20 |
> |
21 |
> /sys/class/net/eth0/device/driver/module/drivers/pci\:3c59x/ |
22 |
> |
23 |
> So I see that eth0 is using driver 3c59x. This is a totally homebrew |
24 |
> method, the result of 5-minute search, and most likely better method |
25 |
> exist (which I'd like to know too). |
26 |
> -- |
27 |
> gentoo-user@l.g.o mailing list |
28 |
> |
29 |
> |
30 |
|
31 |
Thanks. As per the note I sent a couple of minutes ago I found the |
32 |
persistant-net.rules file. I've modified it, rebooted and things are |
33 |
working as I want them to. eth0 is still IP address 192.168.1.57 but |
34 |
it's moved to the Intel e100 NIC. Other machine on my network can see |
35 |
it. |
36 |
|
37 |
Thanks for the pointer to the /sys/class stuff. I've only looked at |
38 |
that once trying to understand frame buffer stuff. This was a big |
39 |
help. With the changes I now see: |
40 |
|
41 |
/sys/class/net/eth0/device/driver/module/drivers/pci\:e100/ |
42 |
/sys/class/net/eth1/device/driver/module/drivers/pci\:3c59x/ |
43 |
|
44 |
which is what I want for now. |
45 |
|
46 |
Again, thanks for the great info. |
47 |
|
48 |
Cheers, |
49 |
Mark |
50 |
-- |
51 |
gentoo-user@l.g.o mailing list |