You are not logged in.

#1 2011-05-08 07:38:14

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Udev is ignoring my rules?

I'm trying to set up a udev rule to assign specific identifiers to my network cards.  Unfortunately, udev appears to be ignoring whatever I throw at it.  When I tried manually creating a rule to set one card as lan0 and the other card as lan1, the cards still showed up as eth0 and eth1.  When I renamed 75-persistent-net-generator.rules.optional to 75-persistent-net-generator.rules and rebooted, the new rules file wasn't even created!

Anybody have any ideas as to what's going on here?

Offline

#2 2011-05-08 08:25:47

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Udev is ignoring my rules?

Some useful links, from my config file:

# http://www.reactivated.net/writing_udev … mple-netif
# Match based on MAC address:
# udevadm info -a -p /sys/class/net/eth0 | grep -i address
# udevadm info -a --name /dev/ttyUSB0
# http://forums.gentoo.org/viewtopic-t-489863.html (howto guide)
# http://forums.gentoo.org/viewtopic-t-512201.html
# MAC addresses must be in lower-case.

Offline

#3 2011-05-08 18:23:20

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: Udev is ignoring my rules?

Yup, that's exactly the procedure I followed. Didn't work.

Also, that still doesn't explain why the net rules generator file did absolutely nothing.

Offline

#4 2011-05-08 19:48:41

fphillips
Member
From: Austin, TX
Registered: 2009-01-24
Posts: 202

Re: Udev is ignoring my rules?

https://bugs.archlinux.org/task/24115

I believe the fix will be in next initscripts.

Offline

#5 2011-05-08 20:12:30

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: Udev is ignoring my rules?

Thanks! The workaround for copying the generated rules from /run/ worked.  I'm not sure why the file I manually created didn't do anything, as I followed the recommended procedures exactly (at least in the way I understood them).

Offline

Board footer

Powered by FluxBB