Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nmcli]

Questions about the command-line interface for NetworkManager. The command-line interface is available at least from Ubuntu 12.04.

0
votes
2answers
103 views

Won't automatically reconnect wifi on startup (18.10)

Started having this problem in 18.04 before I upgraded. Wifi will not automatically reconnect when I reboot. It requires me to reselect the network and reenter the password each time. Tried ...
1
vote
1answer
103 views

Destination Host Unreachable sharing WiFi from Ubuntu to Win10

I'm trying to share my wireless connection (wlp1s0b1) on my Ubuntu 16.04 headless laptop to my Windows 10 PC via ethernet (enp0s9). This is a diagram of my network: Router (198.168.0.1)---(wifi)--->...
0
votes
1answer
135 views

nmcli, how to get “connection.id” or “general.name” of device

I am writing a script on 16.04; to show connection identification, especially for VPN connections, by listing active connections with ip -o link sh up | awk 'BEGIN{FS=": "} $2!="lo" {print $2}' and ...
1
vote
1answer
182 views

nmcli connection verification failed

I'll paste the sequence of commands I'm trying to run to configure desktop Ubuntu 18.04 NetworkManager according to the answer in this SO question. When I perform the steps in the answer I end up with ...
0
votes
0answers
143 views

Ubuntu 18.04 VNC server Vino shut down unexpectedly.

My Vino server on Ubuntu stops, and I not sure why, but it looks like it is because Ubuntu makes my manually set LAN interface as default for routing: I decide this route change cause Vino shut down ...
0
votes
1answer
69 views

nmcli device wifi list only sees open networks

Running a scan with nmcli device wifi list is only showing me entries for routers that do not use any WEP/WPA encryption. I can see about 30 different routers from my phone's wifi scan. The only ...
0
votes
1answer
183 views

nmcli not installed, how to add ssid and password?

I am trying to use my hotspot to upgrade this computer, but I don't know how to add the ssid and password. I only have the terminal to work with. I want to go from Ubuntu 17.04 to Lubuntu 18.04. ...
0
votes
0answers
17 views

What should you keep in mind when manually adding connection using IP address and Gateway using nmcli

I am newbie at Linux, so I am learning to make a manual connection without using DHCP using my Ethernet so that it connects to internet. After creating a new connection and activating it, I can't ping ...
2
votes
1answer
5k views

Set static IP on Ubuntu Core

I'm new to Ubuntu Core. On first login I selected the option: Will use DHCP for IPv4 Now I'd like to change my machine to use a static IP to be easier to log in remotely. I ran sudo console-conf ...
3
votes
1answer
74 views

Ubuntu MATE - Shutting down wifi hardware to conserve energy RaspberryPi

I'm trying to shut down wifi HW (not only disconnecting) for the sake of keeping my battery as much as possible. I'm using nmcli to connect/ disconnect wifi everytime a message is needed to be sent. ...
0
votes
0answers
236 views

How to connect VPN L2TP/IPSEC

we got a issue when attempt connect to vpn across to L2TP/IPSEC on Ubuntu 16.04.4 (DigitalOcean), we configure the Network Manager ($ nmcli) and install package 'Layer 2 Tunneling Protocol Network ...
2
votes
1answer
1k views

nmcli the WiFi network could not be found

I'm running a headless device that I want to connect to wifi(it's currently on ethernet), so I'm using nmcli. I scan for connections with the following: sudo nmcli dev wifi rescan sudo nmcli dev wifi ...
0
votes
1answer
810 views

modem-manager with Quectel EC21

I'm running Ubuntu Core on a Raspberry Pi Compute Module 3 (and IO board), and have a Quectel EC21 LTE modem connected to it via USB. I'm struggling to get it to work. Following the guide on the ...
2
votes
1answer
133 views

Cron job - need script to start VPN if not already running for job

I have mirror repos that I use as reference for multiple builds throughout the day. I would like to have a cron job that runs every night and does a repo sync for each of my repos. MY problem is some ...
3
votes
1answer
1k views

