When using ifdown
or ifup
for the lookback
interface in CentOS 7:
[root@localhost etc]# ifup lo
I have got the error below:
Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
However if I use the ifconfig
command, it shows the command(ifdown
or ifup
) works with success.
As I tested, the use of the ifconfig lo up/down
does not show any signs of errors.
What is happening?
EDIT
I checked the ifcfg-lo
file, it shows the info below:
[root@localhost etc]# ls -la /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r--. 1 root root 254 Jun 26 20:07 /etc/sysconfig/network-scripts/ifcfg-lo
ls -la /etc/sysconfig/network-scripts/ifcfg-lo
– Rui F Ribeiro Jun 26 '17 at 12:41