Udev and multiple Ethernet cards in Slackware 12.2
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Udev and multiple Ethernet cards in Slackware 12.2
I have multiple Ethernet cards in my system (eth0, eth1 and ath0), but how should I configure that alway's the same adapter becomes eth0 and eth1?
With Slackware 12.1 I changed /etc/udev/rules.d/70-persistent-net.rules, but with 12.2 this file seems also to be altered by the system once in a while. From the info in CHANGES_AND_HINTS.TXT I understood that in my case I should still change /etc/udev/rules.d/70-persistent-net.rules.
Behavior seen:
Most of the times only eth0 and eth1 are shown in the /etc/udev/rules.d/70-persistent-net.rules file, where I changed eth0 and eth1 to my requirement.
Sometimes the system seems to replaces this with the ath0 wireless NIC only, and after another reboot it shows eth0 and eth1 again, but mostly the other way around as I would like. So how can I take control of this?
All 3 NIC's are always working, but only the assignment of eth0 and eth1 become mixed up.
I'm curently reading the man pages for udev and see the option "ignore_remove". Might this help me out here?
Thanks for your reply.
That file was already replaced by 70-persistent-net.rules in 12.1. See CHANGES_AND_HINTS.TXT from the 12.1 disc.
CHANGES_AND_HINTS.TXT 12.1:
Quote:
If you have more than one network card and have been using the 75-network-devices.rules file, it is now called 70-persistent-net.rules (and is generated from 75-persistent-net-generator.rules).
Rules for optical devices are now located in 70-persistent-cd.rules (and are generated from 75-cd-aliases-generator.rules).
You will need to remove the old rules files (75-optical-devices.rules and 75-network-devices.rules) so that they don't conflict.
I also looked at my 12.1 backup and I only have a 70-persistent-net.rules with 3 adapters.
I will change my file "70-persistent-net.rules" to include all 3 adapters and verify after each reboot if the file is still the same.
This is the file being used on my server running current. I am using bind for network teaming, but don't think it makes a different. The nics are always assigned the in the order specified. Don't have the 70 files on my server, but do have them on the slack64 nas.
Post you network file. Something might be missing.
# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the //lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x11ab:0x4320 (skge)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:d8:8d:9d:2f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x1229 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:02:b3:62:78:39", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x168c:0x0013 (ath_pci)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:02:c7:60:28:00", ATTR{type}=="1", KERNEL=="ath*", NAME="ath0"
:~#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.