NetworkManager.service

This service is integrated with the nmcliarrow-up-right tool.

Configuration file: /etc/NetworkManager/NetworkManager.conf.

The following /etc/NetworkManager/NetworkManager.conf file is retrieved from a Kali Linux machine:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

ifupdown section

This section contains ifupdown-specific options and thus only has effect when using the ifupdown plugin.

managed

If set to true, then interfaces listed in /etc/network/interfaces are managed by NetworkManager. If set to false, then any interface listed in /etc/network/interfaces will be ignored by NetworkManager. Remember that NetworkManager controls the default route, so because the interface is ignored, NetworkManager may assign the default route to some other interface.

The default value is false.

Example configuration for a Debian-based machine

Given that we have a Linux machine with an eth0 interface, and the following values in the respective configuration files:

/etc/network/interfaces

/etc/NetworkManager/NetworkManager.conf

Since the managed field is set to false, NetworkManager will ignore the interfaces listed in /etc/network/interfaces. In this case, the lo interface will be ignored.

NOTE: If we were to include the eth0 interface in /etc/network/interfaces, NetworkManager will ignore it, and our machine will not be able to configure that interface:

We can use the nmcliarrow-up-right tool to view the status:

As a result, NetworkManager will automatically configure DHCP and DNS for our machine. To view DHCP and DNS configurations respectively:

DHCP:

DNS:

Last updated