LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 04:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 02:30 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
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, 02:33 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

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

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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, 12: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 05:38 AM.
 
Old 06-26-2013, 09:28 AM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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



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 06:40 PM
how to do dhcpd to give a certain ip address based on mac address robertjinx Linux - Server 11 11-27-2010 05:57 AM
unexpected reboot - linux server - centos 5.1 - cPanel / WHM GiotisSL Linux - Server 1 03-28-2008 05:42 PM
CENTOS 3.9 Server can see localhost and DNS Name but not IP Address derekolive Linux - Newbie 4 02-14-2008 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:00 PM.

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
Open Source Consulting | Domain Registration