ubuntu 静态ip配置重启网络问题解决

ubuntu设置静态IP出错 because the control process exited

stp1:
#vi /etc/network/interfaces

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

#auto ens33
#iface ens33 inet static
auto ens33
iface ens33 inet static
address 192.168.8.136
netmask 255.255.255.0
gateway 192.168.8.255

step2:
sudo /etc/init.d/networking restart

出现的问题:
[…] Restarting networking (via systemctl): networking.serviceJob for networking.service failed because the control process exited with error code. See “systemctl status networking.service” and “journalctl -xe” for details.
处理
使用命令
step3:
#ip addr flush dev ens33

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页