DHCP vs Static assignment on your VPS

By default, the initial configuration of your VPS is set to DHCP so the VPS can come online without having to log into the console and manually configure your IP information. We recommend this be changed it once the server is up and running and the IP you were given (static IP) is added to the server. This is because occasionally the VPS node fails to properly receive a DHCPACK from the host DHCP server and the IP lease expires causing connectivity issues.

On RedHat/CentOS/RHEL, perform the following:

  1. Edit the default ethernet configuration file:
    vi /etc/sysconfig/network-scripts/ifcfg-eth0
  2. Replace the BOOTPROTO=dhcp line with BOOTPROTO=static.
  3. Add the following lines to the end of the file, replacing the x's with your IP address, network mask, and default gateway, respectively. These can be found in your VPS Manager under Network Information:
    IPADDR=x.x.x.x
    NETMASK=x.x.x.x
    GATEWAY=x.x.x.x
  4. Save and quit the file (type :wq). Restart the network interface with:
    /etc/init.d/network restart

For Debian/Ubuntu:

  1. Edit the default ethernet configuration file:
    vi /etc/network/interfaces
  2. Replace the address, netmask, and gateway lines with the information provided in Network Information of your VPS Manager:
    /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
    # The loopback interfaceauto loiface lo inet loopback
    # The first network card - this entry was created during the Debian installation
    # (network, broadcast and gateway are optional)
    auto eth0
    iface eth0 
    inet static
    address x.x.x.x
    netmask x.x.x.x
    gateway x.x.x.x

If you are uncomfortable with doing this yourself, we would be happy to do so for you. Please email or call our support staff and they will make the necessary changes.