NavigationContentFooter
Jump toSuggest an edit

How to use flexible IP addresses with Instances

Reviewed on 26 August 2024Published on 26 May 2021

This page provides guidance on using flexible IP addresses with your Scaleway Instances.

When creating an Instance, you have options for network connectivity:

  • Flexible Routed IP addresses: These are public IP addresses routed directly to your Instance. Recommended.
  • Flexible NAT IP addresses (Legacy): Comprising a public IP address (also a flexible IP address) and a private IP address routed to your Instance via a CG-NAT.

Flexible IP addresses can be managed independently of any Instance. You can attach and detach them from any of your Instances and maintain multiple flexible IP addresses in your account simultaneously. They facilitate live migration of IP addresses between your Instances.

You can assign up to five (5) flexible routed IP addresses to each Instance or one set of flexible NAT IP addresses.

Tip

Instances using routed public IPv4 addresses can also use flexible IPv6 addresses.

Before you start

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • An Instance
Note

Flexible IPs are associated with a particular product and cannot be moved to a different product category. For example, a flexible IP for Instances can be moved to another Instance, but it cannot be transferred to other service types like Load Balancers or Elastic Metal servers.

How to detach a flexible IP address from an Instance

Detaching your Instance’s flexible (public) IP address cuts any ongoing public connection to the Instance. This feature gives you a lot of control if, for example, you want to put your Instances into a Private Network so that they can communicate between themselves without being exposed to the internet. This is particularly useful for Instances hosting databases, backups, or sensitive content. It also allows you to optimize your costs and fight the global IPv4 shortage.

  1. Click Instances in the Compute section of the side menu. The Instances page displays.
  2. Click the Instance whose IP address you want to detach. The Overview page for that Instance displays.
  3. Click Detach next to Public IP.
  4. Click Detach IP on the pop-up that asks you to confirm the action.
    Tip

    You can also detach a flexible IP by following step 1 above, then clicking on the Flexible IPs tab. From here, click «See more Icon» next to said Instance, and click Detach flexible IP from Instance.

How to create a new flexible IP address

  1. Click Instances in the Compute section of the side menu. The Instances page displays.

  2. Navigate to the Flexible IPs tab.

  3. Click Create flexible IP. The flexible IP creation wizard displays.

  4. Complete the following information in the wizard:

    • Choose an Availability Zone, which is the geographical region where your flexible IP will be created.
    • Optionally, select the Instance to which you want to attach this new flexible IP. You can only choose from Instances that do not already have a flexible IP attached to them.
    • Check the Estimated cost for the flexible IP.
  5. Click Create flexible IP to finish.

    You are taken to the list of your flexible IPs, where the new flexible IP address you just created now appears.

How to attach an existing flexible IP address to an Instance

  1. Click Instances in the Compute section of the side menu. The Instances page displays.
  2. Navigate to the Flexible IPs tab.
  3. Click «See more Icon» next to the flexible IP that you want to attach to an Instance. In the drop-down menu that opens, click Switch Instance.
    Note

    This option will only be clickable if you have existing Instances with no flexible IPs attached to them.

  4. Confirm the Instance that you want to attach to this flexible IP in the pop-up window, and click Attach flexible IP to Instance.

How to delete a flexible IP address

When you no longer want one of your existing flexible IP addresses, you can delete it from your account, which releases it to be used by other users.

  1. Click Instances in the Compute section of the side menu. The Instances page displays.

  2. Navigate to the Flexible IPs tab.

  3. Click «See more Icon» next to the flexible IP that you want to delete. In the drop-down menu which opens, click Delete.

  4. Confirm that you want to delete the flexible IP in the pop-up window which opens, by clicking Delete flexible IP.

    The flexible IP is deleted. If it was attached to an Instance, that Instance now has no public IP address.

See also
How to connect to an InstanceHow to move an Instance to routed flexible IPs
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2024 – Scaleway