DebianThis forum is for the discussion of Debian 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.
Me and and a friend is trying to get a realtek 8139 networkcard to work with Linux Debian 2.6.18-4-486 but has problem with it.
We get an error message:
eth0: no such device
We have loaded the 8139too in modules and we can see that it has been loaded using lsmod.
But we can't set it up.
To make things even stranger we have three pc104+, that should be indentical, but it only works on one of the pc104+. We know that our hardware isn't broken because our 2.4 core can set up the network just fine on all of them (however 2.4 isn't supporting the CAN-card that we use, so we cant use it.)
This seems strange because we use the same OS-disc on all three and only one works just fine
Might want to check and make sure the it setup the ethernet as eth0 (obviously eth0 is not set) it is possible its eth1. If that doesn't help need more info, distro( specific), lspci and such
This is an issue with Debian 4.0, and many other linux distributions which use a more modern "udev". One of the things udev tries to do is keep the hardware names for particular pieces of hardware persistent. In particular, the udev rules in a default Debian install try to keep ethernet NIC cards unique and persistent.
Thus, what happens if you swap one ethernet card for another is that it gets assigned to a different device name. Probably, you swapped ethernet cards or computers twice.
You should look at and edit the file /etc/udev/rules.d/z25_persistent-net.something. I don't remember the exact name of the file, but it'll start with z25 and end in ...net.???. In this file, you'll see a list of ethernet device names and MAC addresses. Change the entries so that they all point to "eth0".
To me, this is a perfect example of software designed to be "helpful" which in fact is the opposite of helpful. The ONLY situation where I can imagine this "feature" being useful is in some sort of server or router with multiple NICs that often fail or are swapped out. How often is that?
In 99.99% of situations, a computer is only going to have one wired NIC, and you want to assign that card the device name "eth0". In 99.999999% of the times you swap an ethernet card, you want the "new" card to be assigned "eth0" instead of being assigned a new device name.
I don't know how exactly to edit the udev rules to give the desired behavior...I'm sure it's possible, since udev configuration is highly powerful and flexible. I just don't happen to know how to do it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.