LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-09-2013, 11:12 AM   #1
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Rep: Reputation: Disabled
[debian] Device "eth0" does not exist


Hi,

I created a custom image (based on Squeeze) with live helper to deploy a preconfigured system on other machines. Most stuff seems to be working just fine, but I can't get the network interfaces up.

I get the following errors:

On boot (last line prior to login):
Code:
Device "eth0" does not exist
ifconfig eth0:
Code:
eth0: error while getting interface flags: no such device
lspci shows all the ethernet controllers. The required module is being loaded on startup (Broadcom NetXtreme Gigabit Ethernet module "bnx2")

I found others with similar problems and for most rewriting or deleting "xx-persistent-net.rules" does the trick. Unfortunately, that does nothing for me. If deleted, it's not even being rewritten as claimed, if edited, nothing changes.

During installation of the custom image, the NICs were detected and working out of the box. There has to be some active configuration file from the machine I created the image on that somehow interferes with the network setup, but so far, I've had no luck locating it. Also likely: I'm missing something really basic, I'm good at that .

Any hints & help appreciated.
 
Old 01-09-2013, 12:26 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,496

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
If eth0 isn't there, whatever module the nic needs isn't loaded or hasn't grabbed it. Go figure.

Caveat: Some old (10 years old) network cards did not do flexible interrupts. I had a box that would lose it's nic if the nic was assigned irq 12 instead of what it wanted, irq 11. Realtek something (8139??)
 
Old 01-09-2013, 12:37 PM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,148

Rep: Reputation: 236Reputation: 236Reputation: 236
Hi

I think you need to install "firmware-bnx2". It's non-free. If it's going to be used on different computers, you could install "firmware-linux-nonfree" to get all of those non-free binary blobs.
 
Old 01-10-2013, 09:27 AM   #4
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Seems like I got the wrong module - "tg3" is the one I need. Problem: Still doesn't work.

Strangely enough, If I start up the live system, the NICs are being recognized without any problem, lspci -v shows module tg3 in use and eth0 + eth1 are up and working. But after installing the image to the HD they're gone again.
 
Old 01-10-2013, 10:40 AM   #5
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,148

Rep: Reputation: 236Reputation: 236Reputation: 236
Not sure, but I think tg3 also needs non-free firmware. But if it's missing, the live cd shouldn't work either.

The command "dmesg | less" should give some clue about what's happening. It's usually lots of info there. If you press "/" for search and type eth you should get to the interesting part.

It could be that the devices are being renamed by udev. The dmesg info should tell you if that is the case.

When the kernel finds a new NIC with an unknown MAC address, it stores it in the file "/etc/udev/rules.d/70-persistent-net.rules". It can contain things like:

Quote:
# PCI device 0x14e4:0x163b (bnx2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="78:2b:cb:13:fd:f1", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
As long as this line is there, no other NIC can get the name eth0 so they will be renamed. Removing all such lines and rebooting will stop the renaming.
 
Old 01-10-2013, 11:32 AM   #6
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,496

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
have you /lib/firmware in the image?
 
Old 01-14-2013, 09:16 AM   #7
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
have you /lib/firmware in the image?
Jep.

Quote:
Originally Posted by Guttorm View Post
The command "dmesg | less" should give some clue about what's happening. It's usually lots of info there. If you press "/" for search and type eth you should get to the interesting part.
dmesg shows nothing at all concerning ethernet devices.

Editing/deleting/removing lines in /etc/udev/rules.d/70-persistent-net.rules doesn't do anything. To make sure I didn't create a bad image, I tested it on a few other machines with different hardware - everything works fine.

If I install a generic Debian on the server (which is a HP ProLiant 320e Gen8 by the way), the NICs are being detected without any problems.


@business_kid:
You wrote something about IRQs? I think it's possible the problem is rooted somewhere in the hardware setup (given that dmesg doesn't even mention ethernet devices). Unfortunately, I have little to no knowledge in that area. The BIOS Setup allows me to change IRQs for most devices, but I don't want to start throwing values around without really knowing what I'm doing.
 
Old 01-14-2013, 09:33 AM   #8
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Rep: Reputation: 5
Please post the results, after running this command:

ifconfig -a
 
Old 01-14-2013, 09:40 AM   #9
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by LeoPap View Post
Please post the results, after running this command:

ifconfig -a
ifconfig -a only shows the loopback interface.
 
Old 01-14-2013, 09:48 AM   #10
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Rep: Reputation: 5
try running the following commands.

ifdown eth0
ifup eth0

ifconfig -a

What are the results now? Same?

Last edited by LeoPap; 01-14-2013 at 09:50 AM.
 
Old 01-14-2013, 10:06 AM   #11
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by LeoPap View Post
try running the following commands.

ifdown eth0
ifup eth0

ifconfig -a

What are the results now? Same?
There are none - ifdown eth0 returns "eth0 not configured".

The network configuration should be fine - I think the source of the problem is somewhere deeper in the system and is caused by something preventing the kernel module to grab the NIC.
 
Old 01-14-2013, 10:13 AM   #12
LeoPap
Member
 
Registered: Jan 2013
Distribution: Centos
Posts: 93

Rep: Reputation: 5
Quote:
Originally Posted by Luno View Post
There are none - ifdown eth0 returns "eth0 not configured".

The network configuration should be fine - I think the source of the problem is somewhere deeper in the system and is caused by something preventing the kernel module to grab the NIC.
Do you have internet connection?

Try setting eth manually with: system-config-network
 
Old 01-14-2013, 02:57 PM   #13
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,496

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
Quote:
@business_kid:
You wrote something about IRQs? I think it's possible the problem is rooted somewhere in the hardware setup (given that dmesg doesn't even mention ethernet devices). Unfortunately, I have little to no knowledge in that area. The BIOS Setup allows me to change IRQs for most devices, but I don't want to start throwing values around without really knowing what I'm doing.
Never spotted that. I have a tigon 3 card in a box here. What I said about interrupts certainly doesn't apply - it's a 1Gb card which is @$%! fast but not super fast.

It needs firmware. Have a look in an X terminal at the output of

Quote:
grep firmware /var/log/messages
and see if it is requesting firmware and/or finding it.
 
Old 01-15-2013, 04:03 AM   #14
Luno
LQ Newbie
 
Registered: Jan 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
It needs firmware. Have a look in an X terminal at the output of

Code:
grep firmware /var/log/messages
and see if it is requesting firmware and/or finding it.
No "firmware" found in /var/log/messages.
 
Old 01-15-2013, 04:14 AM   #15
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,496

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
@#%$! It doesn't report it - I'm on the box with the tigon 3 card and it doesn't show firmware being loaded. But look at this:
Quote:
bash-4.2$ ls /lib/firmware/tigon
tg3.bin tg3_tso.bin tg3_tso5.bin
Have you got those?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] LFS: "eth0 does not exist" w/ multiple interfaces. Also, system will not shutdown. TwoGuesses Linux From Scratch 3 06-13-2011 03:00 AM
Occasionally-- "connected with self-assigned address," "deactivating device eth0" MaxIBoy Debian 4 10-04-2009 10:50 AM
Gentoo: "network interface eth0 does not exist" after kernel downgrade geogaddi Linux - Networking 2 12-14-2008 12:12 PM
"Interface eth0 doesn't exist. [ WARN ]" on boot-up aleksanteri Linux From Scratch 10 11-07-2007 12:40 PM
another "device /dev/dsp can't be opened (device does not exist)" in DEBIAN, woody Kroppus Linux - Hardware 12 11-13-2003 12:23 PM


All times are GMT -5. The time now is 08:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration