Nmcli:修订间差异

来自三线的随记
无编辑摘要
无编辑摘要
第3行: 第3行:


=== 相关命令 ===
=== 相关命令 ===
nmcli[ OPTIONS ] OBJECT { COMMAND | help }
<pre>
nmcli[ OPTIONS ] OBJECT { COMMAND | help }</nowiki>


nmcli connection show
nmcli connection show


nmcli connection show  --active
nmcli connection show  --active
</pre>


Define a new connection named "default" whic will autoconnect as Ethern connection on the eth0 device using DHCP
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
  nmcli connection add con-name "default" type ethernet ifname eth0

2018年5月17日 (四) 13:28的版本

安装

network-manager

相关命令

nmcli[ OPTIONS ] OBJECT { COMMAND | help }</nowiki>

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