You are not logged in.
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 ?
[My Blog] | [My Repo] | [My AUR Packages]
Offline
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
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
The wiki page recommends something like "lan0" and "wlan0" instead of "ethX". Also, the example given matches against SUBSYSTEM, not KERNEL.
Offline
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
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Oops it was fast lol, 2 reboots one eth1, and the other is eth0
[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"
[My Blog] | [My Repo] | [My AUR Packages]
Offline
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
hmmm... bug ?
i'm gonna try blacklisting modules now
[My Blog] | [My Repo] | [My AUR Packages]
Offline
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"
[My Blog] | [My Repo] | [My AUR Packages]
Offline