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 }
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
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.