To change the IP address in CentOS you need to edit 2 files, start to correct your address information in 2 files
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0 sudo nano /etc/sysconfig/network
When these two files are modified correctly for your network, you must restart the network servicesen.
service network restart
Maybe you are more into the GUI interface in the terminal, it can also be used by using this command.
system-config-network-tui