Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes

Centos Stream 8 NetworkManager - Where is DHCP client lease data?

Seen here, newer versions of NetworkManager will expose this information in /run/NetworkManager/devices/$IFINDEX. If you have an older version (or just prefer running programs to parsing files) you ...
Nicholas Taylor's user avatar
4 votes

How exactly are NetworkManager, networkd, netplan, ifupdown2, and iproute2 interacting?

This is a pretty detailed question. I'll break it down as much as I can: Netplan: This is a YAML network configuration abstraction for various backends. It can generate configuration files for ...
Goody's user avatar
  • 41
2 votes
Accepted

How does NetworkManager get external devices?

The kernel generates an udev event for the addition, change or removal of any device, including network devices. Since udev monitors these events, it will become aware of all network devices as soon ...
telcoM's user avatar
  • 98.1k
2 votes
Accepted

systemd service for openvpn vs networkmanager-openvpn

NetworkManager supports external network types via a plugin API. It's often called "NetworkManager's VPN plugins" and the VPN plugin API. In that case, you install the plugin and create ...
thaller's user avatar
  • 1,646
2 votes
Accepted

Linux using wrong default gateway

I think what you're trying to do is set up "source based routing". Typically routing is destination based. To do this we need to make use of advanced ip functionality, by creating a second ...
Stephen Harris's user avatar
2 votes
Accepted

Manual added routes and rules in Network manager

Is there a command in nmcli to get the live route/rule configuration and store it to Network Manager configuration files? There is not. Or is there another approach to persist the configuration? ...
larsks's user avatar
  • 35.4k
1 vote

sshd failed due to network not yet available

None of the above worked for me. I resolved the issue using a cronjob. sudo crontab -e Then add: @reboot sleep 10; systemctl start sshd
artifii's user avatar
  • 11
1 vote

NetworkManager changes default routing policy

If someone cannot fix the issue with other answers, you may also want to check if you don't have another network manager installed that is interfering. I had both ConnMan and NetworkManager installed ...
baptx's user avatar
  • 287
1 vote
Accepted

How to disable MAC address randomization in Fedora 40?

I tried to follow the advice from link 2 and create 2 I don't think that is what link 2 suggests. The Fedora change introduces a new file /usr/lib/NetworkManager/conf.d/22-wifi-mac-addr.conf. That's ...
thaller's user avatar
  • 1,646
1 vote
Accepted

Configure two network cards persistently

You have 2 NIC's and want the 2.5gb NIC to be the default one and prefered over the 1Gb one. In addition to that according to cat /etc/network/interfaces output in your comment this is possible only ...
metablaster's user avatar
1 vote
Accepted

The routing metric is changed after a while for eth0 and eth1, automatically

It was because of the dhcpcd. Simply disable all of the DHCP services, when the NetworkManager is embedded in your image, due to avoid conflicts. After disabling the dhcpcd service, NetworkManager ...
SAP's user avatar
  • 11
1 vote
Accepted

Why does NetworkManager not recognize this example.conf file?

I fiddled around with the commands in the link shared by @XTian here and figured that changing [wifi-security] to [802-1x] will get it recognized. To get it working, I had to change the file to this: [...
372191's user avatar
  • 11
1 vote
Accepted

Wake On Lan using a nic attached to a NetworkManager bridge interface

Wake-On-LAN is a hardware feature: it's not intended to reach the main interface participating in routing: the bridge, but always the physical interface: the actual NIC interface set as bridge port. ...
A.B's user avatar
  • 37k
1 vote

NetworkManager showing different information than ip command

"disconnected" for NetworkManager means that the interface is logically not connected. That is, it has no profile activated. It may also be subject to autoconnect, if you had a suitable ...
thaller's user avatar
  • 1,646
1 vote
Accepted

Set up wired ethernet LAN to coexist with wireless WAN using NetworkManager

Ok, I figured it out by looking at the answer to this question: NetworkManager changes default routing policy To summarize: Open up NetworkManager's graphical connection editor $ nm-connection-editor ...
tomoverlund's user avatar
1 vote

Run nmcli commands in chroot environnement

You would need to somehow allow communication with the "host" NetworkManager daemon, so, a dbus-enabling bind mount? I'm not sure nmcli works without access to the config files in /etc, so ...
sina bala's user avatar
  • 481
1 vote

How to force NetworkManager to automatially attempt to reconnect forever (linux wifi)?

I don't know how to configure Network Manager to be less lazy and keep trying, but I do know how to write a script that watches Network Manager and forces it to keep working. #!/bin/bash set -x ...
Michael Altfield's user avatar
1 vote
Accepted

Can’t get DNS IPs with NetworkManager during PXE boot

Solution is starting dhcpcd manually after boot with arguments: dhcpcd --nooption host_name --clientid -h $(hostname) -1 I run this command in systemd service after nfs-client.target and network....
IlorDash's user avatar
1 vote

Network disconnecting and connecting randomly

Your eth0 interface is an Intel I225-V. If you google for it, you will find a lot of vitriolic discussion about it. https://www.intel.com/content/www/us/en/support/articles/000057261/ethernet-products/...
telcoM's user avatar
  • 98.1k
1 vote
Accepted

How to configure bridged networking for KVM virtual machines in Kali Linux host?

The problem here is not Kali. While I in general agree that Kali is not a good choice if you don't need Kali, it should support bridging. But bridging with wifi is difficult. In this case I would ...
vidarlo's user avatar
  • 283
1 vote
Accepted

Multiple NetworkManager connection profiles for the same ethernet interface not always work correctly

I have found the problem: to set correctly the default configuration I need to execute the nmcli con up command as showed below: nmcli con up "ethernet_default_ipstatic" iface enp3s0 as ...
User051209's user avatar
1 vote

I'm not able to connect to Internet using the eth0 network interface produced by the pugable usb to eth adapter

No, the interface is not renamed to eth0. The kernel initially uses the name eth0, but the system renames the inteface from eth0 to enx8cae4cd6c871. This is because if you unplug the USB network ...
telcoM's user avatar
  • 98.1k
1 vote
Accepted

Host is getting an IP from a bridged device but a virt-manager VM is not

Docker uses iptables to manage its containers, just like libvirt uses it too. But usually Docker doesn't play nice with other network-related tools running on the same system, for two reasons: Docker ...
A.B's user avatar
  • 37k
1 vote

Why does `ip route show` not produce any output in my script from systemd service

My guess is that ip route simply exits too fast for systemd-journald to correctly detect which unit it belongs to. Check the global journalctl -b to see if it has the output you wanted. (It's a known ...
u1686_grawity's user avatar
1 vote
Accepted

how can I create additional loopback interface permanentely?

For RHEL X, where 8 <= X < 9.1 This is addressed explicitly in a knowledgebase article: NetworkManager traditionally did not manage the loopback interface by design. Red Hat customer Requests ...
larsks's user avatar
  • 35.4k
1 vote

How do I calculate ip address and gateway for nmtui command in linux?

There's nothing to calculate. The Gateway is a single address that's part of your subnet, which your network defines, not calculates. The DNS server is the address of someone's DNS server (in your ...
Marcus Müller's user avatar
1 vote

Network Manager bug Debian 12

Perhaps you have the package named network-manager-config-connectivity-debian installed? It includes a configuration file /usr/lib/NetworkManager/conf.d/20-connectivity-debian.conf that tells ...
telcoM's user avatar
  • 98.1k

Only top scored, non community-wiki answers of a minimum length are eligible