NetworkManager vpn con fails when no gateway

When I try to activate an OpenVPN connection using the network manager command: nmcli connection up vpn_conn I get the following error: Error: Connection activation failed: Could not find source ...
6
votes
1answer
2k views

Get a list of network manager network connections with bash?

I want get list of Ethernet and Wireless connections in terminal. these are listed in network manager gui and get info on connections like SSid etc. Next step is to delete unwanted
2
votes
1answer
379 views

Computer will not stay connected to wifi

Our wifi password at work recently changed. I edited the old connection to have to new password by $ nmcli connection edit "Internet" $ set wifi-sec.psk <password> $ save persistent $ activate ...
0
votes
0answers
801 views

Issues with nmcli on Ubuntu 16.04.3 LTS

I am trying to make it work but run into the following : remstr@DESKTOP-V1MD90G:~/ng$ nmcli nm Error: Object 'nm' is unknown, try 'nmcli help'. remstr@DESKTOP-V1MD90G:~/ng$ nmcli -v nmcli ...
0
votes
1answer
2k views

How do I to set the DNS server for a device using nmcli?

How do I set the DNS server to be 8.8.8.8 and 8.8.4.4 through the CLI with nmcli? $ nmcli device show eno1 GENERAL.DEVICE: eno1 GENERAL.TYPE: ...
0
votes
1answer
1k views

List of all available WiFi APs and their signal strength

I am trying to write a terminal command to list all available WiFi Access points along with their signal strength. The search led me to the following command: nmcli dev wifi list The output of this ...
0
votes
1answer
5k views

nmcli command not found ubuntu 16.04

I'm trying to create a hotspot in ubuntu so I need to disable the wifi. When tried the command nmcli radio wifi off it returns the message bash: nmcli: command not found. Is there anyway to install ...
0
votes
0answers
528 views

nmcli radiow wifi on command not enabling wifi for new Ubuntu install

I'm sort of new to Linux and Ubuntu. When I run the nmcli radio wifi command, I get the disabled message. When I then set it to nmcli radio wifi on, it doesn't change it from disables to enabled. ...
1
vote
0answers
132 views

Wifi connects but no internet (Ubuntu Server)

I'm running Ubuntu server 16.04 LTS and I'm trying to use internet through WiFi I already have a working internet connection with an ethernet cable on the same machine. I'm running into a weird issue ...
0
votes
0answers
308 views

Why is there no easy PERMANENT way to spoof your wifi Mac address on ubuntu?

I apologize in advance for my feelings of unhappiness. I have been looking at all the alternatives out there to spoof my Mac Address on ubuntu. What I want is to spoof my Mac Address and for it to ...
2
votes
3answers
6k views

How to toggle NetworkManager's “Use this connection only for resources on its network” option via command line

At my work we have some test machines that we run scripts on via ssh. During the test we want to only have the machines access the local network through their Ethernet connection, but then would like ...
1
vote
0answers
1k views

Ubuntu 16.04.2: Excessive DHCPDISCOVER in syslog

I have an Ubuntu 16.04.2 server with 5 network interfaces (eth0-eth4). The server started with 4 static interfaces. ETH0,2 = WANs (with static public ips) ETH3 = WAN (with static private ip) ETH1 = ...
0
votes
1answer
70 views

nmcli question for ubuntu

When I type in nmcli con it gives me a list of all previous connections, how do I delete these past connections it shows Nmcli delete cents --- doesn't work Nmcli --delete uuid --- doesn't work
2
votes
0answers
99 views

Can I access network-manager.nmcli from another snap?

I need to be able to access network-manager.nmcli command from my snap. I have not found a way to accomplish this with the current core or network-manager interfaces. Is the only solution that a slot ...
0
votes
1answer
177 views

nmcli creates new wifi profiles everytime I connect

I am trying to connect to a wifi AP using this command - nmcli device wifi con ap2ap_data iface wlan0 But every time I use this I can see new wifi profiles like ap2ap_data 1, ap2ap_data 2, ...
1
vote
1answer
1k views

