Questions tagged [nmcli]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
90 views

Unable to use USB Tethering in Jetson Nano

I have a Jetson nano that is running Ubuntu 18.04 LTS. I need internet access on the jetson. Currently, the only internet connection that I have is on my phone. I tried to tether my phone to the ...
0
votes
0answers
40 views

How do I connect to the VPN via console?

I've successfully imported .ovpn profile by command nmcli connection import type openvpn file myvpn.ovpn now I have this connection in the list: # nmcli con NAME UUID ...
1
vote
1answer
119 views

NetworkManager via D-Bus: Add a network bridge

I'm trying to use the D-Bus interface of NetworkManager to add and enable a network bridge connection. Basically I'm trying to mimic this command: nmcli connection add type bridge ifname br0 stp no ...
1
vote
0answers
53 views

What is the correct way to restart nmcli interface remotely?

On Ubuntu 18.04, NetworkManager is used. After modifying the configuration of an interface remotely, using the NetworkManager CLI. Example: nmcli connection modify (interface_profile_name) ipv4....
0
votes
1answer
57 views

nmcli problem after the installation of network-manager

I installed network-manager. But the nmcli does not work with the error below. ens33: unmanaged ... lo: unmanaged ... I started bind9 before this by systemctl restart bind9. I want a ...
0
votes
0answers
204 views

Wifi adapter will not accept any password (Error 7)

I had to roll back my Kubuntu 19.10 from kernel 5.3.0-24-generic to 5.3.0-23-generic via sudo apt-get purge linux-image-5.3.0-24-generic sudo apt-get purge linux-headers-5.3.0-24-generic because PC ...
1
vote
2answers
2k views

Why is nmcli not configuring device?

I'm new to nmcli and trying to figure out how to create an eth0 connection. sudo nmcli con prints the following: NAME UUID TYPE DEVICE MyWlan0 ... wifi wlan0 MyEth0 ......
2
votes
1answer
52 views

Connection issue in Ubuntu 18.04, everything looks good

I was setting up a TOR connection and all of a sudden I can't connect to anything. I've uninstalled TOR and I can't get connected to my wireless router. The icon shows connection, and nmcli general ...
0
votes
0answers
71 views

How to configure openSSH server using nmcli on ubuntu?

Today in order to update attribute on openSSH server I need to open and update sshd_config file using an editor (vi). Do I have nmcli commands to update the attributes on that file? for example, I ...
0
votes
0answers
150 views

18.04 Network Manager GUI shows eno1 and eno2 instead of profile IDs

I installed 18.04 server and added the Gnome desktop software. I have 2 Ethernet ports, eno1 which I set for DHCP and eno2 which I set for static. nmcli con add con-name ExtNetwork ifname eno1 type ...
0
votes
0answers
566 views

Rescan network with nmcli

I am writing a small script to continuously scan wifi network. I am using nmcli for that purpose : nmcli device wifi list I periodically (every x seconds ) call this command in my script to search ...
1
vote
1answer
540 views

Turn on interface using nmcli

I would like to turn my interface on, using nmcli command. Command nmcli device connect wlp2s0 does not work for me, it gives me this error : Error: Failed to add/activate new connection: A '...
1
vote
0answers
28 views

Ubuntu 16.04 LAN is not detected

I am using Ubuntu 16.04 LTS with i3 desktop environment. My ifconfig command shows the following output- docker0 Link encap:Ethernet HWaddr 02:42:49:4f:16:2a inet addr:172.17.0.1 ...
0
votes
2answers
2k 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
629 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
1k 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
525 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
2answers
203 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
365 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. ...
8
votes
1answer
38k 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
83 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
431 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 ...
3
votes
2answers
4k 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
2k 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
307 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 ...
5
votes
1answer
3k 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 ...
9
votes
1answer
7k 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
869 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 ...
1
vote
0answers
2k 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 ...
1
vote
1answer
5k 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: ...
1
vote
1answer
3k 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
11k 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
769 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
143 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
407 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 ...
6
votes
3answers
11k 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
83 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
119 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
274 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
2k 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
818 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
3k 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 ...
4
votes
1answer
4k 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
36 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
5k 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 ...
9
votes
3answers
23k 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
574 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
3answers
3k 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
74 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. ...