Saturday, June 28, 2008

How to change the Main IP of server.

Inorder to change the primary IP of the server, please make sure that you have more then one IP added on the server.

Please login to ssh using main IP as well as secondary IP of the server (this will required for the backup)

Then from the main IP ssh window,

pico -w /etc/sysconfig/network-scripts/ifcfg-eth0

Change the IP address and Gateway if required.

Once this done, please check file,

pico -w /etc/sysconfig/network

If this file having the IP address of the server, just change that too.

Once these chanegs made give,

service network restart

This will disconnect the current shell, and you will be able to access the server by new IP set.

No comments: