Use an Existing Public IP
This guide explains how to reuse an existing Public IP address when creating a resource in CloudRaya.
This applies when you already own a Public IP and want to attach it to a new resource instead of acquiring a new one.
When Can You Use an Existing Public IP?
You can reuse a Public IP when:
- The IP already exists in your Public IP list
- The IP is:
- Not attached to any resource, or
- Detached after a VM or resource was deleted
- The IP belongs to the same project and region
Supported Resources
You can reuse an existing Public IP when creating:
- Virtual Machines
- Load Balancers
Public IPs for the following services are assigned automatically and cannot be selected manually:
- Kubernetes
- VPC Routers
Reusing a Public IP with an Existing Virtual Machine
A Public IP can only be attached to a Private IP that does not already have one.
- If the VM already has a Private IP with no Public IP attached (for example, a VM created with a Without IP package), you can attach an unused Public IP to it directly
- If the VM's existing Private IP already has a Public IP attached, click Acquire New Private IP first, then attach the unused Public IP to that new Private IP
Steps:
- Open VM Detail → Network
- Under Unused Public IP, find the IP you want to reuse
- Click Attach
- Select the target Private IP
- Click Attach to confirm
An unused Public IP, whether it came from a deleted VM, a deleted Load Balancer rule, or was acquired but not yet attached, continues to be billed per hour regardless of attachment state.
📄 See: Acquire a Public IP
After attaching, you may need to manually configure the new IP address inside the VM's operating system before it becomes reachable.
Important Notes
- A Public IP can only be attached to one resource at a time
- An IP must be detached before it can be reused
- Unused Public IPs still count toward your quota
- Public IPs cannot be moved across regions
Common Use Cases
Reusing an existing Public IP is useful when:
- Preserving a DNS record
- Migrating workloads
- Replacing a VM without changing IP
- Switching traffic to a new Load Balancer
- Avoiding Public IP quota exhaustion