问题描述:
CentOS7查看网络状态时,出现Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'错误
解决办法:
编辑/etc/sysconfig/network-scripts/ifcfg-lo文件,在末尾添加"NM_CONTROLLED=no"参数
vim /etc/sysconfig/network-scripts/ifcfg-lo
/etc/sysconfig/network-scripts/ifcfg-lo修改后的配置信息:
DEVICE=lo IPADDR=127.0.0.1 NETMASK=255.0.0.0 NETWORK=127.0.0.0 # If you're having problems with gated making 127.0.0.0/8 a martian, # you can change this to something else (255.255.255.255, for example) BROADCAST=127.255.255.255 ONBOOT=yes NAME=loopback #新增如下信息 NM_CONTROLLED=no
转载于:https://blog.51cto.com/hbgslz/2071637