LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-22-2007, 07:53 AM   #1
Armane
LQ Newbie
 
Registered: Mar 2007
Posts: 24

Rep: Reputation: 15
Uanable to initiate eth0


Hello!

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

Any suggestions would make us happy!

Best regards
Mattias
Leon
 
Old 05-22-2007, 08:05 AM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
ls -l /dev/eth*

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
 
Old 05-22-2007, 08:14 AM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Rep: Reputation: 108Reputation: 108
Hya

Check lspci and/or lshw output, then ifconfig. Look for possible clues.

Happy Penguins!
 
Old 05-23-2007, 07:46 AM   #4
Armane
LQ Newbie
 
Registered: Mar 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Hello m8's!

We think we have solved it.

The problem was as Hern_28 suggested to check the names on the devices. It showed that they changed names under diffrent pc104+ stations :/

eth0 became eth2 ect.

No clue why but now i have modified a script to check the ames and load em independent on the device name.

Thanks for the help!
Mattias
 
Old 05-23-2007, 07:56 AM   #5
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Anytime

Glad you got it working
 
Old 05-23-2007, 08:47 AM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Firefox to initiate kppp connection. wuberman Linux - General 1 06-14-2005 10:31 AM
initiate program as root Vindane Slackware 2 03-28-2005 02:23 PM
Linux won't initiate anymore daphne.v Programming 2 11-08-2003 03:32 AM
System failed to initiate! paranoia1980 Linux - General 2 06-25-2003 04:48 PM
Evolution won't initiate mohapi Linux - Software 3 03-10-2003 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration