L. Mark Stone wrote:
On Thursday, December 23, 2004 03:50 pm, Jason Joines wrote:
You might also want to try setting up a few rules in /etc/udev/rules.d/udev.rules to name the devices. See http://www-uxsup.csx.cam.ac.uk/suse/adminguide-sles9/ch15.html as a starting point. Thanks for the tip. Similar information is in the SuSE 9.2 Pro Admin Guide, I just didn't know I needed to look for udev. Using that, your link and http://www.reactivated.net/udevrules.php I got this straightened out. The man page for udev said files ending in .rules were loaded from /etc/udev/rules.d in alphabetical order. There was only one file ther, 50-udev.rules, so I created 49-udev.rules with
KERNEL="eth*", SYSFS{address}="00:06:5b:05:f2:8f", NAME="eth0"
Then I shutdown networking with 'rcnetwork stop', unloaded the modules with 'rmmod e100 tg3', loaded 'em back up, started networking back up, and the NICs had the desired names.
Jason,
That's great news. I gave a presentation on udev a few months ago at the local LUG; although I used multiple USB printers as the example case, your problem was a good candidate for udev rules as well.
Bonus points for no reboot, too! But, you probably should reboot the box to test at some point, don't you think?
With best regards, Mark
I rebooted to test and it failed. The NIC's went back to wrong names. Then I added another rule for the other NIC and rebooted again. Still have the same problem. Also, if I down network, reload the modules, and fire it back up, then the NIC I want comes up with eth1 but eth0 doesn't come up at all. Jason ===========