On Sunday 11 May 2008, 20:03, Mark Knecht wrote:
> Hi,
>    In a machine with two NICs:
>
> 1) How do I configure which is considered eth0?

Probably editing /etc/udev/rules.d/70-persistent-net.rules.

> 2) After drivers are loaded how do I see what hardware is using which
> driver?

The above file should have a comment before each line indicating what 
driver the device needs. Apart from that, you can probably peek 
into /sys. On my system, there seems to exist a directory named
/sys/class/net/<device>/device/driver/module/drivers/pci\:<module>/, for 
instance for eth0 it's

/sys/class/net/eth0/device/driver/module/drivers/pci\:3c59x/

So I see that eth0 is using driver 3c59x. This is a totally homebrew 
method, the result of 5-minute search, and most likely better method 
exist (which I'd like to know too).
-- 
[email protected] mailing list

Reply via email to