- The routed IP feature is incompatible with legacy Instance types using the bootscript feature.
- Ensure no static network configuration is in use for your public network interface (usually
ens2
oreth0
) - Ensure that you are not using the internal private IP of the Instance for internal communications. Instead, attach your Instances to a VPC.
- You must update the
scaleway-ecosystem
andcloud-init
packages before starting transition.
How to move an Instance to routed flexible IPs
During deployment, each Instance gets a NAT IP from its hosting node, besides its public IP, which is routed to the Instance through a carrier-grade NAT solution. However, if the underlying hypervisor changes, the NAT IP changes. This can happen when you restart your Instance. The NAT IP lets Instances communicate via an underlying internal network, without public IPs.
Routing a public IP directly to an Instance bypasses NAT IPs, sending traffic to its routed flexible IP. The benefit is the IP stays consistent even if the Instance is restarted or moved. Routed IPs also let you assign multiple flexible IPv4s and IPv6s to an Instance, as both IPv4 and IPv6 are supported.
Using a routed flexible IP is recommended for all compatible Instance types, as it allows precise control over network configurations. It simplifies troubleshooting, ensures compatibility with more applications, and allows for enhanced security monitoring.
Before you start
To complete the actions presented below, you must have:
Updating the required packages
To ensure optimal compatibility and security, especially when working with flexible IPs, we recommend to upgrade your Instance to OS versions that have not reached their end of life.
Before proceeding with the migration, consider the following guidelines regarding scaleway-ecosystem
and cloud-init
:
scaleway-ecosystem
andcloud-init
: These packages are not strictly required for routed IPs. However, if they are installed, it is recommended to update them to the latest version.- Package availability on older Instances:
scaleway-ecosystem
: Older Instances may not have this package installed. In such cases, no action is required.cloud-init
: This package is commonly pre-installed on Instances due to its inclusion in upstream cloud images. For older Instances, a legacy version ofcloud-init
may not impact IPv4 functionality, but IPv6 functionality could be inconsistent with outdated versions.
To check if scaleway-ecosystem
and cloud-init
are installed and to update them if needed, log into your Instance using SSH and run the following commands:
-
For Ubuntu and Debian Instances:
dpkg-query -W scaleway-ecosystem || echo "scaleway-ecosystem is not installed"apt upgrade scaleway-ecosystem cloud-init -y -
For CentOS and Fedora Instances:
rpm -q scaleway-ecosystem || echo "scaleway-ecosystem is not installed"dnf update scaleway-ecosystem cloud-init -y
If scaleway-ecosystem
is not installed, no additional steps are needed for this package. However, it is still recommended to ensure that cloud-init
is up-to-date to support IPv6 functionality.
Moving the Instance to routed IPs
- Select Instances from the Compute category in the sidebar menu. This will show a list of your Instances. Those eligible to transition to routed IPs are identified with an exclamation mark icon.
- Click Move IP next to the Instance you wish to move to routed flexible IPs. A pop-up displays.
Tip
Alternatively, you can initiate the transition from your Instance’s overview page by clicking the Move IP button.
- Type MIGRATE to confirm your intent and click Move to routed IP. This will initiate the transition process, and your Instance will undergo a reboot.
Note
Post-transition, your Instance will retain its public IP address, but its NAT IP will be removed.
After the transition finishes, the notification icon will no longer be visible in your Instances list.
For detailed guidance on using the routed flexible IP feature via the Scaleway API or CLI tool, refer to our dedicated documentation Routing public IPs to Instances using the Scaleway API.