nmcli n 查看nmcli状态
nmcli n on 启动nmcli
nmcli c up eth0 启动网卡eth0
nmcli c down eth0 关闭网卡eth0
nmcli d c eth0 激活网卡
nmcli d show eth0 查看网卡eth0信息
nmcli r all off 关闭无线
nmcli n 查看nmcli状态
nmcli n on 启动nmcli
nmcli c up eth0 启动网卡eth0
nmcli c down eth0 关闭网卡eth0
nmcli d c eth0 激活网卡
nmcli d show eth0 查看网卡eth0信息
nmcli r all off 关闭无线
转载于:https://www.cnblogs.com/jacktian-it/p/11589120.html