linux 重启网卡命令
在Linux中,重启网卡的命令可以是以下之一:
-
使用ifdown和ifup命令
- sudo ifdown eth0:停止eth0网卡
- sudo ifup eth0:启动eth0网卡
-
使用service命令
- sudo service network restart:重启所有网络服务,包括所有网卡
-
使用systemctl命令(适用于Systemd系统)
- sudo systemctl restart network:重启所有网络服务,包括所有网卡
请注意,上述命令中的"eth0"可能需要根据实际情况替换为您的网卡名称。
原文地址: https://www.cveoy.top/t/topic/iMSg 著作权归作者所有。请勿转载和采集!