Debian

How to Reload /etc/network/interfaces in Debian

Sometimes, the users may experience network issues while working on the system or configuring the network interfaces. For both purposes, they must reload the network interfaces on the Debian system to fix the network-related issue or apply the changes they made to the configuration file. By default, the Network Manager is responsible for performing network-related activities, and its use resides in the /etc/network/interfaces location on the Debian system.

If you want to restart or reload /etc/network/interfaces in the Debian system, follow this article’s guidelines.

How to Reload /etc/network/interfaces in Debian

There are several commands to restart or reload /etc/network/interfaces in the Debian system, which are discussed here.

Command 1

You can reload the network interfaces in the Debian system using the following command:

sudo /etc/init.d/networking restart

Command 2

Command 1 can also be modified in the following way to reload the network interfaces in the Debian system.

sudo /etc/init.d/networking reload

Command 3

The service command is a command and with the help of this command, you can reload the network interfaces in the Debian system:

sudo service networking restart

Here, in the above command, the networking is the service associated with network interfaces /etc/network/interfaces.

Command 4

You can also use the “systemctl” command to reload the network interfaces in Debian system and the command is given below:

sudo systemctl restart networking

Command 5

Since Network Manager is controlling the network interfaces etc/network/interfaces in the Debian system, you can reload them using the following command.

sudo systemctl restart NetworkManager

Command 6

The above Command 5 can also be modified by replacing the “reload” with “restart” to reload the network interfaces in the Debian system.

sudo systemctl reload NetworkManager

Command 7

Instead of systemctl, you can also use the service command to reload the network interfaces in the Debian system.

sudo service NetworkManager reload

Command 8

Command 7 can also be modified by replacing the “reload” with “restart” to reload the network interfaces in the Debian system.

sudo service NetworkManager restart

Command 9

You can also reload the network interfaces in the Debian system from the following systemctl command:

sudo systemctl restart systemd-networkd.service

Conclusion

Reloading the network interfaces etc/network/interfaces in the Debian system help users fix network-related issues or apply new changes to the system. The users can check out each command mentioned in the above guidelines one by one and execute them in the terminal to reload the network interfaces in the Debian system.

About the author

Awais Khan

I'm an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.