How to change server main or primary IP address?

Posted on the August 28th, 2008 under Server Admin Tips by Stephen

To change the main or primary server IP in CentOS => as root => edit the IP information in the following files and reboot server:

/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/hosts

If you have any question, please drop me a note and I will help.


Share this page:
  • Facebook
  • Twitter
  • StumbleUpon
  • Slashdot
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Live
  • MySpace
  • Technorati
  • LinkedIn
  • Reddit
Related Posts:
  1. How to change server date via ssh shell?
  2. How do I reset a forgotten server root password under Linux?

2 Responses to 'How to change server main or primary IP address?'

  1. January 12, 2010 at 9:12 am
    Alaa Hasan
  2. January 12, 2010 at 9:49 am
    Stephen

Leave a Comment