Questions tagged [nmcli]

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

0
votes
0answers
10 views

wireless fails to start as access point / hotspot

I am trying to turn my 2nd wireless device into an access point / hotspot. # lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 8087:0a2a Intel Corp. Bus 001 ...
2
votes
2answers
30 views

Differance between ip4 and ipv4 addresses, nmcli?

When creating new interfaces with nmcli, ip address can be set with both ipv4.addresses and ip4 parameter. Is there a differance between these? examples nmcli con add ifname ens192 con-name ...
1
vote
0answers
38 views

Poor connection with WLAN using multiple hotspots, all on same channel [closed]

I'm having problem getting a reliable connection on the hotel WiFi. nmcli device wifi list shows three networks with the same SSID on the same channel: >nmcli device wifi list SSID MODE ...
0
votes
1answer
34 views

Static route added with nmcli not showing up

root@Andromeda:~# nmcli con show "Wired connection 1" | grep -i routes ipv4.routes: -- then ... root@Andromeda:~# nmcli con modify "Wired connection 1" +ipv4.routes "188....
0
votes
1answer
83 views

How to use nmcli to always connect to vpn when using certain wifi?

So using nm-applet its quite easy to save vpn connection and username+password of the connection and then automatically connect to it when using certain wi-fi connection. So it will always ...
0
votes
0answers
13 views

Networkmanager: apply property to ALL wireless connections for a particular interface

I'm trying to bond the ethernet and wifi on my laptop. A bond can be setup with nmcli con add type wifi ifname wlps3s0 master bond0 ssid $YOURSSID (see Bonding wired and wireless while using ...
0
votes
1answer
61 views

The *correct* way to require root for changes via nmcli to NetworkManager

What is the correct way, with a single command or a small polkit addition, to limit all unprivileged users to read-only usage of nmcli? Edit: Allowing only a privileged unix group, in addition to ...
0
votes
0answers
27 views

How do I connect to wifi using nmcli on slackware? Re: DHCP client

I've just installed Slackware 14.2, and I'm trying to get everything working. I started out trying to use KDE, but I like the command line better anyway, because it doesn't hide so much from me. So, ...
1
vote
1answer
43 views

Adding / Removing addresses to connections via network manager cli (nmcli)

I am going through some official Linux Foundation exercises / documentation. In a lecture about adding / removing an ip address to an existing connection, the following example is cited: sudo nmcli ...
1
vote
0answers
21 views

Network Manager not controlling any connections

I have created a vagrant machine and ssh-ed into it. network-manager was not installed, therefore I proceeded with apt update && apt install -y network-manager However, there seem to be no ...
0
votes
0answers
12 views

How to detect when NetworkManager loses Wi-Fi connection?

What is the best approach to monitor NetworkManger connections and detect when the Wi-Fi connection has dropped? My goal is to attempt reconnecting after a certain number amount of time disconnected, ...
0
votes
0answers
61 views

How do you find the static (and dynamic) information about the network currently connected to?

Is there some command (on Linux) which report the static (and dynamic) information about the network currently connected to? For example, BSSD, encryption method (WPA, or ...), and more. In particular ...
0
votes
2answers
232 views

nmcli won't let me remove DNS entry from /etc/resolv.conf

Centos 7.5, nmcli version 1.20.2 Whenever I try to remove entries from /etc/resolv.conf I get the following errors. [root@client ~]# cat /etc/resolv.conf # Generated by NetworkManager search home ...
0
votes
0answers
132 views

Tagging inteface traffic to VLAN in Linux based virtual router

I have alpine linux running on virutalbox which works as gateway for my other virtual instances resides on the virtualbox. technically alpine running as virtual router with ip forwarding and ...
0
votes
0answers
15 views

How do I configure the network from command line in CentOS 7

Is there a command that will configure the network in CentOS7 persistently (survives reboot) ? I want to write a script to do this and I'd rather avoid echo'ing output to a config file. Can this be ...
2
votes
1answer
104 views

Find Wifi encryption type

While I working on a shell script, I need to display SSID,Passphrase,Encryption-type of connected wifi. I got SSID & Passphrase in output but I unable to display encryption-type. Which command ...
3
votes
2answers
422 views

Get connected Wi-Fi network signal strength with nmcli

