Ubuntu14.04及之后版本重启网卡不生效
Ubuntu14.04修改配置,重启网卡没有生效,出现如下问题:
service networking restart //重启网络服务
stop: Job failed while stopping
start: Job is already running: networking
tail -f /var/log/upstart/networking.log //查看错误日志
Stopping or restarting the networking job is not supported.
Use ifdown & ifup to reconfigure desired interface.
通过日志,我们可以得出如下结论:
传统的service重启和停止网络已经不再支持了,需要通过使用ifdown & ifup来实现相应的操作。