A group of netizens sent a message saying that an error was reported when running the service network restart. The error message is as follows:
Huttingdownloopbackinterface: [OK]
Bringinguploopbackinterface: [OK]
Fgrep: ifcfg-ifcfg-eth0: Nosuchfileordirectory
Fgrep: ifcfg-ifcfg-eth0: Nosuchfileordirectory
Fgrep: ifcfg-ifcfg-eth0: Nosuchfileordirectory
Egrep: ifcfg-ifcfg-eth0: Nosuchfileordirectory
Bringingupinterfaceifcfg-eth0:./ifup: configurationforifcfg-eth0notfound.
Usage: ifup <devicename>
[FAILED]
Go to the/etc/sysconfig/network-script/directory and Run ls-al. The result is as follows:
-Rw-r --. 1 root 229 Apr 22 ifcfg-eth0 ~
-Rw-r --. 1 root 211 Apr 23 ifcfg-eth0
-Rw-r --. 1 root 166 Apr 22 ifcfg-eth0 ~
-Rw-r --. 1 root 254 Oct 10 2013 ifcfg-lo
Lrwxrwxrwx. 1 root 20 Apr 21 ifdown->.../sbin/ifdown
-Rwxr-xr-x. 1 root 627 Oct 10 2013 ifdown-bnep
-Rwxr-xr-x. 1 root 5430 Oct 10 2013 ifdown-eth
-Rwxr-xr-x. 1 root 781 Oct 10 2013 ifdown-ippp
-Rwxr-xr-x. 1 root 4168 Oct 10 2013 ifdown-ipv6
Lrwxrwxrwx. 1 root 11 Apr 21 :21 ifdown-isdn-> ifdown-ippp
-Rwxr-xr-x. 1 root 1481 Oct 10 2013 ifdown-post
-Rwxr-xr-x. 1 root 1064 Oct 10 2013 ifdown-ppp
-Rwxr-xr-x. 1 root 835 Oct 10 2013 ifdown-routes
-Rwxr-xr-x. 1 root 1465 Oct 10 2013 ifdown-sit
-Rwxr-xr-x. 1 root 1434 Oct 10 2013 ifdown-tunnel
Lrwxrwxrwx. 1 root 18 Apr 21 ifup->.../sbin/ifup
-Rwxr-xr-x. 1 root 12444 Oct 10 2013 ifup-aliases
-Rwxr-xr-x. 1 root 859 Oct 10 2013 ifup-bnep
-Rwxr-xr-x. 1 root 10556 Oct 10 2013 ifup-eth
-Rwxr-xr-x. 1 root 11971 Oct 10 2013 ifup-ippp
-Rwxr-xr-x. 1 root 10490 Oct 10 2013 ifup-ipv6
Lrwxrwxrwx. 1 root 9 Apr 21 :21 ifup-isdn-> ifup-ippp
-Rwxr-xr-x. 1 root 727 Oct 10 2013 ifup-plip
-Rwxr-xr-x. 1 root 954 Oct 10 2013 ifup-plusb
-Rwxr-xr-x. 1 root 2364 Oct 10 2013 ifup-post
-Rwxr-xr-x. 1 root 4154 Oct 10 2013 ifup-ppp
-Rwxr-xr-x. 1 root 1925 Oct 10 2013 ifup-routes
-Rwxr-xr-x. 1 root 3289 Oct 10 2013 ifup-sit
-Rwxr-xr-x. 1 root 2488 Oct 10 2013 ifup-tunnel
-Rwxr-xr-x. 1 root 3770 Oct 10 2013 ifup-wireless
-Rwxr-xr-x. 1 root 4623 Oct 10 2013 init. ipv6-global
-Rwxr-xr-x. 1 root 1125 Oct 10 2013 net. hotplug
-Rw-r --. 1 root 13386 Oct 10 2013 network-functions
-Rw-r --. 1 root 29853 Oct 10 2013 network-functions-ipv6
From the above we can see that the ifcfg-eth0 has 2 more files, are ifcfg-eth0 ~ Ifcfg-eth0 ~
Delete these 2 files, but the deletion process, ifcfg-eth0 ~ A message is displayed, indicating that the operation cannot be deleted. The operation will be deleted after restart.