You are not logged in.

#1 2006-03-15 18:13:38

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

eth1 keep switching name w/o udev rule[SOLVED]

Hello,

I can't figure out why this is happenning, the interface keep switching between eth0 and eth1 and i have a udev rule for it maybe something wrong with it

[wael@nasreddine ~]$ cat /etc/udev/rules.d/00.gandalf.rules
KERNEL=="eth*", SYSFS{address}=="00:0e:35:75:95:f2", NAME="eth1"
KERNEL=="eth*", SYSFS{address}=="00:c0:9f:59:04:00", NAME="eth0"

#SUBSYSTEM=="net", SYSFS{address}=="00:c0:9f:59:04:00", NAME="eth0"
#SUBSYSTEM=="net", SYSFS{address}=="00:0e:35:75:95:f2", NAME="eth1"

I tried using the 1st two lines or the inversing the comments -> using the second two lines but still the same, it's kinda weird, i'm sure of the MAC though

[wael@nasreddine ~]$ pacman -Q udev
udev 087-1

Any hints ?

Offline

#2 2006-03-15 18:20:33

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: eth1 keep switching name w/o udev rule[SOLVED]

Afaik, all my own rules are named 00-moo.rules. Maybe the dot confuses udev, as you use 00.gandalf.rules.
Do you have any other entries in your rule?


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#3 2006-03-15 18:21:43

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: eth1 keep switching name w/o udev rule[SOLVED]

ps I solve this by adding the modules for the nic to rc.conf. In order of the modules the nics are named.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#4 2006-03-15 18:27:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: eth1 keep switching name w/o udev rule[SOLVED]

The wiki page recommends something like "lan0" and "wlan0" instead of "ethX". Also, the example given matches against SUBSYSTEM, not KERNEL.

Offline

#5 2006-03-15 18:28:43

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: eth1 keep switching name w/o udev rule[SOLVED]

Moo-Crumpus I'll try renaming it and see what happens but that require a bit of time because it happens randomly so i got to restart quite few times to see if it works, as for black listing modules, i prefer udev coz it is a bit clear but it can be done on my system they are only 2 modules 8139too and ipw2200

Offline

#6 2006-03-15 18:34:30

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: eth1 keep switching name w/o udev rule[SOLVED]

Oops it was fast lol, 2 reboots one eth1, and the other is eth0 sad

[wael@nasreddine ~]$ cat /etc/udev/rules.d/00-gandalf.rules
KERNEL=="eth*", SYSFS{address}=="00:0e:35:75:95:f2", NAME="eth1"
KERNEL=="eth*", SYSFS{address}=="00:c0:9f:59:04:00", NAME="eth0"

#SUBSYSTEM=="net", SYSFS{address}=="00:c0:9f:59:04:00", NAME="eth0"
#SUBSYSTEM=="net", SYSFS{address}=="00:0e:35:75:95:f2", NAME="eth1"

Offline

#7 2006-03-15 20:05:13

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: eth1 keep switching name w/o udev rule[SOLVED]

I've found it doesn't matter what you name the udev rules file as long as it has .rules at the end.  I think the numbers might relate to how it is prioritized over the other rulse though.


And I'm having the same problem with the same drivers and similar udev rules.

Offline

#8 2006-03-15 20:15:33

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: eth1 keep switching name w/o udev rule[SOLVED]

hmmm... bug ?
i'm gonna try blacklisting modules now

Offline

#9 2006-03-15 20:39:55

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: eth1 keep switching name w/o udev rule[SOLVED]

Modules way creates a eth2 and actually that wat pointed me to realize how fool i was, there's a modem on my laptop too, I completely forgot about it and it's making things jump, so for now it has worked for 4 reboots, i'll see what happens in the next few day, as for now i'll mark this topic as solved
here's my udev.rules atm

[wael@nasreddine ~]$ cat /etc/udev/rules.d/00-gandalf.rules
SUBSYSTEM=="net", SYSFS{address}=="00:c0:9f:59:04:00", NAME="eth0"
SUBSYSTEM=="net", SYSFS{address}=="00:0e:35:75:95:f2", NAME="eth1"
SUBSYSTEM=="net", SYSFS{address}=="00:c0:9f:00:00:28:e4:7e", NAME="eth2"

Offline

Board footer

Powered by FluxBB