On Sun, May 11, 2008 at 11:13 AM, Dirk Heinrichs
<[EMAIL PROTECTED]> wrote:
> Am Sonntag, 11. Mai 2008 schrieb Mark Knecht:
>
>
> > In a machine with two NICs:
> >
> > 1) How do I configure which is considered eth0?
>
> Use udev to name them as you like, see
> http://reactivated.net/writing_udev_rules.html.
>
>
> > 2) After drivers are loaded how do I see what hardware is using which
> > driver?
>
> Check dmesg output.
>
> HTH...
>
> Dirk
>
Hi Dirk,
I found the 70-persistant-net.rules file with these contents:
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# PCI device 0x10b7:0x9202 (3c59x)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:11:d8:f4:ce:e3", NAME="eth0"
# PCI device 0x8086:0x1229 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:90:27:17:91:5d", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
I think instead of writing something new that might fight with this
it's intended that I just change this file. If I turn things around
like this:
# PCI device 0x8086:0x1229 (e100)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:90:27:17:91:5d", NAME="eth0"
# PCI device 0x10b7:0x9202 (3c59x)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:11:d8:f4:ce:e3", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
that I should have a pretty good chance of success.
Off to give it a try.
- Mark
--
[email protected] mailing list