Skip to content

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).

  1. Log in to your compute as root.

  2. Open the network configuration file with your preferred text editor:

    nano /etc/sysconfig/network-scripts/ifcfg-eth0
  3. The file will contain fields similar to:

    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=none
    IPADDR=198.252.100.63
    NETMASK=255.255.255.128
    GATEWAY=198.252.100.126
    DNS1=8.8.8.8
    DNS2=8.8.4.4
    TYPE=Ethernet
  4. Replace the IPADDR, NETMASK, GATEWAY, and other fields with the new IP information provided in your support ticket.

  5. Save the file and close the editor.

  6. Reboot your compute by running systemctl reboot or using the power controls in your cloud control panel.

  1. Log in to your compute as root.

  2. Open the network configuration file:

    nano /etc/netplan/50-cloud-init.yaml
  3. The file will contain fields similar to:

    network:
    ethernets:
    ens3:
    addresses:
    - 172.96.184.115/25
    gateway4: 172.96.184.126
    nameservers:
    addresses:
    - 8.8.8.8
    - 8.8.4.4
    version: 2
  4. Replace the IP address and gateway with the new values provided in your support ticket.

  5. Save the file and close the editor.

  6. Reboot your compute by running systemctl reboot or using the power controls in your cloud control panel.