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
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:
You can also apply the following command to reload the etc/network/interfaces on Debian.
Debian user can also apply the following reload command etc/network/interfaces with Network Manager.
Instead of systemctlyou can use the… service Command to reload network interfaces on Ubuntu.
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:
After a few seconds, turn on the network by using the below-mentioned command to successfully reload the network interfaces.
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:
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.