NetworkManager.service
Last updated
Last updated
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:
ifupdown
sectionThis 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
.
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 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: