LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 06-14-2013, 04:37 AM   #1
skchaudhary
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Rep: Reputation: Disabled
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.
 
Old 06-14-2013, 05:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
1 members found this post helpful.
Old 06-14-2013, 03:30 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 12,073

Rep: Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518
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.
 
1 members found this post helpful.
Old 06-14-2013, 03:33 PM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
sudo service network restart
 
1 members found this post helpful.
Old 06-24-2013, 10:07 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,581

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by schneidz View Post
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.
 
1 members found this post helpful.
Old 06-26-2013, 01:03 AM   #6
skchaudhary
LQ Newbie
 
Registered: Mar 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi All ,

Thanks for your replies.

Last edited by skchaudhary; 06-26-2013 at 06:38 AM.
 
Old 06-26-2013, 10:28 AM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,581

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by skchaudhary View Post
Hi All ,

Thanks for your replies.
if it worked, please mark this thread of [SOLVED] thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
send msg to predefined ip address when linux server shutdown or Reboot hk_centos Linux - Newbie 3 08-02-2011 07:40 PM
how to do dhcpd to give a certain ip address based on mac address robertjinx Linux - Server 11 11-27-2010 06:57 AM
unexpected reboot - linux server - centos 5.1 - cPanel / WHM GiotisSL Linux - Server 1 03-28-2008 06:42 PM
CENTOS 3.9 Server can see localhost and DNS Name but not IP Address derekolive Linux - Newbie 4 02-14-2008 12:11 PM


All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration