1.nmcli connection delete ethernet-eno16777736 删除
2.nmcli connection show 查看连接状态
3.nmcli device show
4.nmcli connection add con-name eno16777736 type ethernet ifname eno16777736
使用下列命令停止某个接口:
nmcli device disconnect eno16777736
下列命令用来启动接口:
nmcli device connect eno16777736
[root@localhost network-scripts]# cat ifcfg-eno16777736
HWADDR=00:0C:29:30:8B:E0
TYPE=Ethernet
BOOTPROTO=none
NAME=eno16777736
UUID=762367a4-3370-48a4-99e1-23650f777116
DEVICE=eno16777736
ONBOOT=yes
IPADDR=192.168.11.2
NETMASK=255.255.255.0