The **service** command is just a wrapper for this method (and also for init.d scripts and Upstart commands). The **systemctl** command is much more versatile than **service**. This is what I usually prefer.
这两个命令是直接操作网卡,, changing it’s state to one in which it either can or can not transmit and receive data. It’s one of the [must know networking commands in Linux][4].
This is, of course, the easiest way of restarting the network for Ubuntu desktop users. If this one doesn’t work, you can of course check the command line options mentioned in the previous section.
NM-applet is the system tray applet indicator for [NetworkManager][15]. That’s what we’re going to use to restart our network.
First of all, check out your top panel. You should find a network icon in your system tray (in my case, it is a Wi-Fi icon, since that’s what I use).
Go ahead and click on that icon (or the sound or battery icon). This will open up the menu. Select “Turn Off” here.
![Restart network in Ubuntu][16]Turn off your network
The network icon should now disappear from the top panel. This means the network has been successfully turned off.
Click again on your systray to reopen the menu. Select “Turn On”.
![Restarting network in Ubuntu][17]Turn the network back on
Congratulations! You have now restarted your network.
#### Bonus Tip: Refresh available network list
Suppose you are connected to a network already but you want to connect to another network. How do you refresh the WiFi to see what other networks are available? Let me show you that.
Ubuntu doesn’t have a ‘refresh wifi networks’ option directly. It’s sort of hidden.
You’ll have to open the setting menu again and this time, click on “Select Network”.
![Refresh wifi network list in Ubuntu][18]Select Network to change your WiFi connection
Now, you won’t see the list of available wireless networks immediately. When you open the networks list, it takes around 5 seconds to refresh and show up other available wireless networks.
![Select another wifi network in Ubuntu][19]Wait for around 5- seconds to see other available networks
And here, you can select the network of your choice and click connect. That’s it.
**Wrapping Up**
Restarting your network or connection is something that every Linux user has to go through at some point in their experience.
We hope that we helped you with plenty of methods for handling such issues!
What do you use to restart/handle your network? Is there something we missed? Leave us a comment below.