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
or 
sudo service networking stop

Stop Network Service
Stop Network Service

To start the network service again.

sudo /etc/init.d/networking start
or 
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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,241FansLike
399FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

MUST READ

The year is 2020, and Linux-based operating systems have never been more popular. All thanks to their increased security and privacy, smooth updates, and open-source nature, everyone wants to at least give a shot to its multitude of distributions. Now we have already covered some of the best Linux-based laptops that you can find in the market as of now. With that being said, we get it that they are not everyone's cup of tea, so Linux PC desktops are also something that you should be taking a look at as well.
“I am because you are,” is the themed meaning behind the famed Ubuntu operating system. Moreover, this mindful phrase is practical because it continues to lure more individuals into the Ubuntu universe. Because great power beckons great responsibility, Ubuntu is stepping up. It realizes that different users will want to use the Ubuntu operating system software differently.

What’s New in Ubuntu 20.04 LTS “Focal Fossa”

Ubuntu 20.04 LTS is out now! This is the successor to Ubuntu 18.04, which was released in April 2018 and still has three years of official support left. Code-named Focal Fossa, the new edition has all the bells and whistles included in it, making it one of the best Ubuntu releases yet. Let's find out more.

The 10 Best Free and Open-Source CAD Software

Making its way into the world somewhere in the 1960s, Computer-Aided Design, or better known as CAD, has thoroughly revolutionized design and drawing, constituting a multi-billion market in the US alone. Today, this technology is extensively utilized in engineering-based manufacturing industries and design creations. Products are bought, sold, and traded in millions of Dollars, and this is how CAD flourishes in sectors.

What is FOSS, and how does it differ from Freeware

The rise of the Linux operating system, in all its various distributions, over the past few decades has catapulted the popularity of Free or Open Source Software (FOSS). Let's guide you in understanding what is FOSS, how it differs from freeware and is Linux a FOSS.

Manjaro vs. Ubuntu – which is better for you?

If you are a person associated with Computer technology and spend most of the time in the open-source arena, you must have heard or worked with some of the popular Linux distributions we have in the market. Some of the names that you will never miss are; Ubuntu, Arch Linux, Debian, and Mint.