Questions tagged [nmcli]

Nmcli (Network Manager Client) is a command-line tool for controlling NetworkManager.

Purpose

nmcli lets you connect to the Internet via the command-line.

Further Reading:

http://fedoraproject.org/wiki/Networking/CLI http://manpages.ubuntu.com/manpages/maverick/man1/nmcli.1.html

174 questions
22
votes
3 answers

Assigning static IP address using nmcli

So I'm trying to give a VM a static IP address, this case has been particularly stubborn. The VM is running on a ESXi cluster with its own public IP range. I had it (sorta) working with an IPv4 address, except it would be reassigned every boot, now…
Space Bear
  • 323
  • 1
  • 2
  • 5
21
votes
3 answers

network manager not listing wifi

When I use NetworkManager command tool to scan for wireless networks the output is empty. root@radxa:~# nmcli dev wifi list SSID BSSID MODE FREQ RATE SIGNAL SECURITY ACTIVE root@radxa:~# but if use iwlist, the scan is…
guanghai lu
  • 311
  • 1
  • 2
  • 4
21
votes
3 answers

Import VPN config files to NetworkManager from command line

One can import .ovpn files to NetworkManager through GUI tool nm-connection-editor (right click on nm-applet and click on Edit connections): Add -> Import a saved VPN configuration.... My goal is to do same thing but via command line using tools…
petRUShka
  • 1,182
  • 5
  • 17
  • 29
17
votes
2 answers

How do I use NMCLI to create a Wifi connection & connect to SSID over WPA?

Environment BeagleBone Black running Debian 7.7 nmcli tool, version 0.9.4.0 I tried some command examples to get started, however none helps me to add a connection and connect. Devices # nmcli dev DEVICE TYPE STATE wlan0 …
zabumba
  • 904
  • 10
  • 28
  • 50
15
votes
2 answers

Use nmcli to display the status of a connection

I'm wondering how to display a connection status using nmcli. I understand that the following will display a list of configured connections: nmcli con show And I also understand that the following will show only active connections: nmcli con show…
Khaled Abuelenain
  • 173
  • 1
  • 2
  • 8
14
votes
5 answers

Remove secondary IP with NetworkManager / nmcli

I tried to assign a static IP to my Ubuntu 16.04 server using nmcli, which worked but it still has the original IP reserved as a "secondary" IP. I'm not sure how to get rid of it. 10.163.148.36 is the original IP of the server and 10.163.148.194…
ravishi
  • 285
  • 1
  • 2
  • 7
14
votes
4 answers

How to connect to an 802.1x wireless network via nmcli

I am able to connect to 802.1 networks via the nm-applet. I do not like doing this as I am running without a nm most of the time and I would hate to load up one just to connect to a wireless network. When connecting to an 802.1 network I get the…
tensai
  • 303
  • 1
  • 2
  • 7
13
votes
2 answers

Cannot connect to WiFi with nmcli, although secrets are provided

I am using nmcli on ArchLinux (version 1.14.5dev+17+gba83251bb-1 from the official package repository) to connect to wifi. This works perfectly for all wireless networks apart from this one Vodafone EasyBox network. Trying to activate the connection…
msrd0
  • 490
  • 2
  • 8
  • 22
13
votes
2 answers

nmcli disconnect without turning wifi card off?

My wifi card keeps connecting to a wifi network which is on a channel that prevents me from making a hotspot. I'm trying to turn the connection off from command line. I have tried a few things: nmcli radio wifi off and ifconfig wlo1 down Problem…
Philip Kirkbride
  • 9,816
  • 25
  • 95
  • 167
12
votes
4 answers

How to update the gateway with nmcli

I'm using CentOS 7 and I setup a new connection with nmcli. I set the gateway but it doesn't seem it took. When I check the connection with nmcli con show conn-name the gateway is listed as: gw = 0.0.0.0 I can't find how you add/modify the gateway…
Oscalation
  • 1,109
  • 4
  • 15
  • 27
12
votes
2 answers

What are the most reliable wifi commandline tools? iw vs wpa_cli vs nmcli

I am exploring a few low-level tools for connecting to wireless networks, and I found the following tools (with useful documentation/tutorial links): iw wpa_cli nmcli I cannot seem to find a thorough evaluation of these tools, or of similar tools.…
modulitos
  • 3,097
  • 8
  • 29
  • 44
10
votes
1 answer

nmcli: Select BSSID when two access points have the same SSID

I'm having trouble getting nmcli to connect the right access point when there are two with the same SSID. Ideally Network-Manager should connect to the one with the strongest signal, but it always seems to connect to the same one. I can't even force…
David Purton
  • 311
  • 2
  • 9
10
votes
4 answers

how do I attach devices to connections using nmcli?

An installation of CentOS 7 has two connections and three devices. How can I attach the device ens7 to the connection my-bridge? And how can I attach the device eth0 to the connection my-eth1? Here is the relevant data from the terminal: …
CodeMed
  • 5,079
  • 45
  • 100
  • 147
8
votes
4 answers

Get connected Wi-Fi network signal strength with nmcli

I'm able to get the signal strength of all Wi-Fi networks with the following command: $ nmcli -t -f SIGNAL device wifi list $ 77 67 60 59 55 45 44 39 39 37 I would like to reduce this list only to the current Wi-Fi on which I'm…
Grégoire Borel
  • 183
  • 1
  • 1
  • 4
8
votes
6 answers

Parse colon-separated value pairs (nmcli output) and convert to JSON fromat

I've written a script that converts the output of nmcli --mode multiline dev wifi into JSON, but I'm finding it's inconsistent (breaks when results have a space), long, and hard to read. I wonder if it is possible to pipe the results directly into…
Philip Kirkbride
  • 9,816
  • 25
  • 95
  • 167
1
2 3
11 12