Nmcli

来自三线的随记
Admin讨论 | 贡献2018年5月17日 (四) 13:26的版本

安装

network-manager

相关命令

nmcli[ OPTIONS ] OBJECT { COMMAND | help }

nmcli connection show

nmcli connection show --active

Define a new connection named "default" whic will autoconnect as Ethern connection on the eth0 device using DHCP

nmcli connection add con-name "default" type ethernet ifname eth0