Questions tagged [nmcli]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
41 views

Run nmcli commands in chroot environnement

I have set up a chroot environment (Ubuntu Jammy). I need to run the nmcli command for some purposes. nmcli depend on NetworkManager.service, but the systemd service isn't allowed in chroot env. How ...
GAD3R's user avatar
  • 66.4k
0 votes
0 answers
23 views

What could cause Wired ethernet adapter to remain stuck on "connecting" until I reload nmcli

When I boot up my debian machine, my ethernet adapter remains in "connecting..." state, not actually "connected", it used to always be connected by the time the machine was booted ...
raquel's user avatar
  • 11
0 votes
1 answer
80 views

How can I set up a password-less AP with nmcli?

I own a USB WiFi device which works well, until I try to connect to anything encrypted. I want to use this USB device as an AP, ideally with nmcli. How do I do so? All the sources I've found, show ...
peterh's user avatar
  • 9,733
1 vote
1 answer
370 views

Multiple NetworkManager connection profiles for the same ethernet interface not always work correctly

I'm using 3 NetworkManager connection profiles in a Linux distribution and all the connection profiles refer to the same ethernet interface: enp3s0. I'm using these connections to manage: the default ...
User051209's user avatar
0 votes
0 answers
314 views

nmtui unable to activate wireless connection, nmcli dev status says wifi unavailable

I'm very new to using linux. When I try using nmtui to connect to wifi, the only option in "activate a connection" is wired connection. When I use nmcli dev status, it outputs wlo1 wifi ...
SmoreBob's user avatar
0 votes
0 answers
27 views

How do I find out what is stopping a sit tunnel routing?

In my town, IPv6 does not exist with any provider. I own 2001:67c:2284::/48 which I announce with Vultr. I am trying to set up a SIT tunnel to use 2001:67c:2284:1::/64 from my office using nmcli but I'...
Entrepreneur AJ's user avatar
0 votes
1 answer
100 views

NetworkManager : restrict a connection to USB Ethernet wired dongles

With NetworkManager I want to restrict a connection to USB Ethernet wired dongles. In the documentation, https://developer-old.gnome.org/NetworkManager/stable/nm-settings-nmcli.html: interface-name: ...
Emeric Verschuur's user avatar
0 votes
1 answer
177 views

Option for nmcli command to get only the name of the NetworkManager connection profiles

I know that by the execution of the command: nmcli con show I get the list of all connection profiles present in the Linux system. For example if I execute the previous command in my Linux Mint ...
User051209's user avatar
2 votes
0 answers
60 views

Extend existing wifi using unix pc access point (with same SSID)

