NetworkManager.service
This service is integrated with the nmcli 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
ifupdown sectionThis section contains ifupdown-specific options and thus only has effect when using the
ifupdownplugin.
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
eth0interface in/etc/network/interfaces, NetworkManager will ignore it, and our machine will not be able to configure that interface:
We can use the nmcli 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