1:nmcli con mod eno1 ipv4.dns "114.114.114.114 8.8.8.8" eno1:为网卡名 2:nmcli con up eno1 激活网卡 转载于:https://www.cnblogs.com/JansXin/p/7519212.html