Context I have a PC running Ubuntu Server and connected to my internet provider’s router using an ethernet connection (and that has a static IP set up in the router's portal). The internet provider’s ...
Tonio's user avatar
  • 121
0 votes
0 answers
530 views

How to enable bluetooth from the command line for using the keyboard for another device

I'd like to enable my bluetooth connection from the command line for external use on another device. Although there's the manpage of nmcli with examples (man nmcli-examples), I couldn't make it to the ...
Nepumuk's user avatar
  • 667
1 vote
0 answers
1k views

Create WiFi 6(E) hotspot / access point

Is there a way to create a WiFi 6(E) hotspot (or AccessPoint) in Ubuntu (or Linux in general). I was previously using nmcli but it only supports a and bg but because I use an Intel AX210 I would like ...
binaryBigInt's user avatar
0 votes
0 answers
522 views

How do I setup source based routing on Almalinux 8?

I have a server with 2 interfaces where each interface is connected to a different VLAN with an associated gateway address to route in/out the VLAN. I need traffic that arrives at a particular ...
confustion_music's user avatar
-3 votes
1 answer
428 views

Why is my static IP address not set to what I made it in the /etc/sysconfig/network-scripts/ifcfg-enp0s3 file?

I have made the following changes to /network-scripts/ifcfg-enp0s3 file in order to try and get a static IP address (added ip i want ending in .49, added gateway, Prefix and Subnet mask ( 1: https://...
jspaine's user avatar
  • 11
0 votes
0 answers
720 views

Modifying existing SSID using nmcli

Hi so i know i can set up a wifi network using nmcli in this way. nmcli con add type wifi ifname uap0 mode ap con-name <WIFI_AP_NAME> ssid <WIFI_SSID> nmcli con modify <WIFI_AP_NAME> ...
busssard's user avatar
0 votes
3 answers
1k views

Both systemd-networkd and NetworkManager starts by itself

This is ubuntu 20.04. I stopped and disabled systemd-networkd. Then enabled NetworkManager. But after reboot both services come up. Keeps happening like that. I want to manage my server using nmcli, ...
rajeev's user avatar
  • 245
1 vote
0 answers
2k views

nmcli shows disconnected but network is working, many other doubts

This is ubuntu 20.04. I am trying to prep it for VM hosting and I have 4 onboard eth ports and 6 more on PCI cards. But I am new to NM / nmcli and having hard time to figure this out. nmcli shows ...
rajeev's user avatar
  • 245
0 votes
1 answer
271 views

Oracle Linux: How can I source route from 2 interfaces with public addresses on the same host using nmcli?

I have an Oracle Linux 8 machine with two public addresses, similar to this example config (private addresses in example): ens224: connected to ens224 [...] ip4 default inet4 ...
Niels2000's user avatar
  • 273
0 votes
0 answers
191 views

How do I script brute forcing password to a WiFi with nmcli?

The following script is meant look for the right password in the file list-of-pwds in order to connect to a WiFi. Once it finds the right password, it is meant not to look anymore for the password. #!/...
John Smith's user avatar
0 votes
0 answers
200 views

How to add an additional temporary IP to the connection that currently provides internet via nmcli?

I need to add a specific IP to the interface that actively provides the internet connection, like so: network_dev=$(nmcli --get-values DEVICE connection show --active | grep w) sudo ip a add 192.168....
ceremcem's user avatar
  • 2,341
0 votes
1 answer
313 views

NMCLI connection only works with 1 wifi adapter

I have 2 wifi adapters on my odroid, wlan0 and wlan1, I connected to my wifi using nmcli with wlan1 successfully, but would like to be able to connect with wlan0 instead. However it seems no matter ...
vph97's user avatar
  • 1
1 vote
1 answer
2k views

nmcli Error: Connection activation failed: Not authorized to control networking

I wrote a combination .sh and .exp scripts that: activate vpn connection connect to remote server download some files from server deactivate vpn connection This scripts should run on schedule. I use ...
maskalev's user avatar
  • 125
0 votes
2 answers
929 views

Define permanent static ip at fedora server 36 without nmcli command

Working with VirtualBox 6.1.38 and Fedora Server 36 as the guest, about to define a static ip address, I am reading many tutorials about how to do this, the nmcli command is involved. Something ...
Manuel Jordan's user avatar
1 vote
0 answers
62 views

Linux - Debian Tinker Asus S R2.0 board

Kernel 4.4.194 Configured as ap. Ap comes up, is available but unreliable Android table connects perfectly iPad, iPhone and Mac cannot connect When android connects: Sep 19 21:52:56 OEI-XXXX kernel: ...
Pelerinage's user avatar
1 vote
0 answers
96 views

Is it possible to assign a "nmcli" connection profile on any newly created network interface without user intervention?

We have enforced certificate authentication on our corporate wired (and wireless) network. Windows devices are easy to configure... However, Linux workstations running Ubuntu 20.04 and some 22.04 are ...
Remi Serriere's user avatar
0 votes
1 answer
1k views

nmcli bridge refuses to come up

I tried running the commands found here But my bridge refuses to come up. Stuck in DOWN. the slave-bridge interface is ethernet. No wifi on this host. Tried using ip link to bring the interface up ip ...
Dave's user avatar
  • 591
0 votes
0 answers
2k views

Change connection NAME using it's DEVICE name, while down - nmcli ubuntu 22.04

I am trying something that looks very easy/simple, but since i put my question here, it's looking to be more difficult then i thought. I have to configure edge pc's (in batches, 5-10 each couple ...
matt's user avatar
  • 1
0 votes
1 answer
189 views

nmcli: limit number of active connections

Is it possible to set a max number of clients on an ethernet-interface created with nmcli? Example: I would like max 2 devices to get a successful connection, even if I add a network-switch and ...
Jeppe's user avatar
  • 115
0 votes
0 answers
65 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 ...
guesthelpplease's user avatar
0 votes
0 answers
544 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&...
citrusbytez's user avatar
0 votes
1 answer
3k 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 ...
Shōgun8's user avatar
  • 711
0 votes
0 answers
336 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 ...
zpangwin's user avatar
  • 741
0 votes
1 answer
2k 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 ...
nimbusgb's user avatar
  • 101
0 votes
0 answers
164 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,...
dorforer's user avatar
0 votes
0 answers
145 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&...
iaquobe's user avatar
  • 291
0 votes
2 answers
4k 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 ...
Shōgun8's user avatar
  • 711
1 vote
1 answer
9k 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):...
PMDP3's user avatar
  • 11
3 votes
0 answers
5k 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 ...
user922871's user avatar
1 vote
1 answer
1k 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-...
samer kareem's user avatar
4 votes
1 answer
7k 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 ...
LeonTheProfessional's user avatar
3 votes
2 answers
3k 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-...
Marcel H.'s user avatar
5 votes
1 answer
25k 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 ...
Bryon's user avatar
  • 329
1 vote
1 answer
4k 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 ...
Chompas's user avatar
  • 141
0 votes
1 answer
726 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 ...
Dave's user avatar
  • 591
1 vote
1 answer
2k 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 ...
danial hadi's user avatar
3 votes
1 answer
8k 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 ...
Jaden's user avatar
  • 31
1 vote
0 answers
251 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 ...
Jeppe's user avatar
  • 115
1 vote
1 answer
127 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, ...
Mark's user avatar
  • 723
0 votes
2 answers
1k 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 ...
pitosalas's user avatar
  • 637
0 votes
2 answers
6k 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 ...
FiveBlue's user avatar
5 votes
3 answers
23k 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 ...
Darien Marks's user avatar