Ubuntu重啟網卡的三種方法
一、network
利用root帳戶
# service network restart
利用root帳戶
# service network restart
或者/etc/init.d/networking restart
二、ifdown/ifup
# ifdown eth0
# ifup eth0
三、ifconfig
# ifconfig eth0 down
# ifconfig eth0 up
Ubuntu14.04修改配置,重啟網卡沒有生效,出現如下問題:
service networking restart //重啟網絡服務
stop: Job failed while stopping
start: Job is already running: networking
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 notsupported.
Use ifdown & ifup to reconfigure desired interface.
Stopping or restarting the networking job is notsupported.
Use ifdown & ifup to reconfigure desired interface.
從以上日志內容可以看出,傳統的service重啟和停止網絡已經不再支持了,需要通過使用ifdown &ifup來實現相應的操作。
重啟指定網卡
ifdown eth0 && ifup eth0
---------------------
作者:marc07
來源:CSDN
原文:https://blog.csdn.net/marc07/article/details/62885872
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!
---------------------
作者:marc07
來源:CSDN
原文:https://blog.csdn.net/marc07/article/details/62885872
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!