1

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?
3
  • 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
    – djdomi
    Sep 5, 2021 at 13:34
  • Packet network-manager (1.30.0-2) is installed by default in Debian11 (from debian-11.0.0-amd64-netinst.iso). Sep 6, 2021 at 5:36
  • 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
    – djdomi
    Sep 6, 2021 at 6:01

0

You must log in to answer this question.

Browse other questions tagged .