LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-13-2003, 12:23 PM   #1
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Rep: Reputation: 15
lo and eth0 fail on boot


I have redhat 7.3 and I shutdown the computer so I could change a fan.

As the system was shuting down it showed the interactive shutdown and it said eth0 failed.

When I boot the PC back up it goes through the interactive startup and it says

lo Missing config file ifcfg [FAILED]
eth0 Missing config fiel ifcfg [FAILED]

i checked /etc/sysconfig/network-scripts/ifcfg-lo and/etc/sysconfig/network-scripts/ifcfg-eth0 and the file is there with all the proper info.

Does anyone have any suggestions?
 
Old 03-13-2003, 12:43 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Are the permissions on the files OK?
644 should be enough.

Have you tried restarting after the boot:
/etc/init.d/network stop
(^ Just to make sure it is stopped first)
Then
/etc/init.d/network start
 
Old 03-13-2003, 01:06 PM   #3
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
OK well I changed the file permissions to 644 and

I still get the same result.

I rebooted the computer and lo actually booted OK but eth0 failed. I rebooted 1 more time and then they booth failed.


Last edited by dsiguy; 03-13-2003 at 01:31 PM.
 
Old 03-13-2003, 02:05 PM   #4
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
I took a look closer look at what the error was and thought I would see if anyone can help me with this.

Is there anyway that it is missing the ifcfg file.

I beleive that the system is really looking for the ifcfg-eth0 and ifcfg-lo but is it possible I am missing ifcfg

Thanks
 
Old 03-13-2003, 02:36 PM   #5
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
One other thing.

when I run

/etc/init.d/network stop

it tells me that I am missing ifcfg [FAILED]
 
Old 03-13-2003, 02:50 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
ifcfg should reside in /sbin e.g.
/sbin/ifcfg

Does it exist?
 
Old 03-13-2003, 02:57 PM   #7
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
it does exist.

I have checked it against another linux box and everything is the same. (Where it should be)
 
Old 03-13-2003, 02:59 PM   #8
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
also the permisssion onthat is also 644
 
Old 03-13-2003, 03:02 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
ha ha - change the permisson to 755 - you need to be able to execute it

chmod 755 /sbin/ifcfg
 
Old 03-13-2003, 03:16 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Sorry - my second test proved inconclusive it may not be that problem?

Try installing iproute-2.4.7-1.i386.rpm

Download
ftp://rpmfind.net/linux/redhat/7.3/e...4.7-1.i386.rpm
Then enter the command "rpm -ivh /path/to/iproute-2.4.7-1.i386.rpm"
 
Old 03-13-2003, 03:28 PM   #11
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
I really do appreciate all your help.

Now I only get an error on the lo but the eth0 does not even say it attempted to start.
 
Old 03-13-2003, 03:40 PM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you give me the EXACT messages from the moment you type
/etc/init.d/network restart
until it finishes

It is much easier to see what is happening

Last edited by david_ross; 03-13-2003 at 04:32 PM.
 
Old 03-14-2003, 10:23 AM   #13
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
# /etc/init.d/network restart

Shuttingdown interface eth0 [OK]
Missing config file ifcfg

Setting Network Paramaters [OK]

Bringing up interface lo: Missing config file ifcfg. [FAILED]
#
 
Old 03-14-2003, 12:39 PM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
mmm - odd that it should try to shut down eth0 and not try to bring it back up!

How about recreating the config files?

Stop the network first:
/etc/init.d/network stop

1) "mv /etc/sysconfig/network-scripts/ifcfg-eth0 /root/"
2) "mv /etc/sysconfig/networking/ifcfg-lo /root/"
3) "vi /etc/sysconfig/networking/ifcfg-lo"
enter:

Code:
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
4) "mv /etc/sysconfig/network /root/"
5) "vi /etc/sysconfig/network"
enter:

Code:
NETWORKING=yes
HOSTNAME=YOURHOST
GATEWAY=YOUR.GW.GOES.HERE
and change YOURHOST and YOUR.GW.GOES.HERE

6) "netconfig"
7) enter your network info

Then start the network:
/etc/init.d/network start

Last edited by david_ross; 03-14-2003 at 12:41 PM.
 
Old 03-14-2003, 01:02 PM   #15
dsiguy
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
I have not tried the last suggestion but I am thinking that something else maybe wrong now.

When booting up it seems to hang in serverl places at diferent times:

Sometimes when shutting down

NFS fails.

But i will try your suggestion now
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 and eth1 fail c0c0deuz Linux - Networking 3 06-18-2008 12:35 PM
lo and eth0 fail on boot dsiguy Linux - Hardware 2 03-14-2003 12:46 PM
lo and eth0 fail on boot dsiguy Linux - Networking 1 03-14-2003 12:35 PM
eth0 make modules fail pibevalera Linux - Networking 9 11-28-2001 09:08 PM
eth0 initiallisation fail again c0c0deuz Linux - Newbie 1 08-25-2001 12:26 PM

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

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