场景: 在不知名云上新弄的centos7,改了IP之后启动不起来,使用systemctl status network查看结果如下:
![](https://images2018.cnblogs.com/blog/746846/201806/746846-20180629155818007-84446759.png)
排查过程:
1)NetworkManager是否关闭
systemctl stop NetworkManager
2)查看HWADDR是否一致
配置文件 /etc/sysconfig/network-scripts/ifcfg-eno16777984
与
ip addr查看到的
3)在配置文件/etc/sysconfig/grub里添加net.ifnames=0 biosdevname=0
![](https://images2018.cnblogs.com/blog/746846/201806/746846-20180629160031113-509831631.png)
4)生成启动菜单
grub2-mkconfig -o /boot/grub2/grub.cfg
5)重启