How to Restart Networking on Ubuntu

Restarting the network is one of the most common systems administration activities. Let's show you GUI and command-line ways of doing it on your older and newer versions of Ubuntu.

Sometimes resetting your Ubuntu network is required to apply some network configurations like changing your IP from Automatic DHCP to static one. Restarting it is not a big deal, but should be done carefully.

It is highly recommended not to perform such an action remotely using SSH because once you stop the network, your SSH connectivity will be lost. In some rare cases, you will not be able to start the connection through SSH. You will just need to be connected to the Ubuntu machine directly.

Restart Networking on Ubuntu

In this guide, we are going to show you how to restart your Ubuntu machine network using the following techniques:

  • Graphical user interface or (GUI) tool
  • Command-line or (Terminal) method

Now let’s start discussing each method separately.

Method 1: Restart the Ubuntu Network Using Graphical User Interface or (GUI)

In general, using any graphical tool is considered the easiest method to do whatever you need. In our tutorial, we shall use the NM-applet, which is a built-in applet for the Ubuntu network-manager, and it is found in the system tray. Below you can find detailed steps to restart the network connection using the NM-applet.

Stop Network

Step 1. First, let’s open the NM-applet; from the top panel, you can find a symbol for your network icon, which indicates that you are connected to the internet. Now click the down arrow.

Press The Down Arrow
Click The Down Arrow

Step 2. Select the “Wired Connected” option.

Press The Wired Connection Option
Click The Wired Connection Option

Step 3. Next, choose the “Turn Off” option to stop the network manager.

Press Turn Off Button
Click Turn Off Button

As you can notice, the network icon will disappear from the top panel, which indicates you are now offline.

Network Connection Is Down
Network Connection Is Down

Start Network

To start the network again, click the down arrow from the top panel. Then click the “Connect” option. You can now find the network icon appears in the top panel again.

Press The Connect Button
Press The Connect Button

Method 2: Restart the Ubuntu Network Using Command-Line

Besides the NM-applet graphical tool discussed in the above method, you can easily restart the network connection using command-lines. Some of those commands will make the network icon disappear from the top panel, and some will not affect its appearance. Hence, sometimes you may stop the network while the network icon still exists in the top panel, but meanwhile, you will be disconnected and will not be able to use the internet.

Restart Networking Service using init.d

Stop network service using the next init.d command. Make sure that you have sudo privileges to run these commands.

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

Stop Network Service
Stop Network Service

To start the network service again.

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

Start Network Service
Start Network Service

The previous four commands can be used with Ubuntu 14.04 LTS and older versions. However, for newer Ubuntu versions you can use the below commands:

sudo systemctl restart networking.service

or the following command too:

sudo systemctl restart networking

Restart Network Manager Service

Using the below command will stop and start the network manager immediately, so the network icon may not disappear. To restart the network-manager service, use the following command:

sudo service network-manager restart

Restart Network Manager
Restart Network Manager

Restart Network Using nmcli Command Tool

This command is widely used by Linux administrators to restart the network. Again you need to ensure you have sudo privileges.

sudo nmcli networking off

Stop Network Service Using nmcli
Stop Network Service Using nmcli

To start the network again using the following command:

sudo nmcli networking on

Start Network Service Using nmcli
Start Network Service Using nmcli

Restart Network Using ifdown/ifup Command

Additionally, you can restart the network interface immediately using the ifdown and ifup commands. To stop the network interface use the following command:

sudo ifdown -a

Stop Network Interface Using ifdown Command
Stop Network Interface Using ifdown command

To start the network interface again, use the next command:

sudo ifup -a

Start Network Interface Using ifup Command
Start Network Interface Using ifup Command

That’s it for now. I hope you have enjoyed this tutorial.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.


Please enter your comment!
Please enter your name here




How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

How to list the installed Packages on Ubuntu

It is only natural to start installing more and more software on your Ubuntu PC once you start using it. Similarly, it is also natural to lose track of the different packages that you have installed on your system. Eventually, you may be overwhelmed with the number of packages in your system and with the ones you hardly used.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

Linux Mint vs. Ubuntu – which is best for you?

The conundrum is that which one among them? The best solution is to try both of them out, and then choose whatever seems to work the best for your needs. But here, we're giving you some distinctions between the both that might make it easier for you to make a choice.

Top 5 Linux Distros for Windows Users

When Microsoft initially released Windows 7 in October 2009, the software giant committed to providing ten years of support for its popular operating system.  The much-maligned Microsoft was true to their word, support for Windows 7 ended just yesterday a little over ten years after its release.

5 Things to do when your Linux system GUI freezes

All operating systems freeze at some point and, Linux distributions are no exceptions. In this post, we are going to look at five methods you can apply to your frozen system before thinking of plugging out the power cable or holding down the power button to power off the PC.

Installing multiple Linux distros on a USB drive

A bootable Linux USB drive, which also referred to as a Live USB drive, is a drive containing files that enable a computer to boot into a specific Linux distro. It is most commonly used to test-drive various Linux distros before installing on the computer for use as a daily driver.