LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Why need reboot the server when give a new IP Address in Centos 6.3 ? (https://www.linuxquestions.org/questions/linux-desktop-74/why-need-reboot-the-server-when-give-a-new-ip-address-in-centos-6-3-a-4175465967/)

skchaudhary 06-14-2013 03:37 AM

Why need reboot the server when give a new IP Address in Centos 6.3 ?
 
Hi ,

Every time when i change the IP Address of the server , i have to reboot the server otherwise the new IP does not work.Why ?
My OS is Centos 6.3

Thanks & Regards.

acid_kewpie 06-14-2013 04:07 AM

We have no idea HOW you are adding a new address, you've told us nothing useful about this. However, you must be doing something wrong though, as there should never ever be a need to reboot for something like that. Update the entry in the ifcfg-eth0 file and and a "ifdown eth0; ifup eth0" should have it all put into place.

jefro 06-14-2013 02:30 PM

I forget what it is called but most distro's say after you change settings like that you need to restart network manager or services. A reboot would do that but pretty sure it can be done from command line. A RH person ought to know exact command to do that.

schneidz 06-14-2013 02:33 PM

sudo service network restart

lleb 06-24-2013 09:07 PM

Quote:

Originally Posted by schneidz (Post 4971992)
sudo service network restart

no need for sudo, in fact subo is not configured by default in CentOS. this needs to be done as root.

Code:

# service network restart
will do the trick.

skchaudhary 06-26-2013 12:03 AM

Hi All ,

Thanks for your replies.

lleb 06-26-2013 09:28 AM

Quote:

Originally Posted by skchaudhary (Post 4978775)
Hi All ,

Thanks for your replies.

if it worked, please mark this thread of [SOLVED] thank you.


All times are GMT -5. The time now is 12:51 AM.