LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-29-2004, 08:49 AM   #1
ben_ch
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
eth0 just disappeared


Hi
I've been running debian unstable for quite a while now, more or less without problems. Then, after I rebooted eth0 just disappeared. Not I can't get on the internet or network and I have no clue why. Before I rebooted it wasn't connected to the network, don't know if that is a coincidence, though.

My PC:
IBM Thinkpad T40 (slightly "customized": more memory, better network card, linux compatible wlan card ...)
Pentium M
2.4.25 kernel
debian unstable
Code:
 
$ ifconfig
lo <specs>
no eth0

$ lspci
pcilib: Cannot open /sys/bus/pci/devices
0000:02:01.0 Ethernet controller: Intel Corp. 82540EP Gigabit Ethernet Controller (Mobile) (rev 03)
0000:02:02.0 <my wlan card>

$ ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device
I would be very greatful for a suggestion on how to get this working again, as I don't enjoy having to use my windows-box to browse the internet
 
Old 03-29-2004, 09:36 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Is PCMCIA card services loading and is your machine loading the correct modules for you card?
 
Old 03-29-2004, 09:45 AM   #3
ben_ch
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
it's not PCMCIA, it's a built-in network card
 
Old 03-29-2004, 09:54 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by ben_ch
it's not PCMCIA, it's a built-in network card
Okay, I only saw laptop but no other details. But you still haven't answered my other question? More details please. Have you tried to modprobe the appropiate module if it isn't loading at boot time, etc? Any other details is always helpful?
 
Old 03-29-2004, 12:35 PM   #5
ben_ch
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
I haven't really been using linux all that long ... how do I do that?
 
Old 03-29-2004, 12:39 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by ben_ch
I haven't really been using linux all that long ... how do I do that?
Well first find out if its loaded the module for you NIC with this command logged in as root:

lsmod

And did you do anything to your system before your reboot, like a kernel recompile, etc?
 
Old 03-29-2004, 01:03 PM   #7
ben_ch
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
it's not in lsmod, the only things there are:
radeon, rfcomm, 2cap, bluez, ds, yenta_socket, pcmcia_core, appletalk, parport_pc, lp, parport, apm, mousedev, hid, usbmouse, input, af_packet, uhci, ehci-hcd, usbcore, ide-cd, cdrom, rtc, ext3, jbd, ide-detect, piix, ide-disk, ide-core, unix.

As a matter of fact I did do a couple of things before I rebootet ... I tried to install my wlan and vpnc. The only command I know of that might have done something is modprobe tun, don't even know what that does though ...

Last edited by ben_ch; 03-29-2004 at 01:05 PM.
 
Old 03-29-2004, 01:16 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Well your NIC should use the e100 module, so try adding the module like this as root:

modprobe e100

and it that works, then try running ifconfig to see if it shows your eth0 adapter.
 
Old 03-29-2004, 03:47 PM   #9
ben_ch
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
I did modprobe e1000 (I have gigabit, not 100Mbit), rebooted and still nothing worked (ifconfig also didn't show up my eth0 adapter)
 
Old 03-29-2004, 04:15 PM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by ben_ch
I did modprobe e1000 (I have gigabit, not 100Mbit), rebooted and still nothing worked (ifconfig also didn't show up my eth0 adapter)
Okay, after you modprobed e1000 did you get any errors or does it show up runnign the command lsmod after modprobing it? And if you modprobed it and then rebooted, clearly its not loading at boot time so why would you need to reboot? Its just going to clear what you just done.
 
Old 03-29-2004, 04:15 PM   #11
kc8tbe
Member
 
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179

Rep: Reputation: 30
First, try "ifconfig -a". I'm guessing you won't see eth0 listed based on what you've describes so far, however if you do see it listed that means that this is probably not a module thing.

Anyway, supposing that your NIC is a gigabit card (wow - fancy!) and that e1000 is the module name for that card (it might not be), modprobe -k e1000 should return without any errors or warnings and "ifconfig -a" should list eth0. Note that at this point eth0 is not ready for usage, so don't freak out if websites don't load.

So, if eth0 still doesn't show up in "ifconfig -a" and/or if "modprobe -k e1000" gives an error or warning, we've got a problem. It could be that "e1000" isn't the correct module name for whatever card you are using. If your kernel source is installed, you can "cd /usr/src/linux" and then "make menuconfig". Under network devices, there will be a special section for gigabit ethernet cards. Try to identify your card there based on the manufacturer's name. Once you've found it, make sure it has been compiled as a modules (this may require a kernel recompilation, which is covered extensively on this forum). Under the "help" for that driver, note the module name. It will be something like "mymodule.o". To insert the modules, run "modprobe -k mymodule". Be sure to leave off the ".o".

Posting the last ten lines of the command "dmesg" after running a "modprobe" command could be helpful. I suggest trying out some of the stuff I talked about above and then posting any results/questions you might have.
 
Old 03-30-2004, 12:47 PM   #12
ben_ch
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
it is a gigabit ethernet card and e1000 is the correct module to load (I know that from some other guys with the same laptop)
modprobe -k e1000 went fine, and it showed up afterwards in ifconfig -a

I don't have a directory /usr/src/linux (just /usr/src/kernel-source-2.4.25.tar.bz2 (can I just decompress that and "make menuconfig" it? I can't remember if I got it through apt-get install kernel-source-...)

last lines of dmesg:
Code:
[drm] Initialized radeon 1.7.0 20020828 on minor 0
[drm:radeon_unlock] *ERROR* Process 851 using kernel context 0
Intel(R) PRO/1000 Network Driver - version 5.2.20-k1
Copyright (c) 1999-2003 Intel Corporation.
PCI: Found IRQ 11 for device 02:01.0
PCI: Sharing IRQ 11 with 00:1d.0
PCI: Sharing IRQ 11 with 01:00.0
PCI: Sharing IRQ 11 with 02:00.0
eth0: Intel(R) PRO/1000 Network Connection
 
Old 03-30-2004, 12:56 PM   #13
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Just add that module to load each time you boot so it loads properly, etc. Then once it loads, if your network scripts setup properly, should regain you access, etc.

Not sure what your intending to do with the kernel, unless you want to recompile it for other reasons as modprobing your module should be resolved now.
 
Old 03-30-2004, 01:09 PM   #14
ben_ch
LQ Newbie
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by trickykid
Just add that module to load each time you boot so it loads properly, etc. Then once it loads, if your network scripts setup properly, should regain you access, etc.
w00t, it works
Thanks for the help!

just a (hopefully last) note: how do I get that module to load each time I boot up?
or will it do that automatically from now on?

of course I only got internet after
#dhclient eth0
(just in case someone else has the same problems)

Last edited by ben_ch; 03-30-2004 at 01:20 PM.
 
Old 03-30-2004, 01:24 PM   #15
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by ben_ch
w00t, it works
Thanks for the help!

just a (hopefully last) note: how do I get that module to load each time I boot up?
or will it do that automatically from now on?

of course I only got internet after
#dhclient eth0
(just in case someone else has the same problems)
Yeah, just add it to your modules.conf file to load at boot time and it should autoload at boot time.

And yeah, that last command is used if you use DHCP to connect. You should be able to add that to your startup scripts as well so you don't have to type it after reboot, etc.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Eth0 and Eth1 disappeared in Debian 3.1 Sarge... JoeneB Linux - Networking 1 11-01-2005 07:52 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:28 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