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
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)
"Paul W. Frields" <sticks...@hotmail.com> 撰寫於郵件
news:slrnb8bvtv.i6...@bettie.frields.net...
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.
/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