Computing.Net > Forums > Linux > Linux , eth0 device not found

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Linux , eth0 device not found

Reply to Message Icon

Name: sprint907
Date: November 24, 2003 at 00:54:19 Pacific
OS: Mandrake Linux 7.1
CPU/Ram: 300MHz Dual, 160MB
Comment:

I installed Mandrake Linux 7.1 on a dual 300MHz computer. I also have another computer having Windows 2000. I have connected both of them using a belkin router. After installing, I set the IP address for the Linux machine using the
"ifconfig eth0 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.155" .

Afthe rthis both the computers were connected(I ran a FTP server on the windows 2000 machine and I was able to access the FTP server from the linux machine).

After this I rebooted the linux machine and I noticed that the Ip address was gone. I tried to set the IP address to 192.168.2.100 using the same ifconfig command, but it keeps saying eth0 device not found. I used LinuxConf program and it shows that the ethernet card is installed properly.

What may the problem be?



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: November 24, 2003 at 07:47:24 Pacific
Reply:

It sounds as though the module for your card is not loaded on boot. Try running lsmod first, make a note of what is loaded, then run draknet again (or whatever it was you installed your card with) and get it working (if you can!). Do another lsmod to find which module is being loaded and then add a modprobe modulename command to your startup scripts so that it loads when booting.


0

Response Number 2
Name: Sprint907
Date: November 24, 2003 at 12:57:55 Pacific
Reply:

Thank you 3Dave,
I am new to Linux, so if you can give me the exact comman to run, I will run them , note down the results and post them here.


0

Response Number 3
Name: sprint907
Date: November 25, 2003 at 01:07:52 Pacific
Reply:

Here is the output of lsmod command

Module                  Size  Used by
nls_iso8859-1           2280   1  (autoclean)
nls_cp437               3784   1  (autoclean)
vfat                   11196   1  (autoclean)
fat                    33408   1  (autoclean) [vfat]
soundcore               4388   0  (autoclean) (unused)
usb-ohci               15084   0  (unused)
autofs                  9736   1  (autoclean)
keybdev                 1836   0  (unused)
usbkbd                  2324   0  (unused)
input                   3040   0  [keybdev usbkbd]
usb-storage            10220   0  (unused)
usbcore                28164   0  [usb-ohci usbkbd usb-storage]
supermount             15208   2  (autoclean)
ncr53c8xx              56384   3 


Also, in the /var/log/messages file I saw this boot up message..

Nov 25 00:40:05 shibuhost network: Setting network parameters succeeded
Nov 25 00:40:05 shibuhost network: Bringing up interface lo succeeded
Nov 25 00:40:05 shibuhost network: Enabling IPv4 packet forwarding succeeded
Nov 25 00:40:05 shibuhost insmod: Note: /etc/conf.modules is more recent than /lib/modules/2.2.15-4mdksmp/modules.dep <27>Nov 25 00:40:05 insmod: /lib/modules/2.2.15-4mdksmp/net/tlan.o: invalid parameter parm_irq
Nov 25 00:40:05 shibuhost ifup: Delaying eth0 initialization.
Nov 25 00:40:05 shibuhost network: Bringing up interface eth0 failed


I can cut and paste contents of other configuration files if required...


0

Response Number 4
Name: sprint907
Date: November 25, 2003 at 01:09:55 Pacific
Reply:

conf.modules has this...

alias scsi_hostadapter1 usb-storage
post-install usb-storage modprobe usbkbd; modprobe keybdev
alias scsi_hostadapter ncr53c8xx
alias parport_lowlevel parport_pc
pre-install plip modprobe parport_pc ; echo 7 > /proc/parport/0/irq
alias block-major-11 scsi_hostadapter
alias usb-interface usb-ohci
pre-install pcmcia_core /etc/rc.d/init.d/pcmcia start
post-install supermount modprobe scsi_hostadapter ; modprobe scsi_hostadapter1
options tlan irq=10,11 io=0x300,0x320
alias eth0 tlan

ifcfg-eth0 file has the following lines inside it...

DEVICE="eth0"
IPADDR="192.168.2.100"
NETMASK="255.255.255.0"
ONBOOT="yes"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"


"network" file has the following

NETWORKING=yes
FORWARD_IPV4="yes"
HOSTNAME="shibuhost.shibudomain"
DOMAINNAME=shibudomain
GATEWAY="192.168.2.1"
GATEWAYDEV="eth0"


0

Response Number 5
Name: sprint907
Date: November 25, 2003 at 01:17:55 Pacific
Reply:

Also, the ifconfig only shows 127.0.0.1 lo interface only.

I am able to ping to 127.0.0.1 . Does that mean the ethernet card driver is installed and loaded fine?


0

Related Posts

See More



Response Number 6
Name: 3Dave
Date: November 25, 2003 at 01:58:09 Pacific
Reply:

I think your problem lies in conf.modules. Pingin 127.0.0.1 just means that your loopback networking is OK. As root try:
# modprobe tlan
If that works you should be able to do an lsmod and see the tlan module loaded. "ifconfig eth0 up" should now work.

If all the above works OK, I would suggest commenting out the line "options tlan irq=10,11 io=0x300,0x320" by putting a ";" infront of it, like the line above. Using the tlan driver I'm guessing that your NIC is either PCI or onboard. You usually only need to pass parameters like IRQ etc when loading ISA modules.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Linux scripting problem copy/paste in linux



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Linux , eth0 device not found

Red Hat Linux CD was not found .... www.computing.net/answers/linux/red-hat-linux-cd-was-not-found-/20892.html

Red Hat CD not found in cd-rom driv www.computing.net/answers/linux/red-hat-cd-not-found-in-cdrom-driv/16180.html

Install: CD was not found in any of www.computing.net/answers/linux/install-cd-was-not-found-in-any-of/20909.html