How to reload /etc/network/interfaces in Ubuntu 22.04?

While working with any system on a network, several network problems can often occur that require a user to reload the network/interface. In Linux-based systems like Ubuntu, terminal commands are usually used to perform operations. So if you want to reload the network/interface while working on the terminal to fix the network related issues in your system, this article will help you.

Follow the guide of this article to reload etc/network/interfaces in Ubuntu 22.04.

Reload /etc/network/interfaces in Ubuntu 22.04

To reload /etc/network/interfaces in Ubuntu there are three ways:

Method 1: With Network Manager

In Ubuntu, the network manager is the default network configuration tool and with its help you can configure network interfaces on the system. So when you reload the network manager on the Ubuntu system, the file will be reloaded automatically etc/network/interfaces.

There are several commands for reloading Network Manager on an Ubuntu system, which are discussed below

command 1

Since the network manager service runs in the background on Debian, restarting the service by the command below will eventually reload it etc/network/interfaces on the system:

sudo systemctl restarts NetworkManager.service

command 2

You can also apply the following command to reload the etc/network/interfaces on Debian.

sudo Restart systemctl NetworkManager

command 3

Debian user can also apply the following reload command etc/network/interfaces with Network Manager.

sudo reload systemctl NetworkManager

command 4

Instead of systemctlyou can use the… service Command to reload network interfaces on Ubuntu.

sudo Reload the NetworkManager service

After running any of the network manager commands above, your Ubuntu system’s network/interfaces will reload/reboot within a few seconds.

Method 2: By using nmcli

The other method is to use nmcli command, a command line tool for controlling network managers. It can also be used to view network status via terminal by running the command written below:

To reload the network interfaces, you need to disable networking using the nmcli command mentioned below:

nmcli network off

After a few seconds, turn on the network by using the below-mentioned command to successfully reload the network interfaces.

nmcli network on

Method 3: By using systemd-networkd

In Ubuntu there is another service that manages the network systemd-networkd. This service mainly works for configuring network devices in Ubuntu, but can also be used for reloading /etc/network/interfaces by following the syntax mentioned below:

sudo systemctl restarts systemd-networkd.service


For reloading /etc/network/interfaces There are three ways in Ubuntu: One is to use network managerthe second is the use of “nmcli” command and the third is by use systemd-networkd. The commands and details for each of these methods are discussed in the guidelines above.

Related Posts