Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing config file ifcfg

59 views
Skip to first unread message

Kenneth Hung Wai Ming

unread,
Mar 29, 2003, 12:29:10 AM3/29/03
to
Hi All

I encountered a problem in network NIC and loopback
device.
When I boot up the Redhat 7.x, I cannot bring up the lo device and eth0
device and the error messages said
"Missing config file ifcfg"

Any ideas ?

Kenneth


Paul W. Frields

unread,
Mar 29, 2003, 3:19:10 PM3/29/03
to

Pretty much just what it says. The ifcfg-* scripts are in
/etc/sysconfig/network-scripts, and at least ifcfg-lo is part of the
"initscripts" RPM. It probably should look something like this, which comes
from a 7.1 box I have (8.0 looks the same, so I doubt any distros in
between are different):

BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

You can fix ifcfg-eth0 by simply rerunning netcfg or netconfig (GUI). I
don't know whether you have neat because you say you're running "7.x" which
is not an exact version. You're either running 7.0, 7.1, 7.2, or 7.3, and
it's helpful to say which. Have fun and good luck.

--

Paul W. Frields, RHCE/RHCX (remove "foo" from e-mail to reply)

Kenneth Hung Wai Ming

unread,
Mar 30, 2003, 9:45:21 AM3/30/03
to
Acutally, I am with 7.2 version.
I tried to run netcfg and actually ifcfg-lo is there,
but none ifcfg-eth0 and when I tried to issue ifconfig
-a eth0 192.168.1.150 and there comes a ifcfg-eth0 in the directory you
stated, however, when reboots, the
bringing up eth0 and lo is still failed and when issueed
ifconfig -a, nothing eth0 and just lo but still down

"Paul W. Frields" <sticks...@hotmail.com> 撰寫於郵件
news:slrnb8bvtv.i6...@bettie.frields.net...

Bit Twister

unread,
Mar 30, 2003, 11:28:15 AM3/30/03
to
On Sun, 30 Mar 2003 22:45:21 +0800, Kenneth Hung Wai Ming wrote:
> Acutally, I am with 7.2 version.
> I tried to run netcfg and actually ifcfg-lo is there,
> but none ifcfg-eth0 and when I tried to issue ifconfig
> -a eth0 192.168.1.150 and there comes a ifcfg-eth0 in the directory you
> stated, however, when reboots, the
> bringing up eth0 and lo is still failed and when issueed
> ifconfig -a, nothing eth0 and just lo but still down

Read the bottom 4 lines of this post. I'll wait . . . . . . . . . . . .

Here are a few files to check.
You will have to make the changes to fit your ISP values
and make changes you know you need to change.

After changes test changes with
service network restart

cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=202.71.232.17
NETMASK=255.255.255.0
NETWORK=202.71.232.0 <=========== change
BROADCAST=202.71.232.255 <=========== change
ONBOOT=yes

cat /etc/sysconfig/network
HOSTNAME=p232017.static.uac1.hknet.com
NETWORKING=yes
GATEWAY="202.71.232.1" <=========== change
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"

cat /etc/host.conf
order hosts,bind
multi on

cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
202.71.232.17 p232017.static.uac1.hknet.com p232017

cat /etc/resolv.conf
search uac1.hknet.com uac1.hknet.com
nameserver 204.217.202.4 <=========== change
nameserver 216.418.227.68 <=========== change

--
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it.
Do a, man command_here or cat command_here, before using it.

dsn

unread,
Mar 31, 2003, 9:39:52 AM3/31/03
to Kenneth Hung Wai Ming
All config files can or are supposed to be in :

/etc/sysconfig/network-scripts

or something like that.

Also check on '/etc/sysconfig/network'

--
DSN
Reply address : d...@nbict.nbi.ac.za
+27 21 797 8704
www.nbi.ac.za

0 new messages