Follow the below steps to change your IP in the hosting server Linux?
Login to your server and switch to the root user
Open the network configuration file & update it accordingly.
#root: vi /etc/sysconfig/network-scripts/ifcfg-eth0 Press I( for insert ) and change the file once updated; press ESC & save the setting
w). also, you have to change the hostname and the machine's default gateway. For this, you have to edit one more file
#root: vi /etc/sysconfig/network; modify the configuration by utilizing the "i" to change your new hostname & gateway information.
After completion, hit ESC and save the setting using
w ) Reboot machine using:
#root: reboot or restart network by
#root: service network restart.
You can now see the new IP address and the hostname you had assigned.