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
0 answers
19 views

network connection information

When a network connection is created, using UI, whether it is connected or not connected, we can see which network device is attached to. Is there a command that we can use to see the network ...
user avatar
  • 21
0 votes
1 answer
53 views

Ubuntu Server 22.04 LTS not finding iPhone Hotspot?

I'm trying to connect to an iPhone 12 Pro Wifi hotspot but nmcli won't even list the SSID. Force connecting to the known SSID obviously also doesn't work. I am able to connect to it using other ...
user avatar
  • 101
0 votes
1 answer
81 views

nmcli and nmtui both don't allow me to modify a connection. Settings plugin does not support modifying connections

nmcli con mod "Ifupdown (eth0)" ipv4.addresses 192.168.50.188/24 Error: Failed to modify connection 'Ifupdown (eth0)': failed to update connection: settings plugin does not support ...
user avatar
2 votes
2 answers
43 views

is there a difference between using NetworkManager.conf and using nmcli

In NetworkManager.conf, I can specify [keyfile] unmanaged-devices=interface-name:vboxnet0 I can also use nmcli as follows nmcli device set vboxnet0 managed no is there a difference between these two ...
user avatar
  • 21
0 votes
1 answer
239 views

nmcli not showing connection

I imported L2TP/IPsec VPN connection configuration file from Ubuntu mate 20.04 /etc/NetworkManager/system-connections/ to Ubuntu server 20.04 Next, on the Ubuntu server 20.04 PC, I check the nmcli ...
user avatar
  • 11
0 votes
0 answers
39 views

Force network interface with nmcli?

I want to connect to a specific BSSID via nmcli. I am using the command: nmcli d wifi connect xx:xx:xx:xx:xx:01 While it kinda works, it wants to force connection via wlan0 network interface. Is ...
user avatar
0 votes
0 answers
666 views

WiFi Direct / Networkmanager / Ubuntu 20.04

I got a case when I need to establish WiFi Direct (WiFi-P2P) by using NetworkManager (nmcli). As for now, I use Ubuntu 20.04. It seems that my network adapter should support WiFi-P2P connections. iw ...
user avatar
1 vote
1 answer
217 views

Can't select network in GNOME Settings

I connected my Wi-Fi when installing Ubuntu and it is still working; I'm using it right now to write this question. After that, I never opened network settings until now. That said I'm unable to ...
user avatar
2 votes
0 answers
206 views

WiFi networks not showing in Ubuntu 20.04 LTS

I tried to fix my broken grub from a Manjaro live USB using grub-install following which I couldn't connect to wifi networks. I can however use Bluetooth tethering to access internet. Wifi works ...
user avatar
  • 21
0 votes
0 answers
405 views

Configure ip-sec VPN with nmcli

I want to configure a ip-sec VPN connection from nmcli because it runs on Ubuntu 20.04 Server without X Server. I already have a connection file on another machine, so at the end of the process I ...
user avatar
  • 375
0 votes
1 answer
106 views

Is this a security backdoor? [duplicate]

I just realised nmcli commands don't ask me password for sudo access, but ends up modifying a file under /etc/NetworkManager/system-connections/ which is root-only access. How is this allowed? What's ...
user avatar
0 votes
0 answers
177 views

nmcli - how can I force a specifiv channel/band (for wifi performance testing)

Please observe my attempt here: andre@E6530:~$ nmcli -f in-use,freq,ssid,bssid,signal,bars dev wifi IN-USE FREQ SSID BSSID SIGNAL BARS 2462 MHz VALHALL A2:6C:AC:...
user avatar
  • 1,289
1 vote
0 answers
1k views

nmcli: Proper way of scanning WiFi networks

I am writing a script where I need to switch WiFi networks. How should I scan if the WiFi I want to connect is available or not? I tried the following: nmcli dev wifi list Issue: It lists previously ...
user avatar
0 votes
0 answers
58 views

(nmcli con up/down ens33 /nmcli con mod ens33 ipv4.method auto ) does not use ubuntu 20.10

run the command nmcli con up ens33 they show (Error: unknow connection 'ens33') but i can run nmcli show device / nmcli dev status / .... apt install network-manager is already install
user avatar
1 vote
1 answer
659 views

Issue while checking network connectivity using nmcli in ubuntu 18.04

I am using "nmcli networking connectivity" command to know the connectivity of my wifi connection. After establishing the connection with a wifi & if I see that it has no internet ...
user avatar
0 votes
0 answers
59 views

2 WiFi-Nets behind a single SSID, how to connect to a specific one?

