How to disable NetworkManager in Ubuntu

From Technical Documentation

How to get rid of NetworkManager

If, for some reason, you would like to get rid of the NetworkManager under Ubuntu:

(Maybe because like me, you're a control freak and you prefer to do it the old fashion way)

  • systemctl stop NetworkManager
  • systemctl disable NetworkManager
  • Remove the symbolic link /etc/resolv.conf
  • Create a simple file /etc/resolv.conf instead

Example resolv.conf:

search intra.lab

  • Edit the file /etc/network/interfaces

Example interfaces file:

auto lo
iface lo inet loopback
auto enp5s0
iface enp5s0 inet static
  • ifdown enp5s0
  • ifup enp5s0

There are also alternate ways to edit your DNS config: source