Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    263

    How can change primary ip in centos

    Hello,

    How can change server primary address in centos?

  2. #2
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    14,135
    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
    with
    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
    There may be more depending on how your ftp settings are setup, but those are the basics. Make SuRE you don't need to change the gateway as well. If you do, get the proper gateway from your DC.

    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

  3. #3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •