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:
- How To Configure Static IP Address On CentOS
- How To Display All Cron Jobs On Linux
- How to install IPTables on RedHat / Centos Linux
- How To Install Lighttpd And PHP (PHP-FPM) On CentOS 6
- How Do I Configure Apache Server To Listen Multiple Ports ?
- Linux Shutdown Command
- How To Check BIOS Information In Linux
- How To Find Hard Drive Specifications
- How To Flush/Remove All Iptables Rules In Linux
- Setting Up Password Aging In Linux
{ 1 comment… read it below or add one }
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.