Questions tagged [nmcli]

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

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

nmcli dev shows weird '\024\353\266G\005\271 wifi unavailable -- '

I am using Ubuntu 20.04 and tried to install 'TP-Link 802.11ac WLAN Adapter' After following the procedure here, cannot connect to wifi and nmcli dev shows weird '\024\353\266G\005\271 wifi ...
user avatar
0 votes
0 answers
25 views

nmcli - delete / replace DNS [Ubuntu 22.04 LTS]

I have a problem with slow DNS queries while in VPN. Until the Problem is fixed, I want to delete / replace a specific DNS. What I've tried so far: Change DNS in "Connections - System Settings&...
user avatar
0 votes
0 answers
25 views

nmcli doesn't show some SSIDs while iwlist does

I can't connect to some SSIDs because nmcli doesn't show them whenever I run: ~ via ⬢ v16.15.0 ➜ nmcli d w r & nmcli d w l [1] 29060 [1] + 29060 done nmcli d w r IN-USE BSSID ...
user avatar
  • 11
0 votes
1 answer
43 views

How can I permanently change a network device name in CentOS8?

I want to permanently change the device name of a network interface using a portable script. The interface gets the ugly name of enp02fghjkl1. I want to give a pretty name of netface1. I have tried ...
user avatar
  • 639
0 votes
0 answers
38 views

RHEL 7.9 how to use nmcli to remove an ip address?

I want to use nmcli to remove an ip address on an interface. I want the interface to have no ip address. I tried the following but nothing works nmcli con mod eth0 ipv4.address; nmcli con up id eth0 ...
user avatar
  • 294
0 votes
0 answers
31 views

Network manager cant see wifi

I cant find or connect to any wifi networks through my DE and through the terminal I'm using a Debian 11 installation that includes non free firmware with GNOME DE on a Thinkpad. The official ISO ...
user avatar
0 votes
0 answers
23 views

networkmanager / nmcli - possible to ignore connection.secondaries for a single connection?

TL;DR - If you have your ethernet connection defined with "connection.secondaries" in networkmanager / nmcli (to auto-connect to a vpn), is there a way to skip / ignore / override the ...
user avatar
  • 317
0 votes
1 answer
121 views

Hotspot / Access Point configuration - embedded Linux

I am running an Ubuntu 16.04 derived Linux on an embedded processor, Yocto build Kernel appears to be 4.14.141 I am bringing up a WiFi Access point on the hardware programmatically from C by enabling ...
user avatar
  • 101
0 votes
0 answers
35 views

Limit the bit rate of my wifi adpter

I'm using laird ST60 USB wifi adapter. I used the nmcli command to check my bit rate and it shows 270Mbit/s: This baud rate is really heavy on my USB bandwidth when I actually only need like 50Mbit/s,...
user avatar
0 votes
0 answers
18 views

My nmcli hotspot broke down since an update, how can I troubleshoot the cause?

Hey I got a fedora desktop PC in my student dorm that I use as a hotspot. I use a hotspot created with nmcli dev wifi hotspot con-name "$name" ssid "$name" password "$password&...
user avatar
  • 211
0 votes
2 answers
125 views

RHEL 8 - How can I modify an ethernet device name?

I am trying to modify the ethernet device name without modifying grub. I have tried to modify the device name, but when I do, the device stops working. Things I have tried: I've tried this nmcli con ...
user avatar
  • 639
0 votes
1 answer
371 views

Why does networkmanager change device state to unavailable?

Using a Yocto distribution with NetworkManager and NetworkManager-nmcli installed, I am not able to have my wifi wlan0 device leaving the unavailable state. The error message I have is: device (wlan0):...
user avatar
  • 1
2 votes
0 answers
989 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
0 votes
0 answers
106 views

can't connect to wifi with nmcli

I have ArtixLinux and when I'm on Qtile I can't connect to wifi with nmcli. # nmcli --ask dev wifi connect FD-M40-G1-6178 Password: •••••••• Error: Connection activation failed: (7) Secrets were ...
user avatar
0 votes
0 answers
192 views

centos 7 nmcli l2tp vpn using command line

i try to create connection using lt2p vpn but my connection is not start [root@vps10337 system-connections]# nmcli connection add connection.id VPN_2 type vpn vpn-type l2tp connection.interface-...
user avatar
0 votes
1 answer
337 views

How to set connection to down by default with nmcli

nmcli allows to disable a connection using nmcli connection down <id>. But let's say I have a connection that I want to disable by default, and maybe only in rare cases activate it. How can I ...
user avatar
0 votes
1 answer
365 views

nmcli get actual name of interface (e.g. tun0) from connection name

1.) I would like to get the actual name of an interface from the connection name used by nmcli. In my case, I have several VPN-connections, let's call one of them my-vpn. Now, I do nmcli con up id my-...
user avatar
1 vote
1 answer
1k views

How to change network interface name