I'm able to get the signal strength of all Wi-Fi networks with the following command: $ nmcli -t -f SIGNAL device wifi list $ 77 67 60 59 55 45 44 39 39 37 I would like to reduce ...
4
votes
0answers
1k views

Cannot connect to WiFi with nmcli, although secrets are provided

I am using nmcli on ArchLinux (version 1.14.5dev+17+gba83251bb-1 from the official package repository) to connect to wifi. This works perfectly for all wireless networks apart from this one Vodafone ...
0
votes
1answer
679 views

nmcli - save wifi connection

I used command-line tool for controlling NetworkManager (nmcli) to "Turn On Wi-Fi Hotspot", like following: # nmcli device wifi hotspot ssid X password X ifname wlan1 Device 'wlan1' successfully ...
1
vote
0answers
18 views

Realtek Wifi interface is not stable in Kali linux [duplicate]

I have a kali linux system(VM) and I added realtek wireless adapter to it and same is detecting as a wireless interface ip address [...] 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 ...
0
votes
1answer
185 views

Limit `nmcli dev wifi` to display one entry per unique SSID

When I use the graphical interface to NetworkManager (via the tray icon), it displays around 10 SSIDs (for my current location). However, when I use nmcli dev wifi it returns around 55 entries. The ...
0
votes
0answers
85 views

How to use nmcli to remove 802.1x security via command-line

How can I use nmcli to remove the 802.1x security completely from the connection? I need the equivalent of selecting "Off" for 802.1x Security option on the Security tab of the Wired connection. I ...
1
vote
0answers
2k views

Use nmcli to display the status of a connection

I'm wondering how to display a connection status using nmcli. I understand that the following will display a list of configured connections: nmcli con show And I also understand that the following ...
1
vote
0answers
168 views

nmcli lists connection profile, but does not show in nmcli con show

When I run nmcli con show it returns NAME UUID TYPE DEVICE bond0 a8489b17-71bc-441d-981c-f3fe3184fdd7 bond bond0 ...
1
vote
0answers
397 views

Edit hotspot settings with nmcli [closed]

Using this command, I created a wifi hotspot on my Debian server. However, I set the password to a 7-digit one, so I couldn't connect with my Debian laptop. I did the command again, setting the ...
2
votes
0answers
153 views

nmcli turning on wifi interface

Recently I founded some problems with connecting to wifi with my bcm4312 card. It works with nmcli tool, which sets up the device with 'nmcli radio wifi on' Then I need to make 'dhclient wlan0' to ...
1
vote
1answer
2k views

need to configure a static ip using nmcli but can't see how

I'm trying to create a static ip using nmcli in CentOS 6.9 but couldn't do so, as the man nmcli is not showing enough options like the online examples. To make you all to understand I'll paste the man ...
0
votes
2answers
2k views

How can I find out what plugin is missing in nmcli?

I'm trying to reuse an old Asus EEE "a-la-RaspberryPi", as a small, single task unit. Since I am familiar with Fedora, I have installed Fedora 27 on it via VNC (the default graphical installer is too ...
0
votes
2answers
2k views

Unable to delete “Wired connection 1” using ncmli

Log: NAME UUID TYPE DEVICE Wired connection 1 d1b2ff35-4d72-3bd5-a8e2-d3d9fefce205 802-3-ethernet eth2 admin 6186afb2-7253-...
1
vote
1answer
752 views

Can't disconnect with nmcli

In the past this command has worked well for me, when disconnecting from a network without turning off my wifi interface: nmcli con down id MyWifiName When I run it now I'm getting: Error: '...
1
vote
3answers
771 views

Connect to WEP/WPA without nmcli?

I'm facing an issue where nmcli stops working on a custom rockchip controller. When running nmcli dev wifi, I get no results so I had to start using iwlist scan. Is there something similar for nmcli ...
0
votes
1answer
341 views

Advice for debugging a network interface?

I'm working on an embedded device running Ubuntu 14.04. When I first logged in I had no problem using nmcli dev wifi and it would return 3 results. (Though the wifi card must be weak as my laptop ...
0
votes
1answer
6k views

nmcli disconnect without turning wifi card off?

My wifi card keeps connecting to a wifi network which is on a channel that prevents me from making a hotspot. I'm trying to turn the connection off from command line. I have tried a few things: ...
1
vote
1answer
915 views

A command to switch airplane mode in gnome?

