Fedora Command Line Networking
Sunday, April 14, 2019
Networking from the Fedora 29 command line.
NetworkManager is a GUI,
is the command line application for NetworkManager.
and hitting return or enter provides information about devices, their addresses, and
nmcli [tab] [tab]
will give the information about what options are available for nmcli.
after the command is your friend and will show appropriate options.
Entering nmcli device and nmcli device status will return the same information about network devices and their
$ nmcli device
$ nmcli device status
nmcli connection show
provides an even more detailed view of the devices and their
To enable an existing connection:
# nmcli connection up [NAME]
To disable an existing connection:
# nmcli connection down [NAME]
Talking about wireless or wifi
will display various wifi devices.
nmcli radio wifi
will display the wifi status, and
nmcli radio wifi on
nmcli radio wifi off
will enable or disable the radio.
$ nmcli radio wifi
# nmcli radio wifi on
# nmcli radio wifi off
To see a list of wireless networks:
# nmcli device wifi connect [SSID] password [PASSWORD]
A helpful 1 liner:
$ nmcli -f in-use,ssid,bssid,rate,signal,bars dev wifi