首页 > 系统服务 > 详细

Ubuntu重启网卡的三种方法

时间:2019-02-15 15:15:06      阅读:275      评论:0      收藏:0      [点我收藏+]
一、network
利用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
tail -f /var/log/upstart/networking.log //查看错误日志
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
版权声明:本文为博主原创文章,转载请附上博文链接!

Ubuntu重启网卡的三种方法

原文:https://www.cnblogs.com/lfxiao/p/10383759.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!