How to Restart Networking on Linux!

Here’s how to restart networking services on your linux webserver.  I find that especially with VPS web servers, there are times where your network gets blocked completely.

To reset, get into SSH via console on your VPS web server company’s control panel.

Type:

service network stop

then

service network start

For some web servers, you might have to use:

/sbin/service network stop

and

/sbin/service network start

Wait like 5 seconds and see if you can ping the outside world:

ping google.com

If you get connected, you should be good to go.

This can save lots of time restarting a faulty network yourself instead of opening a support ticket and waiting forever.

Share

Recommended Linux Commands



This entry was posted in Linux Commands, Web Server Hacks and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Related News and Resources