Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: persistent-net.rules
Date: Sun, 04 Mar 2007 10:11:05
Message-Id: pan.2007.03.04.10.04.28@cox.net
In Reply to: [gentoo-amd64] persistent-net.rules by Bernhard Auzinger
1 Bernhard Auzinger <e0026053@×××××××××××××××××.at> posted
2 200703040045.31686.e0026053@×××××××××××××××××.at, excerpted below, on
3 Sun, 04 Mar 2007 00:45:31 +0100:
4
5 > does somebody know how to prevent the persistent-net.rules to be saved
6 > during the shutdown process?
7 >
8 > The background is that I have a network interface with a faulty mac
9 > adress (FF:FF:FF:FF:FF:FF) on a K8N Neo2 (nforce3 ultra). So the kernel
10 > applys a random mac address to the network interface on every boot. At
11 > the shutdown process a entry with the randomly generated mac address
12 > will be written into /etc/udev/rules.d/70-persistent-net.rules. And
13 > that's my problem, because at the next boot another mac address will be
14 > applied to the network interface which does not match the one saved to
15 > persistent-net.rules and udev does not provide an interface eth0.
16
17 Interesting. I have different hardware, but use the macchanger module to
18 change my MAC at every eth0 up, and don't have the problem here. udev
19 must see the original MAC address on my hardware before macchanger gets
20 to it, and thus set it up correctly. But if it's rewritten @ shutdown,
21 why wouldn't it see the macchanger-randomized one then and thus get it
22 wrong?
23
24 So... three suggestions. One, see if emerging macchanger and configuring
25 it will cure the problem. Maybe the system expects it if maccchanger is
26 used thus explaining why it works with it here and providing a way to
27 make it work there? Two, consider tweaking the related variables
28 (RC_HOTPLUG, RC_COLDPLUG, RC_PLUG_SERVICES) in /etc/conf.d/rc, and see if
29 you can udev to play nicely that way. (Here, I have RC_PLUG_SERVICES="!
30 nt.eth0", allowing me better control of when it goes up, but it generally
31 works without that, I just like and occasionally need the additional
32 control.) Three, you may have to put a manual mknode somewhere in your
33 scripts.
34
35 --
36 Duncan - List replies preferred. No HTML msgs.
37 "Every nonfree program has a lord, a master --
38 and if you use the program, he is your master." Richard Stallman
39
40 --
41 gentoo-amd64@g.o mailing list

Replies

Subject Author
[gentoo-amd64] Re: persistent-net.rules Bernhard Auzinger <e0026053@×××××××××××××××××.at>