Welcome to the Linux Foundation Forum!

Linux Networking


I think i suffer from "tunnel vision" after spending the day on the first sections of LFS211 on networking, and i just want to confirm the obvious.

The old /etc/network/interfaces ha an effect if you don't use NetworkManager nor systemd-networkd.
What if by mistake you keep either of those services running while you go and create a configuration in /etc/network/interfaces?

Let's say, i have a NetworkManager connection profile for eth0 configured to use DHCP, but the /etc/network/interfaces has a static configuration.
What takes precedence?


  • lee42x
    lee42x Posts: 380

    Yes, the old networking can still work so no NetworkManager or systemd.networkd. If /etc/network/interfaces exists, NetworkManager(NM) should use it.
    NM has a locking mechanism, "managed" or "unmanaged" that can be applied on individual network adapters, for example the "lo" is often "unmanaged" meaning NM will not mess with it.
    This gives ownership and flexibility to the configuration.

    Let me know if that helps, Lee


Upcoming Training