I am trying to write a bash script to configure a number of network interfaces and have issues with some of the NICs getting a Wired Connection name instead of the device name. E.g. $ nmcli dev status ...
user avatar
  • 239
0 votes
0 answers
59 views

nmcli list all available ssids when hosting Access Point

When using $ nmcli dev wifi list and not hosting an access point the command outputs all available APs. However, if the device hosts an AP, it only shows the hosted one. Is there a way to still see ...
user avatar
  • 1
1 vote
1 answer
273 views

Fixing connection with nmcli, I need to edit / remove IP4.ADDRESS[2] and IP4.GATEWAY values

I have switched my main router and with that the IP addresses ranges from 10.x.x.x to 192.x.x.x and I have a Raspberry Pi running Raspbian which has old data mixed with the new data and it's causing ...
user avatar
  • 121
0 votes
0 answers
112 views

nmcli add a route to dev not a next hop

Need to add a static route with nmcli to a device interface. I would like to mimic a command like this with ip route (traffic sent to the interface NOT a next-hop ip) ip route add 4.4.0.0/30 dev ens4 ...
user avatar
  • 294
0 votes
0 answers
45 views

USB Wifi Device state unavailable with cabled network connected

First off, im a Linux n00b. I have read numerous posts about this but each seem different and none are working for me. I am using a Pandas N600 USB WiFi device for wifi on the Ubuntu20 machine and an ...
user avatar
  • 1
0 votes
0 answers
341 views

nmcli Error: Connection activation failed: (7) Secrets were required, but not provided in raspberry pi

I installed nmcli in my raspberry pi 4 for some reasons, and I connected to my local wifi after a while I got an image from my sd card and right now I use that image file in another sd card with ...
user avatar
0 votes
0 answers
26 views

Connect to wi-fi AP without getting deauthenticated

I'm using NetworkManager to set-up everything automatically, and I perform with wpa_supplicant a wps_pbc to connect to my AP How to keep this method without being deauthenticated every 2 minutes by ...
user avatar
  • 31
2 votes
1 answer
420 views

How to connect to WiFi with nmcli

I am a new Linux user (windows before), and I downloaded Arch Linux last night. The installation was fairly straightforward, but after I rebooted I no longer had connection to WiFi. Thankfully I had ...
user avatar
  • 21
1 vote
0 answers
52 views

nmcli - toggle between connections on same interface

I have a device with ubuntu 18.04 and an ethernet port (as well as WiFi capabilities), and I want the ethernet port to be set either to master or slave mode. By 'master', I mean that I can connect ...
user avatar
  • 111
0 votes
1 answer
28 views

Right syntax of dictionary of key/value pairs

I read through the docs here and here. My goal is to configure a ip-sec VPN connection from nmcli only. I run Ubuntu 20.04 Server without X Server. I already have a connection file on another machine, ...
user avatar
  • 567
0 votes
0 answers
20 views

Getting nmcli to work with g_spawn command

Working on a simple gtk c project and I’m needing a nmcli command which would be easy to trigger using the g_spawn_command_line_sync command but it doesn’t work. For some reason g_spawn doesn’t ...
user avatar
0 votes
2 answers
225 views

nmcli command for Wifi with MSCHAPv2 on Ubuntu 20.04 server on Raspi

My raspberry Pi is on a robot and I don't have (or hope not to be forced to install) any graphical interface. So I want to us nmcli. I've been trying to get the right incantation, maybe someone can ...
user avatar
  • 627
0 votes
2 answers
698 views

nmcli - command line means to delete all wifi / wlan0 connections

I'd like to delete all active or inactive Wifi connections on interface wlan0, with the intention of having a known-empty clean slate to set things up. Is this possible? I was hoping for something ...
user avatar
2 votes
2 answers
5k views

Why does a network connection not change from "unmanaged"?

I'm a month into a disasterous upgrade of my ProtonVPN CLI client from 2.2.6 to 3.7.2 on Ubuntu 18.04, and the VPN still doesn't work (this question is related to my previous question). Here is the ...
user avatar
0 votes
1 answer
935 views

nmcli con up: "Connection activation failed: The Wi-Fi network could not be found"

I'm trying to connect to an already known network via console (to later put this into a script). The most promising command so far seemed to be this one: nmcli con up "Weelaan" ifname wlp4s0 ...
user avatar
3 votes
1 answer
668 views

How do I delete ProtonVPN connections with Network Manager?

On Ubuntu 18.04. I upgraded my ProtonVPN CLI client from 2.2.6 to 3.7.2, which was a gigantic mistake. In troubleshooting the resulting issues, ProtonVPN support has asked me to delete connections ...
user avatar
1 vote
0 answers
287 views

Connecting to open networks using nmcli Wi-Fi network could not be found

I have an an orange pi zero running armbian I am having problem connecting to open networks using nmcli. I can very well connect to my home "WPA1 WPA2" secured network with no issue at all. ...
user avatar
  • 583