What is the new syntax for `nmcli show` and `nmcli modify`?

This has been asked before at https://unix.stackexchange.com/questions/114364/nmcli-no-longer-allow-settings-modification - but never answered. So I'll try asking here: You can see from diverse posts ...
0
votes
1answer
538 views

NMCLI and IWCONFIG show very different signal levels

I'm running Ubuntu 14.04 and I keep losing WiFi connectivity. This is a headless setup so I do everything over the command line. While investigating my issue I noticed that the signal strength ...
3
votes
1answer
2k views

How can I force a connection to a specific WiFi network using nmcli?

NetworkManager is often extremely slow to scan and detect new networks with my wireless card (rtl8xxxu driver). Using the Network Manager GUI I can "force" a connection to a specific wireless network ...
3
votes
1answer
2k views

How to connect to a WPA2 enterprise with nmcli in a non interactive mode?

I am able to connect with nmcli to a WPA enterprise network only in an interactive mode launched by nmcli con edit id MYNAME nmcli refuses to change 802-1x values while not in edit mode: nmcli c ...
0
votes
0answers
29 views

Is there a limit to the number of WiFi networks that Ubuntu/NMCLI can see?

I am running Ubuntu 14.04 LTS, and trying to find information on its ability to see larger numbers of available WiFi networks. I have personally successfully tested up to 32 simultaneously-visible ...
0
votes
1answer
2k views

Connection does not exist with nmcli even if scanned with iwlist

I use to run the command to connect to the wifi network m<essid nmcli -p con up id myessid Sometimes and for unknown reason, `nmcli` gives me `Error: Connection 'myessid' does not exist even ...
7
votes
3answers
15k views

How can I connect to a specific BSSID?

There are multiple wireless networks available with same SSID. I am looking for a solution to connect to a specific one (by BSSID). nmcli con up ifname ap seems good, but, unfortunately, it's not ...
1
vote
0answers
432 views

nmcli edit connection not avaiable

Ubuntu version: 14.04 Network manager enabled. I am using SSH connection and I would like to edit a connection through nmcli connection edit, but it just no available. I checked all available ...
1
vote
2answers
2k views

wifi still sleeping when resume

When I put my desktop in hybernate and then put it back on the wifi is gone. It is simular to the problem described here. But to fix it you have to run a command sudo nmcli nm sleep false. But the nm ...
0
votes
1answer
71 views

Re-use wifi network settings across different wifi usb dongles

I have 3 odroid wifi module 4 usb dongles (RT5572N chipset) that, for various reasons, I need to be interchangeable. I set everything up with one, connected to a couple wifi networks and all is fine. ...
3
votes
0answers
573 views

Difference between iwconfig and nmcli

When I run the command nmcli dev wifi in my console I get the list of wifi networks, including the one I'm connected to * SSID MODE CHAN RATE SIGNAL BARS SECURITY * ...
1
vote
1answer
2k views

How do I use nmcli to display the default route

I am using nmcli version 0.9.10.0 How can I use nmcli to determine the default route - after connecting? How come the results I see under "Connection Information" (nm-applet) is different to the ...
2
votes
1answer
677 views

What is the unit of the “signal” when running nmcli?

What is the unit of the signal returned when I run nmcli dev wifi list? The confusing part is that the signal result is different when I run iwlist wlan0 scan nmcli output: SSID ...
0
votes
1answer
2k views

nmcli dev connect?

nmcli has an option to disconnect a device ( nmcli dev disconnect iface mydevice) but it doesn't have a connect command. How can I connect a device which was disconnected? My device is not a wifi. ...
1
vote
0answers
1k views

Creating a WWAN profile in NMCLI, or alternate way of connecting to 3G via CLI?

I need to connect to the internet via a TP-Link MA260. After spending hours with usb_modeswitch and other tools, I finally got the device to be recognised as a modem and have the interface wwan0. I'...