I am looking for a single command that switches airplane mode on/off. Actually I want to manipulate my fn+f10 key to switch airplane mode. I tried to add custom shortcut from gnome settings but it ...
0
votes
1answer
2k views

How to connect to Wi-Fi through wpa_supplicant, dhcpcd or nmcli?

I use Funtoo Linux, clone of Gentoo with git instead of rsync and some bug-fixes (as I read). I've installed LXDE desktop, NetworkManager but the applet does not connect when I type Wi-Fi password. ...
2
votes
1answer
169 views

Where is the list of access points stored?

Where does nmcli and iwlist stored the cached list seen access points: in a common file or in volatile memory?
2
votes
1answer
1k views

Setting up a wireless connection from the command line on Debian

I have a laptop with a proprietary Intel wifi card that I am trying to use to connect to a WPA/WPA2 network (called simply "Network") I've installed iwlwifi, net-tools, and network-manager I ran ...
0
votes
1answer
2k views

CentOS 7.3 interface name changes every reboot

I have this annoying problem that every time I restart my CentOS7.3, my interface name changes (all of them). Here is how I use my CentOS7.3: Host Machine: CentOS7.0 VM: CentOS7.3 (recently updated, ...
1
vote
0answers
115 views

Unable to list available access points through `nmcli device wifi list` command on Debian and Pointlinux

Pointlinux recognizes some wireless networks, but does not recognize certain one that has same Security as other recognized network (WPA1).I proved this with Fedora and Pointlinux writing in Terminal: ...
0
votes
0answers
759 views

Wifi through terminal connected 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 ...
3
votes
2answers
87 views

Possible to use keyboard instead of mouse to reconnect wifi in fedora 26?

Periodically my wifi connection stops working, e.g. pinging the station drops all packets, but the interface still has it's ip address, routes are ok, etc. This is very easy to fix with a mouse: I ...
1
vote
0answers
136 views

Add ipv6 static route without subnet nmcli

What is nmcli command to implement the following: ip -6 r add 2a00:xxxx:xxxx::1 dev eth0 RedHat documentation insists on using network specification but I can't produce another working ip -6 r add ...
2
votes
0answers
114 views

nmcli centos with wrong general.type

I am trying to configure a centos machine to use wifi via a usb wifi dongle. I have plugged the thing in and got the drivers working # iwconfig ra0 Ralink STA ESSID:"" Nickname:"MT7610U_STA"...
5
votes
1answer
2k views

NetworkManager: Set current connection of device as metered

With NetworkManager, how do I set the currently connected connection on my device (say wlp2s0) as metered? How do I unset it in such a way that guessing of the metered/unmetered state will still ...
2
votes
1answer
608 views

nmcli command takes only first string of ssid? [closed]

The below nmcli command to connect to WiFi doesn't connect if it has more than one word as ssid name? nmcli device wifi connect my homewifi password mypass NOTE: SSID name: my homewifi (bad since ...
1
vote
1answer
4k views

dracut-initqueue[588]: RTNETLINK answers: Network is unreachable

A CentOS 7 host needs to install a CentOS 7 guest operating system using virt-install and a kickstart file. Then BOTH the HOST and the GUEST need to be accessible via ssh using separate public static ...
1
vote
0answers
398 views

Use nmcli without X interface

I have a xubuntu virtual machine, when it's booted to xfce4, I connect to it via SSH. When I try to use nmcli, it complains: %> nmcli con up myvpn Error: Connection activation failed: Not ...
2
votes
0answers
371 views

Modify vpn-secrets with nmcli [duplicate]

I'm trying to modify [vpn-secrets], as mentioned here: https://askubuntu.com/questions/198136/error-when-trying-to-connect-to-vpn-on-startup However, nmcli complains about it, %> sudo nmcli con ...
4
votes
1answer
3k views

Use nmcli to modify VPN password?

With nmcli, I can modify VPN data like this: nmcli con modify myvpn vpn.data 'refuse-pap = yes, user = xxx' So I'm wondering if I can set password this way as well?
6
votes
1answer
1k views

Can I connect to a hidden wifi without knowing the ESSID?

Is it theorically possible to connect to a hidden wifi without giving the ESSID? The way I connect to a hidden wifi requires to give an SSID (nmcli refuses to have a blank 802-11-wireless.ssid field)....