FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 05-11-2008, 06:03 PM
"Mark Knecht"
 
Default Change NIC ordering

Hi,
In a machine with two NICs:

1) How do I configure which is considered eth0?

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

Thanks,
Mark
--
gentoo-user@lists.gentoo.org mailing list
 
Old 05-11-2008, 06:13 PM
"Dirk Heinrichs"
 
Default Change NIC ordering

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
 
Old 05-11-2008, 06:24 PM
"Mark Knecht"
 
Default Change NIC ordering

On Sun, May 11, 2008 at 11:13 AM, Dirk Heinrichs
<dirk.heinrichs@online.de> 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
--
gentoo-user@lists.gentoo.org mailing list
 

Thread Tools




All times are GMT. The time now is 09:56 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org