How To Restart Networking Service In Linux

by lifeLinux on September 16, 2011

How to start/stop/restart networking service under Linux operating systems after making changes to IP configuration from a shell prompt ?

Use the following commands as per your Linux distribution to start/stop/restart the networking service.

RedHat / CentOS / Fedora

To start networking service, enter

# /etc/init.d/network start

Or,

# service network start

To stop networking service, enter

# /etc/init.d/network stop

Or,

# service network stop

To restart networking service, enter

# /etc/init.d/network restart

Or,

# service network restart

Ubuntu / Debian

To start networking service, enter

# sudo /etc/init.d/networking start

Or,

# sudo service networking start

To stop networking service, enter

# sudo /etc/init.d/networking stop

Or,

# sudo service networking stop

To restart networking service, enter

# sudo /etc/init.d/networking restart

Or,

# service networking restart

Related Posts:

{ 1 comment… read it below or add one }

David Staskiewicz November 10, 2011 at 12:45 pm

The stop and start for RedHat could cause issues if you are attempting to make the changes while connected to the server via SSH. I have found the following sequence of commands to work when connected remotely.

at now
service network restart
ctrl-d

Wait a few minutes and if the changes were correct you should be all set.

Reply

Previous post:

Next post: