{"id":18821,"date":"2022-10-04T15:58:26","date_gmt":"2022-10-04T15:58:26","guid":{"rendered":"https:\/\/linuxways.net\/?p=18821"},"modified":"2022-11-04T02:47:13","modified_gmt":"2022-11-04T02:47:13","slug":"restart-network-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/restart-network-ubuntu-22-04\/","title":{"rendered":"How to Restart the Network in Ubuntu 22.04"},"content":{"rendered":"<p><a id=\"post-18821-_Hlk108982719\"><\/a>Restarting or rebooting the system is the primary solution whenever a problem occurs. Similar to this, restarting the network is a quick fix for any problem that occurs in the network. There are a variety of situations where you might need to restart or reboot the network in Ubuntu, such as when the network settings are changed or an active network connection isn&#8217;t functioning properly. All Linux systems need their network services to be restarted if any problem occurs with the networks. This tutorial covers the several methods to restart your network in Ubuntu 22.04. We can pick the one that best meets our requirements. There are two categories of methods:<\/p>\n<ul>\n<li><a href=\"#1\">Ubuntu network restart using the command line<\/a><\/li>\n<li><a href=\"#2\">Ubuntu network restart using the GUI<\/a><\/li>\n<\/ul>\n<h2 id=\"1\"><strong>How to Restart the Network in Ubuntu 22.04<\/strong><\/h2>\n<p>It\u2019s surprising how frequently restarting the network can fix the network-related issues. Some connection issues are serious and they require some tricks and approaches. So, don&#8217;t be discouraged; simply rebooting the network can be proved helpful in resolving any connectivity problems. The purpose of this post can be achieved in several ways, thanks to Linux&#8217;s versatility. All the methods are simple, but it depends on how the system is used and whether you have the proper tools.<\/p>\n<h2><strong>Method #1: Using the Command Line to Restart the Network in Ubuntu<\/strong><\/h2>\n<p>If you are running the Ubuntu&#8217;s server edition, the terminal is already opened. In the Ubuntu desktop edition, using the Ctrl+Alt+T keyboard shortcut gives you an access to the terminal. Several commands can now be used to restart your network in Ubuntu. The majority of the commands that we will use here should work to restart the network in the Linux distributions and Debian.<\/p>\n<h3><strong>Reboot the Network Using the Network Manager Service<\/strong><\/h3>\n<p>Using the command line is the simplest approach to restart your network. Rebooting the Network-Manager service is similar to executing it with the graphical method.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"25\" class=\"wp-image-18837\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-1.png 647w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-1-300x12.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<p>If it runs successfully, the network icon may disappear and then reappear for a while. In Ubuntu 22.04, using the previous command may return the following error:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"41\" class=\"wp-image-18841\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-2.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-2-300x17.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<p>To avoid this error, there is an alternative command using the \u201csystemctl\u201d to perform the same task.<\/p>\n<h3><strong>Restart the Network Using the Systemctl Command<\/strong><\/h3>\n<p>For this method, the &#8220;service&#8221; command is simply a wrapper also for \u201cUpstart commands\u201d and &#8220;init.d scripts\u201d. Compared to service, the &#8220;systemctl&#8221; command is far more versatile. This is usually what we prefer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"37\" class=\"wp-image-18844\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-3.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-3-300x15.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p>Running the previous command might pop-up an \u201cAuthentication required\u201d window where we enter the password to restart the Network-Manager service.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"356\" height=\"363\" class=\"wp-image-18848\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-4.png 356w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-4-294x300.png 294w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><\/p>\n<p>After entering the password, the network is rebooted. The network icon should momentarily disappear (again). You can see the manual page for the systemctl to see what other options are available.<\/p>\n<h3><strong>Restart the Network Using the Nmcli Command <\/strong><\/h3>\n<p>This is another tool that can be used to manage the networks in an Ubuntu system. It is popular among sysadmins since it is simple to use. This method includes two steps: the network must first be turned off and then it must be turned back on.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"548\" height=\"25\" class=\"wp-image-18852\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-5.png 548w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-5-300x14.png 300w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/p>\n<p>The network icon disappears and the network will terminate. Use the following command to restart it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"543\" height=\"23\" class=\"wp-image-18856\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-6.png 543w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-6-300x13.png 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/p>\n<p>For further options, you can check the nmcli manual page.<\/p>\n<h3><strong>Restart the Network Using the Ifup &amp; Ifdown Command<\/strong><\/h3>\n<p>This command changes the state of a network interface so that it can send and receive the data either successfully or unsuccessfully. Every Linux user should be\u00a0familiar with this\u00a0command of networking. Use ifdown to disable all the network interfaces. And use the ifup to enable them all again.<\/p>\n<p>Combining these two commands would be a good practice:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"23\" class=\"wp-image-18860\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-7.png 602w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-7-300x11.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>Even if the network symbol in your system tray won&#8217;t disappear with this method, you won&#8217;t be able to connect to anything.<\/p>\n<h3><strong>Restart the Network Using the Nmtui Command<\/strong><\/h3>\n<p>System administrators frequently use this alternative method. \u00a0A text menu is launched that you can access from your terminal to manage the networks.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"24\" class=\"wp-image-18861\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-8.png 384w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-8-300x19.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p>The previous command\u00a0should display the following menu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"243\" height=\"238\" class=\"wp-image-18863\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-9.png\" \/><\/p>\n<p>The up arrow key\u00a0and down arrow key\u00a0in nmtui can be used to move on different options. To\u00a0select the options, the \u201center\u201d button can be used.<\/p>\n<p>Select &#8220;Activate a connection&#8221; option:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"449\" height=\"306\" class=\"wp-image-18866\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-10.png 449w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-10-300x204.png 300w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/p>\n<p>From the options, select the network that is marked with a star (*). It is MGEO72,\u00a0in our case. Hit the Enter key. This should terminate the\u00a0connection.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"411\" height=\"232\" class=\"wp-image-18868\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-11.png 411w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-11-300x169.png 300w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/p>\n<p>Now, select\u00a0the\u00a0network\u00a0connection that we\u00a0want\u00a0to\u00a0activate:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"423\" height=\"270\" class=\"wp-image-18869\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-12.png 423w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-12-300x191.png 300w\" sizes=\"auto, (max-width: 423px) 100vw, 423px\" \/><\/p>\n<p>Hit the Enter key. The selected connection should reactivate as a result.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"459\" height=\"266\" class=\"wp-image-18870\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-13.png 459w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-13-300x174.png 300w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/p>\n<p>Tab the key twice to\u00a0select back:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"425\" height=\"393\" class=\"wp-image-18871\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-14.png 425w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-14-300x277.png 300w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/p>\n<p>Press\u00a0the enter\u00a0key. You ought to return to the\u00a0main menu of the nmtui\u00a0after doing this.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"253\" height=\"260\" class=\"wp-image-18873\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-15.png\" \/><\/p>\n<p>Select\u00a0\u201c<strong>Quit\u201d <\/strong>from the options:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"256\" height=\"268\" class=\"wp-image-18874\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-16.png\" \/><\/p>\n<p>This should close the application and return you to the\u00a0terminal. All done! Your network is successfully rebooted.<\/p>\n<h2 id=\"2\"><strong>Method #2: Restarting the Network Using the Ubuntu GUI<\/strong><\/h2>\n<p>Of course, for Ubuntu desktop users, this is the simplest method to restart the network. The perilously discussed\u00a0command line methods\u00a0can be used\u00a0if this one doesn&#8217;t work.<\/p>\n<p>First, look at your top panel. The system tray should contain a network icon (in our case, a wired connection icon, as that is what we use). From the screen&#8217;s upper right corner, click or tap\u00a0on the network icon. The &#8220;Wired Connected&#8221; option is displayed in a pop-up menu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"354\" height=\"357\" class=\"wp-image-18875\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-17.png 354w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-17-297x300.png 297w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-17-150x150.png 150w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/p>\n<p>When you select this option, a &#8220;Turn Off&#8221; option also shows up. It can be pressed to disconnect the network connection:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"341\" height=\"293\" class=\"wp-image-18876\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-18.png 341w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-18-300x258.png 300w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/p>\n<p>To restart the network, select the &#8220;Connect&#8221; option:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"341\" height=\"302\" class=\"wp-image-18877\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-19.png 341w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/10\/word-image-18821-19-300x266.png 300w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/p>\n<p>It restarts the network again.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In this tutorial, we learned that whenever a problem occurs in the networks, it can be resolved by restarting the network. We divided this tutorial into two sections. In the first section, we explained how you can restart the network in Ubuntu 22.04 using the command line. In the command line method, we used the multiple commands like systemctl, nmcli, NetworkManager restart, ifup &amp; ifdown, and nmtui. In the second section of this post, we explained how the network can be rebooted using the GUI method in Ubuntu 22.04.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Practical guide on how to restart the network in Ubuntu 22.04 using the command line and how the network can be rebooted using the GUI method in Ubuntu 22.04.<\/p>","protected":false},"author":105,"featured_media":18880,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-18821","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=18821"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18821\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/18880"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=18821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=18821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=18821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}