How to change server main or primary IP address?

by Stephen on August 28, 2008

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.

{ 2 comments… read them below or add one }

Alaa Hasan January 12, 2010 at 9:12 am

Dear Sir
i have network in my internet cafe some games does’t work because somebody banned from server in the game
how can i change the maip ip address i tried to change ip address from pc and i did it bur the problem doesn’t solve please help meeeeeee
i have one server and 10 pcs
it’s lan with router and switch
pleaseeeeeeeeeeee

Reply

Stephen January 12, 2010 at 9:49 am

Hi Alaa,

If you changed the server IP but that didn’t help them maybe the problem is something else, maybe not IP related…

Or maybe your router IP got blocked as well.

Reply

Leave a Comment

Previous post:

Next post: