Hello comrades, Sorry for long introduction, but I tried to explain what is my confusion. I have to buy VPS hosting to run my java/scala website. I found VPS hosting provider where I am going to buy hosting, but they are clear unmanaged VPS hosting providers. I don't have so much money to buy managed VPS hosting. I read this tutorial http://www.howtoforge.com/perfect-server-ubuntu-11.10-with-nginx-ispconfig-3 Code (markup): , and on the third page I found this: Because the Ubuntu installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit /etc/network/interfaces and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100): # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 Code (markup): On this website http://2bits.com/articles/installing-a-dedicated-server-or-a-vps-with-ubuntu-server-804-lts-hardy-heron-drupal-6x.html Code (markup): I found: Configuring a Static IP address Note: If you are on a VPS, skip this section. In fact, you can lose access to your server inadverently if you make a mistake here. Code (markup): On the internet I read that some guys had problem when they changed dhcp to static IP address and that they lost connection with their VPS hosting server My question is: When I buy VPS hosting and get static IP address from hosting privider, do I have to follow the settings mentioned above and to change dhcp to static IP address which I will get from the hosting provider, or I have to keep default settings???? # The primary network interfaceauto eth0 iface eth0 inet dhcp Code (markup):
When you buy a VPS, you will have a static IP. Even if you see dhcp on the networking file setting, your IP won't be changed. For this purpose, you can keep the default setting.
Hello, When you will buy a VPS from hosting provider you will get Static IP configured on the server . You dont have to change any settings such as DHCP because VPS wont work with DHCP configured .