So you have changed IP address in command line or in GUI on your Linux distribution. Before the change can take place you are required to restart the computer or easy way – restart the network service so the new IP can be activated and in use.
Here is the command line how to do it :
RedHat Linux command to reload or restart network
# service network restart
OR
# /etc/init.d/network restart
To start Linux network service:
# service network start
To stop Linux network service:
# service network stop
Debian Linux command to reload or restart network:
# /etc/init.d/networking restart
To start Linux network service:
# /etc/init.d/networking start
To stop Linux network service:
# /etc/init.d/networking stop
Ubuntu Linux user use sudo command with above Debian Linux command:
# sudo /etc/init.d/networking restart
To start Linux network service:
# sudo /etc/init.d/networking start
To stop Linux network service:
# sudo /etc/init.d/networking stop
You have to be the ROOT user to restart the service