Changing the primary IP address of a CentOS Server
ssh to the server. You will find… Change this line only to the new IP Note: If you are changing to an IP on a different subnet and need to change your default gateway, this can be configured under /etc/sysconfig/network Save the file and restart