Categories: Ubuntu

How to Restart Network on Ubuntu 22.04

The latest version Ubuntu 22.04, provides various methods that can be utilized to restart a network. You can either make use of the GUI or the command line to restart the networking services on your system. In this write-up, we will discuss how to restart the Network on Ubuntu 22.04:
  • Using the GUI
  • Using the ip Command
  • Using the nmcli Command.

So, let’s start!

Method 1: How to restart network on Ubuntu 22.04 using GUI

If you prefer using the GUI over the command line, then this method is suitable for you.

Step 1: Open Menu
Firstly, switch to your Ubuntu 22.04 desktop screen and click on the top right corner where you see the network

Sponsored
icon. A pop-up menu will appear in which you will see the “Wired Connected” option:

Step 2: Press Turn Off
When you click this option, another option labeled “Turn Off” will appear. By pressing it, the network connection will turn off:

Step 3: Press Connect
Now press “Connect” to restart the network:

The network will be restarted within a few seconds:

Method 2: How to restart network on Ubuntu 22.04 using ip Command

This method utilizes the command terminal to turn the network on and off and restarts an individual interface.

Step 1: List All Interfaces
Before restarting your network, first of all, press “CTRL+ALT+T” to open up the Ubuntu 22.04 terminal and then run the “ip” command while specifying the network interface name as follows:

Sponsored
$ ip a s dev enp0s3

Step 2: Restart network interface
Now, execute the following commands to first turn off and then turn on your network connection. In our case, we will restart the “enp0s3” network interface:

$ sudo ip link set enp0s3 down
$ sudo ip link set enp0s3 up

Output

The network has been restarted.

Method 3: How to restart network using nmcli tool

This method restarts the complete network rather than just an individual interface.

Step 1: Check Status
First of all, press “CTRL+ALT+T” to open up the terminal and use the following “nmcli” command to check the device status:

$ sudo nmcli device status

Step 2: Restart Network
Now, simply utilize the “nmcli” commands below on the terminal to turn the network on and off:

$ sudo nmcli networking off
$ sudo nmcli networking on

Output

Network was restarted.

Conclusion

For the purpose of restarting the network on Ubuntu 22.04, either restart it using GUI from the wired settings or use the ip, or the nmcli command. When using the ip command, first bring the network down using the command “$ sudo ip link set enp0s3 down” and then bring it back up using the “$ sudo ip link set enp0s3 up” command. Meanwhile, to turn the network on and off through the nmcli method, use the “$ sudo nmcli networking off” and “$ sudo nmcli networking on” commands.

Ubuntu Server Admin

Recent Posts

AI in 2025: is it an agentic year?

2024 was the GenAI year. With new and more performant LLMs and a higher number…

3 hours ago

Canonical announces 12 year Kubernetes LTS

Canonical’s Kubernetes LTS (Long Term Support) will support FedRAMP compliance and receive at least 12…

1 day ago

Ubuntu Weekly Newsletter Issue 878

Welcome to the Ubuntu Weekly Newsletter, Issue 878 for the week of February 2 –…

2 days ago

How your feedback shapes the way we support open source software

At Canonical, we firmly believe that delivering an outstanding, customer-centric support experience is impossible without…

2 days ago

How To Install osTicket v1.14 On Ubuntu 20.04

I want to share how to install osTicket v1.14 for Ubuntu 20.04 server. osTicket written…

3 days ago

How To Install WordPress On Ubuntu 20.04

Now I want to share how to install WordPress on ubuntu 20.04 server. WordPress is…

3 days ago