{"id":1113,"date":"2020-11-02T09:22:06","date_gmt":"2020-11-02T09:22:06","guid":{"rendered":"https:\/\/linuxways.net\/?p=1113"},"modified":"2020-11-27T22:53:04","modified_gmt":"2020-11-27T22:53:04","slug":"how-to-restart-networking-in-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-restart-networking-in-linux\/","title":{"rendered":"How to restart network services in Linux"},"content":{"rendered":"<p>Sometimes, when you changed the network configuration or due to some network problems, you may need to restart the network services again on your Linux system to solve your problem. In this article, we will talk about how to restart the networking services on in different Linux distributions (Ubuntu, Debian, LinuxMint and CentOS) by using the command line. We have implemented different commands on Ubuntu 20.04 and CentOS 8 system. All commands which we have executed on Ubuntu 20.04 can be also used for Debian and LinuxMint distributions.<\/p>\n<h2><strong>Get network Service Status<\/strong><\/h2>\n<p>You can get the network services running status by using the following command:<\/p>\n<h3><strong>For latest (Ubuntu\/Debian\/Mint)&nbsp;<\/strong><\/h3>\n<p>To check the networking services are running on your system or not, by using the following \u2018systemctl\u2019 command you can view the networking service status on your Ubuntu\/Debian\/Mint system:<\/p>\n<pre>$ sudo systemctl status networking<\/pre>\n<p>Or<\/p>\n<pre>$ sudo systemctl status networking.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"240\" class=\"wp-image-1114\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-16.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-16-300x98.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<p>You can also display the networking service status by using the service command which is given as follows:<\/p>\n<pre>$ sudo service networking status<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"214\" class=\"wp-image-1115\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-17.png 785w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-17-300x82.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-17-768x209.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/p>\n<p>Or<\/p>\n<pre>$ \/etc\/init.d\/networking status<\/pre>\n<h3><strong>For CentOS 8 \/ Fedora<\/strong><\/h3>\n<p>If you are using CentOS 8 then you can check the network service status by using the following command:<\/p>\n<pre># systemctl status network<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"58\" class=\"wp-image-1116\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-18.png 945w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-18-300x18.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-18-768x47.png 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/p>\n<p>If you received an error like \u2018network.service unit not found\u2019 then, you will run the following command to start the network manager:<\/p>\n<pre># systemctl start NetworkManager<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"37\" class=\"wp-image-1117\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-19.png 1017w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-19-300x11.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-19-768x28.png 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/p>\n<p>Now, start the network services and you can get network status by using the above-mentioned command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1107\" height=\"381\" class=\"wp-image-1118\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-20.png 1107w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-20-300x103.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-20-1024x352.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-20-768x264.png 768w\" sizes=\"auto, (max-width: 1107px) 100vw, 1107px\" \/><\/p>\n<h2><strong>Stop Network Services&nbsp;<\/strong><\/h2>\n<p>You can stop your network services through the method which is mentioned below. But, if you have a remote connection with SSH, we are not recommended you to stop the service because it may create problems.<\/p>\n<h3><strong>For Ubuntu\/Debian\/Mint<\/strong><\/h3>\n<p>You can use the \u2018stop\u2019 option with the above \u2018networking\u2019 command on Ubuntu, Debian, Kali, Mint distributions in order to stop network services.<\/p>\n<pre>$ sudo \/etc\/init.d\/networking stop<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"100\" class=\"wp-image-1119\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-21.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-21-300x41.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p>Or<\/p>\n<pre>$ sudo systemctl stop networking.service<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1120\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-22.png\" alt=\"linux restart network\" width=\"742\" height=\"333\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-22.png 742w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-22-300x135.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/p>\n<h3><strong>For CentOS 8\/Fedora<\/strong><\/h3>\n<p>In CentOS 8, using the following command you can stop network services:<\/p>\n<pre># systemctl stop network<\/pre>\n<p>Now, if you will check the network status you will see that network services are stopped on your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1121\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-23.png\" alt=\"linux restart network\" width=\"1106\" height=\"554\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-23.png 1106w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-23-300x150.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-23-1024x513.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-23-768x385.png 768w\" sizes=\"auto, (max-width: 1106px) 100vw, 1106px\" \/><\/p>\n<h2><strong>Start Network Service<\/strong><\/h2>\n<p>If networking services are stopped on your system then, you start these services on the Linux system.<\/p>\n<h3><strong>For Ubuntu\/Debian\/Mint<\/strong><\/h3>\n<p>You can also start the network services by using the service command. Use \u2018start\u2019 option to start the network service on your Ubuntu. Debian and LinuxMint distributions.<\/p>\n<pre>$ sudo service networking start<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1122\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-24.png\" alt=\"linux restart network\" width=\"739\" height=\"243\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-24.png 739w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-24-300x99.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/p>\n<p>Or<\/p>\n<pre>$ sudo systemctl start networking.service<\/pre>\n<p>Or<\/p>\n<pre>$ $ sudo \/etc\/init.d\/networking start<\/pre>\n<h3><strong>For CentOS 8\/Fedora<\/strong><\/h3>\n<p>In CentOS 8, by using the following command you can start the network service on your system:<\/p>\n<pre><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1094\" height=\"65\" class=\"wp-image-1123\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-25.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-25.png 1094w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-25-300x18.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-25-1024x61.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-25-768x46.png 768w\" sizes=\"auto, (max-width: 1094px) 100vw, 1094px\" \/><\/p>\n<h2><strong>Restart Network Service<\/strong><\/h2>\n<p>You can also restart the network service by using the following command on Linux distributions:<\/p>\n<h3><strong>For Ubuntu\/Debian\/Mint<\/strong><\/h3>\n<p>Type the following command to restart the network service on Ubuntu, Debian, and Linux Mint:<\/p>\n<pre>$ \/etc\/init.d\/networking restart<\/pre>\n<p>Or<\/p>\n<pre>$ sudo systemctl restart networking.service<\/pre>\n<p>Or<\/p>\n<pre>$ sudo systemctl restart networking<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"54\" class=\"wp-image-1124\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-26.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-26.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-26-300x22.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<h3><strong>For CentOS 8\/Fedora<\/strong><\/h3>\n<p>Use the following command to restart the network service on CentOS 8:<\/p>\n<pre># systemctl restart network<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"988\" height=\"62\" class=\"wp-image-1125\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-27.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-27.png 988w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-27-300x19.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-27-768x48.png 768w\" sizes=\"auto, (max-width: 988px) 100vw, 988px\" \/><\/p>\n<p>If you get the following error on the terminal then, you need to start the NetworkManager services on your system by using the following command:<\/p>\n<pre># systemctl start NetworkManager<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"37\" class=\"wp-image-1126\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-28.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-28.png 1017w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-28-300x11.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-28-768x28.png 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/p>\n<p>Now, again restart the network service. You will see the following output on the CentOS system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1127\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-29.png\" alt=\"linux restart network\t\" width=\"1099\" height=\"459\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-29.png 1099w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-29-300x125.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-29-1024x428.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-29-768x321.png 768w\" sizes=\"auto, (max-width: 1099px) 100vw, 1099px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>From the above information, we have explored how to start, stop, and restart the network service on different Linux distribution like Ubuntu, Debian, Linux Mint, and CentOS 8. Moreover, you can troubleshoot the network error through the NetworkManager tool on CentOS 8. If you need more details then, you can implement all command on your system and then let us know about your problems. Please don\u2019t stop services if you have a remote ssh connection that may create a problem.<\/p>","protected":false},"excerpt":{"rendered":"<p>Sometimes, when you changed the network configuration or due to some network problems, you may need to restart the network services again on your Linux system to solve&hellip;<\/p>","protected":false},"author":2,"featured_media":1129,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,2],"tags":[38,60,45,58,59],"class_list":["post-1113","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-ubuntu","tag-centos","tag-debian","tag-linux-mint","tag-linux-2","tag-networking"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1113","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=1113"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1113\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/1129"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}