Fli
10-19-2019, 05:52 PM
The Hetzner cloud IP is assigned instantly and i as able to assign the floating IP to the server itself or leave it for virtual servers (if one decide to setup virtualization like KVM, OpenVZ (https://internetlifeforum.com/virtualisation/2607-script-install-openvz-hypervm-epel-vzdump-centos/)).
If want to assign to server itself, then i ran following (after modifying FLOATINGIPHERE in following command) on CentOS 6:
echo -e "BOOTPROTO=static\nDEVICE=eth0:1\nIPADDR=FLOATINGIP HERE\nPREFIX=32\nTYPE=Ethernet\nUSERCTL=no\nONBOOT =yes" > "/etc/sysconfig/network-scripts/ifcfg-eth0:1"
service network restart
Debian, Ubuntu.. tutorial is on Hetzner site: https://wiki.hetzner.de/index.php/Cloud_floating_IP_persistent/en
If want to assign to server itself, then i ran following (after modifying FLOATINGIPHERE in following command) on CentOS 6:
echo -e "BOOTPROTO=static\nDEVICE=eth0:1\nIPADDR=FLOATINGIP HERE\nPREFIX=32\nTYPE=Ethernet\nUSERCTL=no\nONBOOT =yes" > "/etc/sysconfig/network-scripts/ifcfg-eth0:1"
service network restart
Debian, Ubuntu.. tutorial is on Hetzner site: https://wiki.hetzner.de/index.php/Cloud_floating_IP_persistent/en