Difference between revisions of "nmcli guide"

From thelinuxwiki
Jump to: navigation, search
(device info)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 +
 +
==list wifi APs==
 +
$ '''nmcli device wifi list'''
 +
 +
==adding a new connection==
 +
 +
nmcli con add con-name <connection name> ifname <wifi interface name> type wifi ssid <wireless ssid>
 +
 +
$ sudo nmcli con add con-name homewifi ifname wlan0 type wifi ssid homewifi
 +
 +
==connect to wifi AP==
 +
$ '''nmcli con up <ssid>'''
  
 
== networkmanager status ==
 
== networkmanager status ==

Latest revision as of 14:18, 9 July 2019

Contents

list wifi APs

$ nmcli device wifi list

adding a new connection

nmcli con add con-name <connection name> ifname <wifi interface name> type wifi ssid <wireless ssid>

$ sudo nmcli con add con-name homewifi ifname wlan0 type wifi ssid homewifi

connect to wifi AP

$ nmcli con up <ssid>

networkmanager status

connection status

device info

# nmcli dev show eth0
GENERAL.DEVICE:                         eth0
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         F0:1F:AF:19:F9:AB
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     eth0
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager /ActiveConnection/0
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         192.168.167.7/25
IP4.GATEWAY:                            192.168.167.3
IP6.ADDRESS[1]:                         fe80::f21f:afff:fe19:f9ab/64
IP6.GATEWAY:                            
IP6.ROUTE[1]:                           dst = ff00::/8, nh = ::, mt = 256