0 votes
0 answers
60 views

Limited connectivity through Hotspot

Fedora 31. I am successfully connected to Internet through mobile broadband, and I've created a hotspot over wifi and connected from (Android) phone to that. However I can't reach Internet from the ...
user avatar
2 votes
1 answer
34 views

airplane mode in wpa_supplicant

I believe "airplane mode" on various applets is equivalent to nmcli radio wifi off. What is its equivalence when we use dhcpcd/wpa_supplicant? pkill wpa_supplicant?
user avatar
  • 135
0 votes
0 answers
83 views

How to broadcast a linux machine on LAN before wifi or ethernet connection

If I have a mobile app, capable of scanning devices on my LAN, how can I set up my linux machine (to be present as a device on the LAN), lets say a Raspberry Pi, so that the mobile app can help the ...
user avatar
  • 1
0 votes
1 answer
183 views

why there are lot of tun interfaces on my ubuntu 20.04 machine

Today I ran nmcli device show and its showing lot of tun interfaces on my machine. Also device name is not familiar to me like as0t0 other than eth0 and wl0. Can I check who is using them. also is it ...
user avatar
  • 105
1 vote
1 answer
97 views

Unable to delete network bridges on Fedora 33 & Docker

I am using Docker 20.10.7 on Fedora 33: $ uname -r 5.12.8-200.fc33.x86_64 $ docker -v Docker version 20.10.7, build f0df350 When trying to create a new docker network, I get the following error: $ ...
user avatar
0 votes
0 answers
133 views

How to fix LT2P over IPSEC connection dying unexpectedly

Hi i'm using network manager on debian 10 to create an L2TP over IPSEC vpn connection. for a very wird reason the process gets Termninating on signal 15. i bring up the connection with: nmcli con up ...
user avatar
  • 1
0 votes
2 answers
300 views

Do I need wpa_suppliciant and wireless_tools if I use nmcli to connect to wifi?

I am installing Arch and the question comes in this simple command. pacstrap /mnt ... networkmanager I am using my laptop with wireless connection. After installing arch linux I am going to use ...
user avatar
  • 3
0 votes
0 answers
1k views

How to refresh a connection/device that has no carrier?

I change the MAC address of a connection/device with nmcli/nmtui. Using ip a doesn't show the new/cloned MAC address. I tried lots of things with nmcli and nmtui but I keep getting the no-carrier ...
user avatar
  • 442
1 vote
0 answers
193 views

Network Manager Access Point WPS Pin Disable

we are opening an Access Point with network manager (on a RPI4 with Raspbian) and everything is working fine except that when connecting from Windows 10 we are asked for a pin first (probably wps pin) ...
user avatar
  • 11
0 votes
0 answers
715 views

CentOS 7 is not detecting my network card, listing as UNCLAIMED

I installed CentOS 7 minimal on a server. It has two NICs. However, one of them doesn't appear to be working. It also appears as UNCLAIMED. Its not showing when i use commands to list network devices, ...
user avatar
0 votes
0 answers
1k views

nmcli STATE unmanaged on eth0 device when the cable network is up and i can ping outside. Why is not labeled as connected?

I'm running Ubuntu 20.04 LTS, i'm testing to connect to network with both devices(interfaces) the eth0 and wlan0. I'm starting with the Wifi : ubuntu@ubuntu:~$ nmcli dev DEVICE TYPE ...
user avatar
0 votes
1 answer
236 views

nmcli hotspot not working when ethernet connected

For a home-server I'm using the following nmcli configuration to spawn hotspot and ethernet connections on 192.168.1.50: nmcli con add con-name WIFICON \ type wifi ifname wlp2s0 mode ap ...
user avatar
  • 111
0 votes
0 answers
289 views

nmcli device status filter specific interface

Is it possible to print the status of DEVICE enp0s9 without using egrep? $ nmcli device status DEVICE TYPE STATE CONNECTION enp0s3 ethernet connected Wired connection 1 enp0s9 ...
user avatar
  • 1,251
2 votes
2 answers
2k views

Network manager connect to hidden network - specify password - not authentication type

I've seen how one can connect to a hidden wifi network using the following: nmcli c add type wifi con-name $ssid ifname $adapter ssid $ssid nmcli con modify $ssid wifi-sec.key-mgmt wpa-psk nmcli con ...
user avatar
  • 73
4 votes
1 answer
2k views

Can't connect to VPN L2TP from Ubuntu 18.04 CLI

I have a VPN that is working when I connect through my windows using L2TP, however when I set up my ubuntu with CLI its not working. I get the following error when I run $ nmcli c up myvpn Error ...
user avatar
  • 141
1 vote
2 answers
2k views

Deleting a connection property with nmcli

I am trying to use nmcli to edit an existing connection and I would like to remove completely some properties (as opposed to just modifying their value). Specifically the properties are wifi-sec.key-...
user avatar