How to Assign Public IP to a Public Cloud [New]

How to Assign Public IP to a Public Cloud [New]

1 min read

To make your instance accessible from the internet, you need to assign a Public IP address, IPv4 or IPv6.

Before assigning a Public IP, you must first create and configure the required networking components.

Prerequisites

Before you can assign a Public IP, ensure the following resources exist:

  • A Network
  • A Router
  • A Router Interface connecting the Router to your Subnet
  • An Instance connected to the Network

Configuration Flow

The recommended setup flow is:

  1. Create a Network and Subnet.
  2. Create a Router.
  3. Add a Router Interface by connecting the Router to your Subnet.
  4. Launch an Instance and attach it to the Network.
  5. Allocate and associate a Public IP to the Instance.

Only after the Instance is connected to a Network that has a Router and Router Interface configured can a Public IP be assigned.

Step 1: Create a Network

  1. Navigate to: Public Cloud → Networks.
  2. Create a Network and Subnet that will be used by your instance.
    • When creating a subnet, you can choose either IPv4 or IPv6, depending on your networking requirements.

You are not limited with a single IP version (IPv4 or IPv6) – you can select IPv4 here and add an IPv6 subnet later once the network has been created.

Step 2: Create a Router

  1. Navigate to: Public Cloud → Networks → Routers.
  2. Open the Routers tab and create a new Router.
image 15

Back to the top ↑

Step 3: Add a Router Interface

After creating the Router:

  1. Open the Router details.
  2. Select Add Interface.
  3. Choose the Subnet created in the previous step.
  4. Specify the Router IP address (optionally)
  5. Confirm the configuration.

This allows traffic from your Network to be routed externally.

Step 4: Launch an Instance

  1. Create a new Instance and attach it to the Network created earlier.
  2. The Instance will receive a private IP address from the selected Subnet.

Step 5: Assign a Public IP to a Project

  1. Go to Public IPs from the Public Cloud menu
  2. Click on Allocat IP to Project
  3. Add description (optionally)
  4. Click on Allocate

After completing these steps, the Public IP address will be available and can be assigned to an instance from the instance details page.

image 16

Step 6: Allocate IP Address from the Instance Details Page

  1. Open the Instance details page.
  2. Navigate to the Public IP section.
  3. Select Assign Public IP.
  4. Select IPv4
  5. Confirm the assignment.

Back to the top ↑

Verify Connectivity

After the Public IP is associated, you can access the Instance from the internet using:

  • SSH for Linux instances.
  • RDP for Windows instances.
  • Applications running on exposed ports.

Ensure that the appropriate Security Group rules are configured to allow inbound traffic.

Important Notes

  • Public IPs can only be assigned to Instances connected to a Network with a Router and Router Interface configured.
  • Public IPs can be detached and reassigned to other Instances when needed.
  • Security Groups control which traffic is allowed to reach the Instance.
  • Both IPv4 and IPv6 Public IPs are supported.