Changing the IP of your cloud vps
These changes can be made via SSH as your root user, or through the browser VNC console in your cloud.hawkhost.com control panel (accessible from your client area service list).
CentOS and AlmaLinux
Section titled “CentOS and AlmaLinux”-
Log in to your compute as root.
-
Open the network configuration file with your preferred text editor:
nano /etc/sysconfig/network-scripts/ifcfg-eth0 -
The file will contain fields similar to:
DEVICE=eth0ONBOOT=yesBOOTPROTO=noneIPADDR=198.252.100.63NETMASK=255.255.255.128GATEWAY=198.252.100.126DNS1=8.8.8.8DNS2=8.8.4.4TYPE=Ethernet -
Replace the
IPADDR,NETMASK,GATEWAY, and other fields with the new IP information provided in your support ticket. -
Save the file and close the editor.
-
Reboot your compute by running
systemctl rebootor using the power controls in your cloud control panel.
Ubuntu
Section titled “Ubuntu”-
Log in to your compute as root.
-
Open the network configuration file:
nano /etc/netplan/50-cloud-init.yaml -
The file will contain fields similar to:
network:ethernets:ens3:addresses:- 172.96.184.115/25gateway4: 172.96.184.126nameservers:addresses:- 8.8.8.8- 8.8.4.4version: 2 -
Replace the IP address and gateway with the new values provided in your support ticket.
-
Save the file and close the editor.
-
Reboot your compute by running
systemctl rebootor using the power controls in your cloud control panel.