I made a big mistake. Instead of typing :
rm -rf /etc/sysconfig/network-scripts/ifcfg-eth0
rm -rf /etc/syconfig/network-scripts
Can anybody help me to repair this mistake?
Thanks in advance!
So, get the initscripts RPM and re-install it.
Of course, you can get your network interface up and running without actually using the "ifup" script, or whatever. They're basically wrappers for "ip" or "dhclient" in any case. For example, if your eth0 interface is supposed to get its configuration dynamically, you should be able to run "dhclient eth0" directly. If it's static, you should be able to run "ip link set dev eth0 up ; sleep 10 ; ip addr add 192.168.1.100 brd 192.168.1.255 dev eth0" or something like that. Consult "man ip" for the actual options. (I'm old fashioned, and am more used to running
Type them in by hand until you can get the box back on the network.