How to Restart Network Interface in Linux

In this tutorial, we are learning about how to restart the network interface in Linux. After you change the Server Network configuration file, you must restart the Server Network service for the changes to take effect.

Restarting the Network interface in Linux OS

The network interface in Linux OS is a configuration that allows computers and other devices to communicate across a network. It can be used to connect computers and other network devices to each other and the internet.

Ubuntu / Debian

Network Manager is a graphical tool used to configure networking services in Ubuntu. It allows users to easily manage wired and wireless connections, as well as configure other services such as DNS, proxy, and VPNs. It also provides a user-friendly, interface for managing all your network settings.

Use the following command to restart the server networking service.

sudo /etc/init.d/networking restart

or

sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start

or

sudo systemctl restart networking

Once this is done, use the following command to check the server network status.

sudo /etc/init.d/networking status

or

sudo systemctl status networking

NetPlan

NetPlan is a new network configuration utility for Linux systems that uses YAML to configure network interfaces. It was introduced in Ubuntu 18.04 and is the successor to the now deprecated ifup/down utility. Run the command below to update the network, and then any changes made to the network will take effect:

netplan apply

Netplan Design Overview

Conclusion

You should now have a good understanding of how to restart the network interface in Ubuntu. We have GUI mode also in Ubuntu where we can modify the IP addresses.

If you have any questions please leave them in the comments below.

Leave a Reply

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