My wifi router is sending at both 2,4 GHz and 5 GHz ranges. I want to connect to a 2,4 GHz WiFi. However my Ubu 20.04 box always connects to a 5 GHz channel under the common SSID. I can sudo iwlist ...
user avatar
0 votes
0 answers
41 views

Use login credentials for NetworkManager connection, preferably encrypted

I am wondering if it is possible to use the login credentials to connect to a wireless WPA2 connection in NetworkManager, e.g. using PEAP. I need this for any new users. So they should be able to ...
user avatar
2 votes
1 answer
38 views

List network SSID only

I need to get all nearby network SSIDs. I'm using: nmcli dev wifi list Which works great! But I need just the SSIDs for printing in an app. Any ideas?
user avatar
2 votes
0 answers
308 views

Setting up Hotspot, I get Error: Connection activation failed: No suitable device found for this connection

Using Ubuntu 18.04 and a TP Link WN722Nv2 USB to Wireless adaptor I have been unable to setup a WiFi hotspot. I have tested the H/W on 18.04, connecting to a WiFi router, which works fine. I have ...
user avatar
0 votes
0 answers
1k views

NetworkManager CLI hotspot: 802.1X supplicant took too long to authenticate

I am trying to create a wifi hotspot/AP using NetworkManager CLI (nmcli). All works well if I create it for 2.4GHz band=bg. But, if I set band=a for 5GHz, I get a timeout failure from wpa_supplicant ...
user avatar
  • 1
0 votes
1 answer
403 views

Need Fix for NetworkManager Openvpn, prepending extra-path to crt-path

When adding a openvpn ovpn-file through the network GUI (and nmcli too), and trying to connect, it fails. But it works if I manual are connection with openvpn through the terminal. After a look in the ...
user avatar
1 vote
1 answer
966 views

How to enter SIM PIN with new network manager (Ubuntu 20.04.1)

On my Ubuntu 20.04.1 tablet I try to get WWAN working. But after insert of the SIM card, there is no prompt for the SIM PIN. Therefore, the ttyHS2 device is "not available", I assume (if ...
user avatar
  • 767
1 vote
0 answers
49 views

Set up laptop as access point

I want to use my laptop as an access point to extend coverage in my house. The laptop is connected via ethernet to the router that also provides the rest of the house with wifi. I can start a hotspot ...
user avatar
  • 263
1 vote
3 answers
2k views

How do I get my Network (and settings) back in 20.04?

I have lost my network connections (Ethernet, WiFi and Bluetooth) on Ubuntu 20.04. I don't know what I did to lose them, but after a reboot, they had gone. There is no network icon in the system tray ...
user avatar
2 votes
2 answers
1k views

How to set a static ip address on a local network using NetworkManager?

What I did I am trying to create a wifi connection with a static ip using NetworkManager. Following are the steps of that process using the nmcli command. Connection settings, I created a new ...
user avatar
  • 159
4 votes
1 answer
608 views

How to add a wifi connection if I'm not within range

I'm refurbishing laptops (Ubuntu 20.04) to hand out to kids as part of combating digital exclusion during COVID-19. Obviously I don't want to give them sudo access, however, I can't enter their houses ...
user avatar
0 votes
0 answers
321 views

Trouble assigning static IP using nmtui

I am trying to assign static IP to Ubuntu Server (installed in VirtualBox). To do that I have done the following changes to Server Machine: Installed Network Manager tools to use nmcli/nmtui. Set ...
user avatar
1 vote
0 answers
1k 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
3 votes
2 answers
9k 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....
user avatar
  • 31
1 vote
1 answer
480 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 ...
user avatar
1 vote
0 answers
690 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 ...
user avatar
  • 113
9 votes
3 answers
33k 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 ......
user avatar
  • 253
2 votes
1 answer
84 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 ...
user avatar
1 vote
1 answer
4k 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 ...
user avatar
4 votes
1 answer
5k 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 '...
user avatar
  • 1,306
1 vote
0 answers
48 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 ...
user avatar
1 vote
2 answers
6k 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 ...
user avatar
1 vote
1 answer
1k 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)--->...
user avatar
2 votes
1 answer
5k 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 1,691
0 votes
2 answers
490 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 ...
user avatar
0 votes
1 answer
646 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. ...
user avatar
18 votes
3 answers
105k 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 ...
user avatar
  • 586
3 votes
1 answer
95 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. ...
user avatar
  • 935
0 votes
0 answers
577 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 ...
user avatar
8 votes
5 answers
18k 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 ...
user avatar
  • 3,510
0 votes
1 answer
3k 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 ...
user avatar
  • 2,631
2 votes
1 answer
677 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 ...
user avatar
  • 203
5 votes
1 answer
4k 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 ...
user avatar
  • 435