{"id":341,"date":"2018-10-17T09:32:24","date_gmt":"2018-10-17T09:32:24","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/restart-networking-command-in-ubuntu\/"},"modified":"2018-10-17T09:32:24","modified_gmt":"2018-10-17T09:32:24","slug":"restart-networking-command-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/restart-networking-command-in-ubuntu\/","title":{"rendered":"Restart Networking Command in Ubuntu"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" alt=\"how to restart networking in ubuntu\" height=\"341\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/10\/how-to-restart-networking-in-ubuntu.png\" width=\"713\" \/><\/p>\n<p>How often do you restart your network services? Sometimes you might need to troubleshoot your network connection in case you have made changes to your network or simply cannot access the internet. In this article, we&#8217;ll focus on how you can restart networking service on Ubuntu 18.04 and older versions.<\/p>\n<h2>1) Using Graphic User interface<\/h2>\n<p>One of the ways you can restart networking on Ubuntu 18.04 is by using GNOME&#8217;s GUI interface. Navigate at the top right corner of your screen and click on the network icon as shown to reveal the pull-down menu. You&#8217;ll be able to locate and view your network connection type. In this case, I&#8217;m using a wired connection. You could be using a wireless connection for your case.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"restart networking service on Ubuntu\" height=\"344\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/09\/network-interface1.jpg\" width=\"373\" \/><\/p>\n<p>Click on the network interface and click on &#8216;Turn off&#8217; option to turn off the networking service.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"restart networking service on Ubuntu\" height=\"344\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/09\/Turn-Off.jpg\" width=\"373\" \/><\/p>\n<p>To turn on the networking service, head out to the top right corner and click on the arrow down icon. Be sure to locate your network interface that is turned off as illustrated below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"restart networking service on Ubuntu\" height=\"344\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/09\/Wired-Off.jpg\" width=\"373\" \/><\/p>\n<p>Click on the interface to expand the options and thereafter, click on &#8216;Connect&#8217;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"restart networking service on ubuntu \" height=\"344\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2018\/09\/Connect.jpg\" width=\"373\" \/><\/p>\n<p>This will bring up the interface and resume network services as normal \ud83d\ude42<\/p>\n<h2>2) Using the Command line<\/h2>\n<p>For the command line geeks, a couple of options are available to you to achieve the same result. We&#8217;ll discuss a few commands that you can use to restart networking service on Ubuntu 18.04.<\/p>\n<h3>Netplan<\/h3>\n<p>Netplan is a command line tool used for easily configuring networking service on Linux systems. To restart the networking service run the command below<\/p>\n<p>$ sudo netplan apply<\/p>\n<h3>Systemctl<\/h3>\n<p>Since Ubuntu 18.04 is based on systemd init , you can also use systemctl as shown<\/p>\n<p>$ sudo systemctl restart networkManager.service<\/p>\n<h3>Service<\/h3>\n<p>In addition, you can also use the service command to achieve the same result as shown.<\/p>\n<p>$ sudo service network-manager restart<\/p>\n<h3>Nmcli<\/h3>\n<p>nmcli is yet another command line tool that&#8217;s easy to use and saves you time when managing network interfaces. To restart networking service, run the following commands in succession.<\/p>\n<p>$ sudo nmcli networking off&#xD;<br \/>\n$ sudo nmcli networking on&#xD;<\/p>\n<h3>Ifup\/ifdown<\/h3>\n<p>Finally, we have the ifup\/ifdown commands which can be used as follows<\/p>\n<p>$ sudo ifdown -a&#xD;<br \/>\n$ sudo ifup -a&#xD;<\/p>\n<h2>For older versions of Ubuntu<\/h2>\n<p>For older versions of Ubuntu (14.04 LTS and earlier ), you can restart networking through the following commands<\/p>\n<p>$ sudo service networking restart<\/p>\n<p>or<\/p>\n<p>$ \/etc\/init.d\/ restart networking<\/p>\n<p>Alternatively, you can stop and start networking service as an alternative to restarting networking service<\/p>\n<p>To stop networking service in older versions of Ubuntu run<\/p>\n<p>$ sudo service networking stop<\/p>\n<p>or<\/p>\n<p>$ sudo \/etc\/init.d\/networking stop<\/p>\n<p>After stopping the service, it&#8217;s time now to start the service.<\/p>\n<h2>start networking service<\/h2>\n<p>To start networking service run<\/p>\n<p>$ sudo service networking start<\/p>\n<p>or<\/p>\n<p>$ sudo \/etc\/init.d\/networking start<\/p>\n<p>It&#8217;s a pretty simple command but how many times you end up issue restarting the network? Feel free to add any comment with your experience and share this article.<\/p>\n<h3>Read Also:<\/h3>\n<ul>\n<li><a href=\"https:\/\/linoxide.com\/linux-how-to\/14-tcpdump-commands-capture-network-traffic-linux\/\" target=\"_blank\">14 tcpdump Commands to Capture Network Traffic in Linux<\/a><\/li>\n<li><a href=\"https:\/\/linoxide.com\/linux-command\/systemd-vs-sysvinit-cheatsheet\/\" target=\"_blank\">Colourful ! systemd vs sysVinit Linux Cheatsheet<\/a><\/li>\n<li><a href=\"https:\/\/linoxide.com\/linux-command\/linux-systemd-commands\/\" target=\"_blank\">Awesome! systemd Commands to Manage Linux System<\/a><\/li>\n<\/ul>\n<p> <a href=\"https:\/\/linoxide.com\/linux-how-to\/how-restart-networking-ubuntu\/\" target=\"_blank\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How often do you restart your network services? Sometimes you might need to troubleshoot your network connection in case you have made changes to your network or simply cannot access the internet. In this article, we&#8217;ll focus on how you can restart networking service on Ubuntu 18.04 and older versions. 1) Using Graphic User interface &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/restart-networking-command-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Restart Networking Command in Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":0,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/341\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}