For some purpose, you might want to change the Network IP from your CentOS server such as switching the data center, etc.
To done this, just simply check your main network interface with typing ifconfig from the server.Then get the network interface name.
Next, edit the file from
You shall see the following setting.
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
Change the IPADDR to the new server IP.
Note: You might need to change the Broadcast, Netmask, Network or Gateway with the need.