Skip to main content

All Questions

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

turning wireless interface off

I am creating a hardening tool where i need to turn off all the wireless interfaces, is the command nmcli radio all off enough for that purpose, or should i be doing something extra, making some ...
goose57's user avatar
0 votes
0 answers
72 views

Ubuntu 22.04 unable to use JetBlue inflight wifi

I have Ubuntu 22.04.3 running on an Asus Zenbook, exact model UX390UAK. My wifi at home and in coffee shops works fine but on every JetBlue flight I take I'm unable to use their inflight wifi (called ...
Michoel's user avatar
  • 101
-1 votes
1 answer
504 views

Trying to force hotspot to use 5GHz band, but uses 2.4GHZ no matter what

I am creating an experiment where I am using a bluetooth analyzer. I am creating a wi-fi hotspot that must use the 5GHz band so that it doesn't interfere with bluetooth. I have edited the Hotspot....
Daniel Paczuski Bak's user avatar
0 votes
0 answers
90 views

Some meta state when create bridge on 22.04

It is said that if the system use NetworkManager, you'd better use nmcli, or there may be conflictions between different management systems. Suppose there is an ethernet connection named eno1 whose ip ...
jw_'s user avatar
  • 313
-1 votes
1 answer
564 views

Can't Use DNS On Network Manager

I followed a guide by MakeUseOn setting a static IP on Ubuntu Server with Network Manager. After some time, my DNS has stopped working. I have tried using sudo nmcli con mod static ipv4.dns "8.8....
Kaympe20's user avatar
2 votes
1 answer
2k views

How to effectively to set a global static ipv6 by `addr-gen-mode=eui64`?

I see there are a lot of questions about static ipv6, and privacy (like here, here, here, here and here), and I believe I have tried most of the available solutions (or at least those I was able to ...
hamagust's user avatar
  • 207
0 votes
1 answer
2k views

Is it possible to add a connection by nmcli command without sudo?

I'm working with a lubuntu 22.04 distribution. I need to execute the following command by a user without root privileges: > nmcli c add ifname enp3s0 type ethernet con-name 'connection-test' The ...
User051209's user avatar
0 votes
1 answer
2k views

Increase VPN Connection Attempt Timeout to Greater Than 60 Seconds

I have OpenVPN connection that - for some reason - takes too long to connect. However, when I use the nmcli connection up MyOpenVPN_TCP command it keeps trying to connect for only 60 seconds, and I ...
Analytiker's user avatar
0 votes
0 answers
385 views

Creating a bridge device using nmcli

I am trying to create a bridge device in Ubuntu 22.04, so I can set it a a default network for KVM guests. I need bi-directional external (non-NAT communication from and to the guests. I followed this ...
Pinguinim's user avatar
  • 1,478
0 votes
0 answers
261 views

How to connect Meraki L2TP IPSEC VPN from Digital Ocean droplet?

I try to connect from my Digital Ocean droplet to my company's L2TP-IPSEC Meraki VPN. I have donwloaded the network-manager-l2tp and already configured it. I try to connect it with this command: nmcli ...
Károly Neue's user avatar
0 votes
0 answers
928 views

When setting up a bridge for KVM, how can autoconnect for ethernet be disabled so the bridge still works after a reboot?

Ubuntu 22.04.1 LTS Baremetal server, ssh access only Using nmcli to configure network Guides followed: https://www.cyberciti.biz/faq/how-to-install-kvm-on-ubuntu-20-04-lts-headless-server/ https://www....
Vintage12's user avatar
0 votes
2 answers
786 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 ...
sebrock's user avatar
  • 101
2 votes
2 answers
603 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 ...
xinren's user avatar
  • 19
0 votes
0 answers
201 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 ...
Filippos Papalos's user avatar
1 vote
0 answers
3k 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
2k 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 ...
Tommimon's user avatar
  • 133
2 votes
0 answers
419 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 ...
Xeoy's user avatar
  • 21
2 votes
1 answer
18k 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 ...
Ajaib Singh's user avatar
0 votes
0 answers
331 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 ...
user152037's user avatar
0 votes
0 answers
208 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 ...
SuperRobertWa's user avatar
2 votes
0 answers
604 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 ...
mdresser's user avatar
0 votes
1 answer
727 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 ...
Michael Bach Kristensen's user avatar
1 vote
0 answers
141 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 ...
Guy's 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 ...
Mark Smith's user avatar
2 votes
2 answers
4k 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 ...
Themelis's user avatar
  • 159
0 votes
0 answers
677 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 ...
Sankeerth Mahurkar's user avatar
2 votes
1 answer
2k 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 ...
codepearlex's user avatar
6 votes
2 answers
31k 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....
Serfoo's user avatar
  • 61
2 votes
1 answer
108 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 ...
Bob pickett's user avatar
2 votes
2 answers
9k 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 ...
user1482030's user avatar
4 votes
1 answer
11k 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 '...
John Ronald's user avatar
  • 1,896
1 vote
0 answers
64 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 ...
Ujjal Kumar Das's user avatar
1 vote
2 answers
7k 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 ...
Icosahedral's user avatar
2 votes
1 answer
12k 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 ...
LarryWilson's user avatar
1 vote
1 answer
2k 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 ...
stackinator's user avatar
  • 1,981
0 votes
2 answers
936 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 ...
pcdangio's user avatar
  • 101
0 votes
0 answers
643 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 ...
Fernando Pacheco Martinez's user avatar
11 votes
7 answers
40k 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 ...
user8292439's user avatar
  • 3,798
0 votes
1 answer
4k 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 ...
seanlano's user avatar
  • 3,056
2 votes
1 answer
878 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 ...
Eric's user avatar
  • 253
13 votes
1 answer
31k views

Get a list of network manager network connections with Bash?

I want to get a list of Ethernet and wireless connections from the terminal. Those connections are listed in NetworkManager's GUI and include info like the connection's SSID. The next step is to ...
Yurij's user avatar
  • 565
5 votes
2 answers
21k 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: ...
Thufir's user avatar
  • 4,571
3 votes
1 answer
13k 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 ...
Osama El-Ghonimy's user avatar
1 vote
2 answers
36k 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 ...
T. Green's user avatar
  • 113
1 vote
0 answers
152 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 ...
Arya's user avatar
  • 121
0 votes
0 answers
474 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 ...
Webeng's user avatar
  • 193
15 votes
3 answers
33k 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 ...
user avatar
2 votes
0 answers
3k 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 = ...
user avatar
2 votes
0 answers
188 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 ...
Ryan Nuzzaci's user avatar
0 votes
1 answer
461 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, ...
The Prenx's user avatar
  • 355