How to reload /etc/network/interfaces in Ubuntu or Debian

In Ubuntu or Debian, information on network interface configuration is stored in /etc/network/interfaces. If you modify /etc/network/interfaces to reconfigure any interface, you need to reload it so that the new configuration can take effect.

Here is how you can reload /etc/network/interfaces.

sudo service networking restart

One caveat: If NetworkManager is installed and enabled on your system, it will interfere with you reloading /etc/network/interfaces. On Ubuntu Desktop, for example, NetworkManager is enabled by default. Thus you first need to disable NetworkManager before attempting to reload /etc/network/interfaces.

To disable NetworkManager, do the following.

$ sudo service network-manager stop
$ sudo update-rc.d NetworkManager remove

If you don't want to disable NetworkManager, another option is to edit NetworkManager configuration, and add "managed=false" as follows. Then, restart NetworkManager.

$ sudo vi /etc/NetworkManager/NetworkManager.conf
$ sudo service network-manager restart
Download this article as ad-free PDF (made possible by your kind donation): 
Download PDF

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

Leave a comment

Your email address will not be published. Required fields are marked *