ubuntu 20.04 重啟網卡服務


1. 圖形界面

Turn Off,之后重新Connect

2. The first and recommended command to restart your network is:

$ sudo netplan apply

3. Network restart for networkd managed systems
The following commands will restart network interface enp0s3
$ sudo ip link set enp0s3 down
$ sudo ip link set enp0s3 up

4. Network restart for NetworkManager managed systems
$ sudo nmcli networking off
$ sudo nmcli networking on

5. Alternatively you can try to restart your network with System V init script:
$ sudo /etc/init.d/network-manager restart


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM