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
0answers
22 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
13 views

Why is my Focal internet connection refusing to connect automatically?

I can use nmcli to restart networking followed by netplan apply to connect but must do this every time I boot up the computer.
2
votes
1answer
32 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?
1
vote
0answers
117 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 ...
0
votes
0answers
408 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 ...
0
votes
1answer
135 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 ...
0
votes
0answers
117 views

nmcli “CA certificate” not required

I am trying to setup an 802.1x connection in Ubuntu for a wired connection using nmcli. The settings i've configured are as followed: nmcli> set 802-1x.eap peap nmcli> set 802-1x.identity ...
1
vote
1answer
303 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 ...
1
vote
0answers
34 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 ...
0
votes
0answers
218 views

Connection failed when attempting to connect to the internet with a LTE Modem

I have a Dell laptop with a Intel XMM 7360 LTE-Advanced modem. When running nmcli I can see the device is disconnected. GENERAL.DEVICE: cdc-wdm0 GENERAL.TYPE: ...
1
vote
3answers
960 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 ...
0
votes
0answers
40 views

Broadcast slow/failing with nmcli internal access point

I have two wifi adapters (one for internet access, the other as an internal access point). On the internal AP other small devices are connected which should receive some data and process it. I want to ...
0
votes
0answers
536 views

MMCli [GSM] 3GPP registration drops

My mobile broadband connection stopped working. I want to figure out if it's a software issue, hardware issue, or an issue with my network operator. mmcli -L /org/freedesktop/ModemManager1/Modem/1 ...
0
votes
0answers
11 views

How to configure wifi access point with nmcli? [duplicate]

I thought this would work nmcli d wifi list wlo1 ssid ZTE_H168NA66FE3 password *********** I got this Unknown parameter: wlo1 Unknown parameter: ssid Unknown parameter: ZTE_H168NA66FE3 Unknown ...
2
votes
2answers
433 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 ...
3
votes
1answer
135 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 ...
0
votes
0answers
179 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 ...
1
vote
0answers
765 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 ...
2
votes
1answer
702 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 ...
2
votes
1answer
2k 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....
0
votes
1answer
244 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 ...
1
vote
0answers
625 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 ...
5
votes
3answers
15k 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 ......
2
votes
1answer
65 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 ...
1
vote
1answer
2k 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 ...
3
votes
1answer
2k 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 '...
1
vote
0answers
34 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 ...
1
vote
2answers
5k 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 ...
1
vote
1answer
982 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)--->...
1
vote
1answer
3k 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 ...
1
vote
1answer
881 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 ...
0
votes
2answers
320 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 ...
0
votes
1answer
469 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. ...
13
votes
2answers
70k 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 ...
3
votes
1answer
90 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. ...
0
votes
0answers
505 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 ...
6
votes
2answers
9k 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 ...
0
votes
1answer
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 ...
2
votes
1answer
477 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 ...
5
votes
1answer
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 ...
11
votes
1answer
12k 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 ...
2
votes
1answer
1k views

Computer will not stay connected to wifi

Our wifi password at work recently changed. I edited the old connection to have to new password by $ nmcli connection edit "Internet" $ set wifi-sec.psk <password> $ save persistent $ activate ...
1
vote
0answers
2k views

Issues with nmcli on Ubuntu 16.04.3 LTS

I am trying to make it work but run into the following : remstr@DESKTOP-V1MD90G:~/ng$ nmcli nm Error: Object 'nm' is unknown, try 'nmcli help'. remstr@DESKTOP-V1MD90G:~/ng$ nmcli -v nmcli tool, ...
1
vote
1answer
8k 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: ...
2
votes
1answer
5k 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 ...
1
vote
2answers
16k 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 ...
0
votes
0answers
1k views

nmcli radiow wifi on command not enabling wifi for new Ubuntu install

I'm sort of new to Linux and Ubuntu. When I run the nmcli radio wifi command, I get the disabled message. When I then set it to nmcli radio wifi on, it doesn't change it from disables to enabled. ...
1
vote
0answers
145 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 ...
0
votes
0answers
435 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 ...