From: "Mark Knecht" <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Change NIC ordering
Date: Sun, 11 May 2008 11:40:30 -0700 [thread overview]
Message-ID: <5bdc1c8b0805111140m4c79120bhcb70394cdc1959da@mail.gmail.com> (raw)
In-Reply-To: <200805112028.31585.shrdlu@unlimitedmail.org>
On Sun, May 11, 2008 at 11:28 AM, Etaoin Shrdlu
<shrdlu@unlimitedmail.org> wrote:
> 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).
> --
> gentoo-user@lists.gentoo.org mailing list
>
>
Thanks. As per the note I sent a couple of minutes ago I found the
persistant-net.rules file. I've modified it, rebooted and things are
working as I want them to. eth0 is still IP address 192.168.1.57 but
it's moved to the Intel e100 NIC. Other machine on my network can see
it.
Thanks for the pointer to the /sys/class stuff. I've only looked at
that once trying to understand frame buffer stuff. This was a big
help. With the changes I now see:
/sys/class/net/eth0/device/driver/module/drivers/pci\:e100/
/sys/class/net/eth1/device/driver/module/drivers/pci\:3c59x/
which is what I want for now.
Again, thanks for the great info.
Cheers,
Mark
--
gentoo-user@lists.gentoo.org mailing list
prev parent reply other threads:[~2008-05-11 18:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-11 18:03 [gentoo-user] Change NIC ordering Mark Knecht
2008-05-11 18:13 ` Dirk Heinrichs
2008-05-11 18:24 ` Mark Knecht
2008-05-11 18:28 ` Etaoin Shrdlu
2008-05-11 18:40 ` Mark Knecht [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5bdc1c8b0805111140m4c79120bhcb70394cdc1959da@mail.gmail.com \
--to=markknecht@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox