LinuxQuestions.org
Review your favorite Linux distribution.
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 04-13-2004, 01:15 AM   #1
Bookspoppa
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
eth0


I'm running debian unstable. A week ago, about, i did an apt-get update/upgrade/dist-upgrade and afterwards, eth0 wen haywire. To make a long story short: it no longer works.

I run /etc/init.d/networking restart as root and it says:

eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
exiting.
Failed to bring up eth0.
done.

So, i do ifconfig to see what it says, and it looks somewhat ok:

lo Link encap:Local Loopback
inet addr: 127.0.0.1 Mask 255.0.0.0
UP LOOPBACK RUNNING MTU:16436
RX packets:106 errors: 0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped: 0 overruns:0 carrier:0
collisions:0
RX bytes13208 (12.8 KiB) TX bytes:13208 (12.8)


Any ideas? Please be specific, I'm new at this...

Thanks much.
 
Old 04-13-2004, 01:19 AM   #2
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
Your ifconfig returns that your loopback is OK, in other words, your system can talk to itself. 127.0.0.1 is local loopback. It looks like you setup is not seeing you NIC. What model and make is your NIC?
 
Old 04-13-2004, 01:23 AM   #3
Bookspoppa
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
THe NIC is onboard the mother board intel #82562EZ...it used to work is the thing...before i ran the updates. I did a debian netinstall...so i know it worked...i chose an option for some packages...is there a way to undo all of the past apt actions?
 
Old 04-13-2004, 01:40 AM   #4
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
You can try:

apt-get remove

your mileage may vary.
 
Old 04-13-2004, 01:43 AM   #5
Bookspoppa
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
and what exactly would i be removing? is a list generated of all the apt-get's i've done?
 
Old 04-13-2004, 05:52 AM   #6
sims
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian, Ubuntu
Posts: 55

Rep: Reputation: 15
try running "ifconfig -a". if eth0 doesn't show, you will have to insert the module for your nic ("modprobe <nicmodule>"). if eth0 shows in the list, check your /etc/network/interfaces file. maybe you overwrote it when upgrading. after loading the nicmodule and/or editing the interfaces-file, run "/etc/init.d/networking restart".
 
Old 04-14-2004, 11:40 PM   #7
Eatingdogs
LQ Newbie
 
Registered: Mar 2004
Location: Canada
Distribution: Debian
Posts: 6

Rep: Reputation: 0
I get this same error, though right after installing unstable. It only happens after everything updates itself, so it does work on the first boot.

I'll try what was suggested in the above post.

Edit: Well that doesn't seem to work. Oh well. Anyway, I tried the following:

First I checked /etc/network/interfaces , which contained the following:
Code:
auto lo
iface lo inet loopback
# Thid entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp
That seems to be in order, so next I tried loading the module RTL8139, as that's the chipset of my ehternet card. Then I ran /etc/init.d/networking restart, and got the following output:

Code:
reconfiguring network interfaces... cat: /var/run/dhclient.eth0.pid: No such file or directory
eth0: ERROR while getting interface flags: No such device
<snip>
I'm guessing this is the problem. /var/run/dhclient.eth0.pid does not exist.

Just to reiterate, this is a Sarge install using the new beta installer. I've tried the install multiple times, and always get the same message after the second reboot (Install boot -> apt update boot -> next boot (Now stuff is buggered))

If anyone has any suggestions that'd be wicked. Should I just wait until the devs fix this? Should I submit a bug? Is this a bug?

Last edited by Eatingdogs; 04-15-2004 at 01:18 AM.
 
Old 04-15-2004, 08:14 AM   #8
andguent
Member
 
Registered: Sep 2003
Distribution: Woody, SuSE, RH, LAS
Posts: 55

Rep: Reputation: 15
Is the NIC connected to a network or directly to your router? If it is connected to your home network, do you have a DHCP server?

If eth0 shows up in "iptables -a" and if you want it to have a static IP address on a home network, you can try running

ifconfig eth0 192.168.0.3
(or other appropriate IP address) to manually set its address. You may have to tell ifconfig your netmask and/or broadcast settings.

Hopefully that helps. It sounds like the first phase of the install is configuring your network settings for you, and the end phase of installation is not.
 
Old 04-15-2004, 12:32 PM   #9
Eatingdogs
LQ Newbie
 
Registered: Mar 2004
Location: Canada
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Nope, sorry I'm not on a hone network, my adsl modem goes straight to the ethernet card. The dhcp server is that of my isp. Anyway, I have another clue: After the part of the bootup where it says "Detecting Hardware..." Theres a line that's something like the following:

Skipping rtl8139 assuming it is comiled into the kernel

The only thing is I'm pretty sure that driver is NOT compiled directly into the stock debian kernel, so I'm guessing it just can't ind the module for some reason.

Any more ideas?

Also, sorry for the hijack Bookspoppa, it's just that we have the exact same problem.
 
Old 04-15-2004, 01:11 PM   #10
sims
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian, Ubuntu
Posts: 55

Rep: Reputation: 15
what happens when running
"modprobe rtl8139"
?
is it successfully loaded? do you get an error message?
you didn't answer that in the previous post...
 
Old 04-15-2004, 03:19 PM   #11
Eatingdogs
LQ Newbie
 
Registered: Mar 2004
Location: Canada
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Terribly sorry. I get the following error after running modprobe:
Code:
$ modprobe rtl8139
Modprobe: can't locate module rtl8139
Sorry about that. Thanks for your interest.
 
Old 04-15-2004, 03:53 PM   #12
sims
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian, Ubuntu
Posts: 55

Rep: Reputation: 15
ok. sounds like the module isn't compiled.
i suggest you recompile the kernel.
 
Old 04-15-2004, 04:15 PM   #13
Eatingdogs
LQ Newbie
 
Registered: Mar 2004
Location: Canada
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Really? This seems like an odd choice. I JUST installed this. It's a brand new install. The only thing that's been done with it is Install, reboot, apt updates (So net works), reboot, net doesn't work. I think the problem is with the current packages.
 
Old 04-15-2004, 06:48 PM   #14
sims
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian, Ubuntu
Posts: 55

Rep: Reputation: 15
I'm sorry, but I was out of ideas...

Are you _sure_ the module is rtl8139?
Which kernel version are you running?
Try doing a: "modprobe 8139too"
 
Old 04-15-2004, 11:50 PM   #15
Bookspoppa
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
hey, eatingdogs, its no big deal that you imposed on this forum, but if you figure out the answer, could you please post it in detail please. I reinstalled to see if I had selected a wrong command while installing, but it did the same thing again. Please let me know what you find out.

thanks
 
  


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
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
howto delete existing static ip of ethernet(eth0)& reconf multiple ips on eth0 viveku Linux - Networking 2 02-02-2004 01:30 AM
howto delete static ip configured on eth0 & reconf multiple ip on one eth0(redhat8 viveku Linux - Networking 0 01-31-2004 10:40 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM

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

All times are GMT -5. The time now is 01:56 PM.

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