Skip to main content

Assigning a Public IP to an Instance

Assigning an OpenStack instance a public IP address is a simple procedure. You first need to navigate to the Instances page at:

Dashboard -> Compute -> Instances

Then, you need to do the following:

  1. Click on the down-arrow in the Actions column of the instance that will acquire the IP.
  2. Click on Associate Floating IP

The public IP can be selected via the next dialog box by performing the following:

  1. Click on the down arrow.
  2. Click on the Associate button.

Once the 'associate' button is clicked, the public IP will be routed to the server.

An easy way to test this is to try and SSH into the instance, typically a Windows user would use 'Putty' to achieve this, *nix users should use the following:

ssh -i cloud.key <username>@<instance_ip>

It should be noted that this IP address will not be visible in the instance's operating system, but ingress traffic destined for that IP will be routed to the instance's private IP via NAT. Equally egress traffic will be seen as originating from that floating IP address.

Last updated 19 July 2016, 13:29 GMT