How do you link a floating ip to an instance

Sometimes it’s desirable to use a floating ip. The advantage of using a floating ip is that you can still use it after removing an instance and re-link it to another instance. This is useful when using services, such as a webserver or e-mail server where you don’t want to lose your public IP.

In order to set up a floating ip successfully, please follow the steps below. At the bottom of this webpage you will also find a video with instructions.

prequires

  • It is not possible to link multiple floating ip addresses to 1 instance.

  • In the menu under the tab "Network" and subtab "Networking" you must ensure that you’ve created a private network. You can use the internal ip series 192.168.0.0/16, 172.16.0.0/12 or 10.0.0.0/8.

The set-up of an instance

You can skip this step if you’ve already created an instance with a network interface linked to a private network and serves as an example.

  • Click in the menu on "Compute" and then on "Instances"

  • Click in the main screen on "LAUNCH INSTANCE"

  • Enter a name for your Instance

  • Select a source from the image list

  • Select a desired Flavor

  • Select ‘private network’ at networks

  • Select a matching firewall at ‘Security Groups’

  • Click on "LAUNCH INSTANCE"

The installation of a floating ip

  • Click in the menu on "Network" and then on "Floating IPs"

  • Click on "ALLOCATE IP TO PROJECT" in the main screen and then on "ALLOCATE IP"

  • In the main screen you’ll now see a floating IP assigned. Click on the floating IP on "ASSOCIATE"

  • Select at "Port to be associated", the port of the instance which need to be linked to the floating ip

  • Your floating ip is now linked to your instance. This is immediately active and usable

You are now able to test the floating ip by pinging it from a remote host. It is also possible to check your outgoing traffic by sending a ping externally.

 

 

 

Helpcenter

General FAQ

Show all FAQs

OpenStack FAQ

Show all FAQs

Knowledgebase

Show all FAQs