Score:1

Debian NetworkManager fails to reconnect

jp flag

Following the NetworkManager description https://wiki.debian.org/NetworkManager the goal of NetworkManager is:

NetworkManager attempts to keep an active network connection available at all times.

I compared an Ubuntu 21.04 system with Debian 11 (bullseye), both as virtual guest in a Libvirt environment, using 2 "wired" network interfaces (different subnets) on each guest.

Procedure:

  1. Starting guest with one interface link active (second is down)
  2. Set active link down (via Virtual Manager)
  3. Set link from another network interface up (via Virtual Manager)
  4. Checking inside guest, if network is reconnected on the second interface

On Ubuntu 21.04 system everything works as desired, the guest is removing the interface with missing carrier (because link was set to down), and reconnects the net on the second interface automatically (which link was set to up).

The Debian guest is not reconnecting automatically, but it works if you switch on the interface inside guest manually.

If you change the procedure to ...

  1. Starting guest with one interface link active (second is down)
  2. Set active link down (via Virtual Manager)
  3. waiting to interface removed inside guest
  4. Set link from another network interface up (via Virtual Manager)
  5. Checking inside guest, if network is reconnected on the second interface

... network is reconnected automatically also in Debian guest.

So it seems, that NetworkManager in Debian systems has a serious problem. When second interface becomes a valid carrier if anoter interface is already active, the new interface is ignored for automatic connection now and in the future. If the active interface goes down, NetworkManager is not activating the interface on the second available interface, with the result guest is not longer connected to any network!

I try to compare versions, packets and config files and cannot see any differences.

My questions:

  • Any idea why these systems react different on same procedure?
  • What can be modified in Debian system to achieve the NetworkManager's goal (network active all the time) reliable?
djdomi avatar
za flag
I am unaware that debian uses the network manager instead the old /etc/networking, if it's a fresh installation maybe you want to have a look into proxmox
Manfred Steiner avatar
jp flag
Packet network-manager (1.30.0-2) is installed by default in Debian11 (from debian-11.0.0-amd64-netinst.iso).
djdomi avatar
za flag
`apt show network-manager Package: network-manager Version: 1.30.0-2 Priority: optional ` for proxmox and all other standard installation i dont see that
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.