Questions tagged [networkmanager]
The networkmanager tag has no usage guidance.
132
questions
-2
votes
0
answers
16
views
Linux server management debian 10 and centos dhcp service host-name based Client Classing problem [closed]
I want to allocate a client's IP address based on the host-name provided by the client, but the results are often unpredictable.
I have tried to imitate the Client Classing in dhcpd.conf(5) by ...
-1
votes
0
answers
28
views
Netplan configuration issue: Unable to obtain DHCP address for enp0s3 in Virtualbox VM [closed]
Goal: Determine why configuring an interface with only dhcp4 fails.
Setup
I am working on configuring netplan for a Virtualbox VM.
The VM has 1 bridged adapter connected to my machines wlo1 and 2 ...
-2
votes
0
answers
23
views
Wifi adapter not working. driver: mt7921e [closed]
My wifi adapter is not working, randomly gets disconnected or not booted at all. please help.
nikita@nikita:~$ sudo ethtool -i wlp3s0
driver: mt7921e
version: 6.2.0-37-generic
firmware-version: ...
1
vote
0
answers
36
views
NetworkManager interfers with wpa_supplicant
I'm trying to build an app in C++ to connect 2 Linux devices via WiFi Direct using WPA_Supplicant. Trying to do that in the wpa_cli (with wlo1 interface), I got to the point where with NetworkManager ...
0
votes
1
answer
16
views
How to stop Network Manager creating connections under /run/NetworkManager/system-connections?
I'm trying to configure networking on a RHEL9 server with NetworkManager 1.42. I'm doing this by writing out a bunch of keyfiles to /etc/NetworkManager/system-connections as per here.
The server I'm ...
2
votes
0
answers
13
views
Observing network change event in linux application
I have an application where I wanted to get notified if there is any network change that has occured. I have found a bunch of solution like
using NetworkManager or systemd-network service (which I do ...
0
votes
0
answers
12
views
NetworkManager: execute script when network interface disconnects
I need to listen to changes on my network interfaces (Debian, via NetworkManager) and execute a script immediately when a specific change (here: a specific network interface is not longer there) is ...
0
votes
1
answer
61
views
Docker, Nomad, NetworkManager, and multiple interface routing
I'm trying to test out running a Docker container via Hashicorp Nomad that can have open ports on multiple networks. A use case would be a traefik load balancer with an 'outside' and an 'inside' ...
1
vote
1
answer
46
views
Get property of DBus interface in Python
I would like to check current network connection is metered or not. In the Bash I can run:
qdbus --system org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager....
1
vote
0
answers
36
views
How do I add error handling to my NetworkManager library in python using sdbus?
I have the following library that talks to NetworkManager using the DBus in python.
here's the relevant code for connecting to a network:
def add_connection(self, ssid, passwd, autconnect = True, ...
1
vote
1
answer
155
views
Reading full NetworkManager connection information using python-dbus
I am trying to interrogate dbus in python to get NetworkManager to tell me whether or not a connection is configured to attempt to connect automatically to a network.
When I use nmcli to inspect a ...
0
votes
1
answer
131
views
How to configure the timeout and retries on NetworkManager client
I want to control the timeout, connection retries number and the delay duration between the retries when the connection to the Azure NetworkManager failed.
Here is how I connect to Azure:
private void ...
2
votes
0
answers
40
views
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 ...
0
votes
0
answers
101
views
How to link the network group ID of a network manager to the policy
I get a warning message when I run the code to populate the network groups using azure policy.
Warning: use-resource-id-functions: If property "networkGroupId" represents a resource ID, it ...
0
votes
0
answers
68
views
NetworkManager - failed to retrieve SIM object
I have cellular usb dongle
HUAWEI E3372h
which connected to BananaPi based on Linux Debian 10 and NetworkManager package installed.
Dongle worked properly for 2 weeks and suddenly stop working.
Once I'...
0
votes
0
answers
331
views
Failing to install python-networkmanager in PyCharm
Whenever I try to install python-networkmanager in PyCharm, I get the following error:
I am working on MacOS. Tried many workarounds already but nothing works.
When I try to add the module with a ...
1
vote
1
answer
105
views
libnm - What are the necessary steps to create a hotspot?
I want to create a hotspot network using libnm in C. I tried following the following steps:
Connect to NetworkManager using nm_client_new(NULL, NULL);
Get the wlan device ...
0
votes
0
answers
62
views
Network Manager on Debian (About upstream connectivity check)
Currently I enable upstream connectivity check and running normally on Network Manager.
I could see there are eth0 and wlan0 in the routing table and eth0 priority is higher than wlan0, then I enable ...
1
vote
0
answers
438
views
Could not generate persistent MAC address for veth476ff90: No such file or directory
I'm seeing this error message in my Docker Swarm manager:
11278 Feb 6 10:07:08 swarm-manager systemd-udevd[3557149]: link_config: autonegotiation is unset or enabled, the speed and duplex are not ...
0
votes
1
answer
159
views
How can I run `sudo dpkg --configure -a` headless with "[info] Restarting NetworkManager"
An installation was interrupted. To fix it, I need to run
sudo dpkg --configure -a
However, I'm headless (Ubuntu, Raspberry Pi), and connect via ssh. dpkg wants to restart the network manager, i.e., ...
1
vote
1
answer
853
views
Ubuntu 20.04 NetworkManager ignoring eth0 configuration? Netplan configuration abandoned?
Until sometime last night, my UBUNTU 20.04 system was working fine with this configuration file at /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
...
1
vote
0
answers
129
views
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 ...
1
vote
1
answer
551
views
Get list of connected devices to an hotspot using NetworkManager
Is there a way to retrieve IP and MAC address of devices connected to a Wi-Fi hotspot/access point using NetworkManager (nmcli or even better via C API)?
0
votes
1
answer
145
views
Network Manager ipv6.method=disabled from which version?
Does anyone know, from which version is in Network Manager available option disabled? I am writing puppet module and to write it propperly I have to specify in which version to use ignore and where to ...
1
vote
0
answers
323
views
What secrets need to provide to connect to sstp vpn
I am trying to connect to SSTP VPN but get next error:
Necessary secrets for the VPN connection 'VPN_NAME' were not provided.
In journalctl there`s error:
[1651404679.1287] vpn[0x5642718fc5f0,...
1
vote
0
answers
53
views
NetworkManager: nm_setting_gsm_get_pin returns NULL
I'm trying to use libnm to communicate with NetworkManager from a custom application. But I've run into a problem.
Whenever I try to read the configured PIN code using nm_setting_gsm_get_pin, NULL is ...
1
vote
1
answer
52
views
Signal generated by libnm object document
I see some libnm sample code to catch signal of network state.
g_signal_connect (applet->nm_client, "notify::state",
G_CALLBACK (foo_client_state_changed_cb),
...
2
votes
0
answers
65
views
How can I get notified if the network connection state has changed in linux, without polling? [duplicate]
I am trying to write a piece of go code that will trigger an expensive function. Right now the expensive function is triggered in an interval of a five seconds.
The thing is, that it only needs to be ...
1
vote
0
answers
208
views
gsettings proxy configuration out of sync with Network Manager GUI on RHEL/CentOS 8
I'm setting auto pac proxy settings (autoconfig-url) within a C++ program using gsettings and see that the Network Manager GUI Proxy Settings are out of sync with gsettings. In addition, after closing ...
1
vote
2
answers
723
views
What the heck is a dbus argument of type a{sa{sv}} in the Network Manager API?
I'm looking through the dbus api for Network Manager and there are methods with inputs of type a{sa{sv}}.
I'm still new to dbus but if I'm interpreting the definition of signature specifiers in https:/...
0
votes
0
answers
2k
views
NMCLI AP Mode config error | Connection activation failed: No suitable device found for this connection | Raspberry Pi 3 Model B Rev 1.2
I was trying to configure AP mode in Raspberrypi by using Network Manager. I'm using the below script. but it is throwing some errors.
Bash Script to set AP Mode
host="MyRPiAPMode"
sudo ...
0
votes
1
answer
422
views
concurrent AP-STA mode in Ubuntu 20.04
I'm using a Jetson Xavier NX hardware with dual band network controller(Intel 8265). So as far as I know, concurrent AP-STA mode can be done.
I've seen some related tutorials(#1, #2) on concurrent AP-...
0
votes
1
answer
395
views
Network-Manager automatically disconnects after 20 seconds
I have a Quectel EG25-G setup but whenever I connect (right after a reboot) it connects for 20 seconds and then disconnects.
It happens at the
Jun 24 04:59:32 linux NetworkManager[5093]: <info> [...
1
vote
1
answer
509
views
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")...
0
votes
1
answer
2k
views
networkmanager an issue managing bridge
I'm currently have this:
br0: connected to bridge-br0
"br0"
bridge, 02:81:A4:CF:CE:9F, sw, mtu 1500
ip4 default
inet4 192.168.1.10/24
route4 192.168.1....
3
votes
1
answer
543
views
Qt DBUS NetworkManager get Address from IP4Config interface
I have been using QtDBus and NetworkManager for a while but have run into a problem. I need to access the Wi-Fi devices IP address and the way to obtain it is to get the Wi-Fi device object, get its ...
0
votes
1
answer
203
views
Passing Type to Dio Interceptors Flutter
I am using a base network manager and custom Dio interceptors. I am getting type of the response via the network request sender method like this:
Future<IResponseModel<R>> send<T ...
0
votes
1
answer
1k
views
Ubuntu local IP address does not resolve
I set a Hugo web server, which listen on localhost:30000.
The ubuntu machine has the 192.168.2.137 address.
When i do:
curl http://localhost:30000/ -> OK
curl http://127.0.0.1:30000/ -> OK
but,
...
1
vote
0
answers
289
views
NetworkManager.conf reset to "404: NotFound" every time service is restarted
i encountered a problem while working with the NetworkManager service on my Raspberry pi 4, i am running it with openSUSE Tumbeweed JeOS, so the default is not networkmanager but wicked, i started to ...
-1
votes
1
answer
310
views
Network Manager service assigning already used IP in the network in RHEL7-8
We have been using network-scripts to manage the networking of our Linux systems adding NM_CONTROLLED=no in ifcfg-ethn files. But we have encountered a special case where this is not working and we ...
0
votes
1
answer
425
views
How do I request a scan on a Wi-Fi device using libnm?
The documentation suggests I use nm-device-wifi-request-scan-async, but I don't understand how to understand when it's has finished scanning. What's the correct second parameter I should pass, how is ...
2
votes
1
answer
835
views
getProperties method not found for NetworkManager
I am going through dbus-python tutorial.
https://dbus.freedesktop.org/doc/dbus-python/tutorial.html#interfaces-and-methods
The example provided does not work for me. I replaced the eth0 with 1 but ...
1
vote
1
answer
806
views
How to determine an SELinux rule from an error in dbus-monitor output
I have an issue in a yocto based embedded linux system. I have tracked it down to an interaction between dbus and SELinux, and using dbus-monitor I can see the following error:
error time=1621869986....
0
votes
1
answer
466
views
how call GetSettings qt qdbus network manager?
I'm calling the ListConnections method to list all the connections already configured on the system.
I am trying to use the getSettings method of the network manager to retrieve the id of each ...
2
votes
3
answers
11k
views
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?
3
votes
0
answers
725
views
Connman does not seem to start a DHCP server
I am creating a USB gadget with Yocto, which loads the gadget kernel modules and is recognized by my host as a network interface (usb0). On the gadget, I have connman installed and running. I am using ...
0
votes
1
answer
690
views
Change IP Address using libnm and glib
I'm trying to use libnm to change the ip address of my interface inside a C++ application, but I cannot find a good example around. For now I was able to get the device handler and ask for connections....
4
votes
1
answer
2k
views
USB Modem with modemmanager and networkmanager on embedded linux (yocto dunfell)
I am trying to get a USB Modem working on my embedded system which uses Linux from Yocto Dunfell with ModemManager and NetworkManager.
As you can see below, I am able to connect the modem on the ...
0
votes
0
answers
289
views
DBus::Error while running Rails in Ubuntu WSL
I'm using the wsl2 with ubuntu 18.04 and I want to run a Rails project but encountered an error where I can't find the solution.
After starting the Rails application with rails s the console prompted ...
1
vote
2
answers
7k
views
Remove DNS from device using `nmcli`
I want to remove the DNS currently associated to the device and add a new one using nmcli
So, if I do nmcli device show eth0 I can see
IP4.DNS[1]: 10.0.2.2
If I do sudo ...