Questions tagged [nmcli]

35 questions
6
votes
3 answers

Switch from static to DHCP using nmcli

I need to change my connection, from staic assigned to DHCP using nmcli (invoked from a Python script) I've tried like this: nmcli con mod "CONNECTION NAME" ipv4.method auto nmcli con down "CONNECTION NAME" nmcli con up "CONNECTION NAME" But after…
3
votes
2 answers

Ansible: how to specify ipv6.method in nmcli module?

In order to set up a manual ipv6 address in RHEL7 using nmcli, one would do: nmcli con modify eth1 ipv6.method manual ipv6.addresses "abba::cafe/64" However, I can't figure out how to do the same with ansible's nmcli module. I have the following…
André Fernandes
  • 2,335
  • 3
  • 25
  • 33
2
votes
0 answers

Can't reapply changes to '802-11-wireless.ssid' setting

I am using GObject's python introspection for libnm to write a program that changes connection settings via NetworkManager. In this case, the user will enter the SSID and password of an Access Point that the machine needs to connect to, and the…
Nolan
  • 51
  • 8
2
votes
3 answers

How to delete a connection by type with nmcli?

I want to have a bash script that can delete all my network manager connections of type gsm with nmcli. What is the best approach for this?
2
votes
0 answers

Can I login to my VPN via Ubuntu's nmcli tool, passing both username and password from the terminal?

When I use nmcli, I am unable to pass a username to the command. sudo nmcli con up id MyVPN --ask Will only ask for my password. How can I get it to ask for both my username and password?
David Alsh
  • 6,747
  • 6
  • 34
  • 60
2
votes
1 answer

How do you really use dbus to obtain the list of visible SSIDs from NetworkManager?

According to example 12 here I should be able to use dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager/Devices/4 org.freedesktop.NetworkManager.Device.Wireless.GetAllAccessPoints to discover all…
1
vote
0 answers

nmcli create Hotspot with HT parametrs

i have created a Hotspot with nmcli command. But the Hotspot have very low bandwidth. After debugging found out that the HT parameters isn't set. Would like to know how to set the HT parameters using nmcli command. eg: HT20 and HT40 parameters set…
Anjo John
  • 533
  • 1
  • 5
  • 7
1
vote
0 answers

How to get a working kubernetes container with nmcli?

I fail to use mcli inside a kubernetes cluster while the same container works locally through podman . For this I use a gitlab-runner into a kubernetes cluster. $ id uid=0(root) gid=0(root) groups=0(root) $ ks-libvirt --help Can't exec "nmcli": No…
bioinfornatics
  • 1,749
  • 3
  • 17
  • 36
1
vote
1 answer

How to set Ipv4 addresses with dbus-python (Hotspot and ethernet)

(fairly new to networking) I'm trying to setup a small, yet somewhat complicated network settings on my ubuntu 18.04 machine. The topology of the network: Ubuntu machine (called "the server") will act as the DHCP server for both hotspot and…
1
vote
1 answer

Setting network device priority with nmcli in Fedora

I am on Fedora v33 Server edition (no GUI) and I have setup 2 network connections. One is Ethernet, which I use to connect my Macbook to the Linux machine, the other is the WLAN connection the machine uses to connect to the internet. So now whenever…
Max101
  • 593
  • 1
  • 5
  • 18
1
vote
1 answer

Using Coral Dev Board as wifi router

Im doing a project with IP cameras and Coral, so I'd like to know is it possible to create a wifi hotspot using only coral. I've tried couple ways, but they ended up to be not working
MrFlorius
  • 13
  • 1
  • 2
1
vote
1 answer

Modem on Raspbian not connecting with `nmcli`

I need to configure the [TRM240 modem][1] to work with a Raspbian system. I followed the procedure reported in the answer [here][2], but the connection isn't working. I attach some screenshots documenting the procedure and the commands that I…
EM90
  • 552
  • 1
  • 8
  • 22
1
vote
1 answer

Is there any other nmcli connect implementation that uses ifname as input? Current implementation adds a number postfix to SSID

I have created a C++ wrapper on top of nmcli to connect 2 WiFi modules to WPA2 networks in Ubuntu 18. However, it adds a number postfix to the SSID. Example: My Network becomes My Network 1 and then this number keeps growing. As I need to specify…
ignacio
  • 1,181
  • 2
  • 15
  • 28
1
vote
0 answers

c++ connect to network (ubuntu), how to handle wrong password case

I'm trying to make a c++ program to connect to a network. Snippet works perfectly fine if the password is correct. bool connect(const char* ssid, const char* key) { bool ret = false; try { if ((ssid) && (key)) { std::string cmd =…
elleryn
  • 11
  • 2
0
votes
1 answer

Error: Could not create NMClient object: Could not connect: No such file or directory

I'm trying to run an electron app inside a docker container on my MacOS. I need "network manager" for the project because the electron app has a dependency on it. I am using Node 14 as base image. I installed network manager using "apt install…
drunkZombie
  • 112
  • 2
  • 15
1
2 3