Results 1 to 3 of 3
-
04-29-2008, 01:24 AM #1Web Hosting Guru
- Join Date
- Mar 2008
- Posts
- 263
How can change primary ip in centos
Hello,
How can change server primary address in centos?
-
04-29-2008, 01:49 AM #2
That all depends on how many network cards you haave
Standard configuration:
edit /etc/sysconfig/network-scripts/ifcfg-eth0
replace
Code:IPADDR=old.ip.address.here
Code:IPADDR=new.ip.address.here
Change everything in /var/named from old to new
change everything in httpd.conf (usually /usr/local/apache/conf/httpd.conf or /etc/httpd/conf/httpd.conf) from old to new
change all your LOCAL configurations (ie: your ssh client) from old to new
restart named, httpd,network
Code:service network restart service htttpd restart service named restart
Something like this really should be done by your DC, as they're the ones responsible for ensuring that you keep your IP space and maintaining it for you.Tom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons
-
04-29-2008, 09:44 AM #3Web Hosting Master
- Join Date
- Apr 2003
- Location
- San Jose, CA.
- Posts
- 1,624
An easier way may be to simply run "setup" from the command line
go to Network Configuration and select the device and update the info there...
The rest of the info linux-tech mentions may or may not be important, as those instructions change more then you asked.Daved @ Lightwave Networking, LLC.
AS1426 https:/www.lightwave.net
Primary Bandwidth: EGIHosting (NLayer, NTT, HE, Cogent)
Xen PV VPS Hosting