Solved

Linux Networking, eth0 device not found

Posted on 2003-11-25
3
810 Views
Last Modified: 2010-03-18
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
"<b>ifconfig eth0 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.155</b>" .

After this 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?

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 am able to ping to 127.0.0.1 . Does that mean the ethernet card driver is installed and loaded fine?
0
Comment
Question by:sprint907
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
paullamhkg earned 130 total points
ID: 9822775
try to look for the file /etc/sysconfig/network-scripts/ifcfg-eth0, add your ip in this file and restart linux and try again.

eg.

[root@test network-scripts]# more ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes

Also the file /etc/sysconfig/network, add your gateway info there eg.

[root@test sysconfig]# more network
NETWORKING=yes
HOSTNAME=hostname.yourdomain.com
GATEWAY=192.168.0.254

and /etc/hosts
eg.
[root@test sysconfig]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain             localhost
192.168.0.2            hostname.yourdomain.com    hostname

after change those file restart to see it will help.
0
 

Author Comment

by:sprint907
ID: 9826316
Thank you.
I will try that.
0
 

Author Comment

by:sprint907
ID: 9830581
I could not try that.  I got Red Hat 9.0 CDs and installed on that machine.
Now there is no problem at all :)

Thank you for your response.
Sprint907
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to view remote client's ipv6 address? 5 68
OpenWrt 1 36
reserve ip address for mac address in ubuntu dhcp server 2 55
Redirect mail server from IP to IP 2 90
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now