Skip to main content

Public IP

Overview

A public IP is a static IP that lets the internet reach a VM directly. Use it for SSH access, exposing a web server, and so on.

Public IPs are billed from the moment they are allocated

You're billed as long as the IP is allocated, even when it isn't attached to a VM. Delete public IPs you aren't using.


Creating a public IP

  1. Under Network > Public IPs, click Create Public IP.

  2. Configure the following:

    FieldDescription
    Public IP nameAn identifying name
    ZoneThe zone the public IP will be allocated in (pick the same zone as the VM)
    DDoS protectionAllocate from the DDoS-protected IP pool; higher rate when enabled
    Disaster recoveryProvision a secondary IP in another zone for automatic NAT failover during a zone outage
  3. Click Create.

DDoS / DR options depend on the IP pool

DDoS protection and DR determine which pool the IP is taken from. If a zone has no pool that supports the option, you can see an availability error like noAvailableDrIp.


Attaching to a VM

A public IP attaches to a network interface (NI) rather than the VM itself. You can create the NI together with the VM at the network step, or pick an existing NI, and attach the public IP to that NI.

Option 1: At VM creation time

In the network step of the VM creation wizard, pick the public IP you've created in the public IP field.

Option 2: Attach after creation

  1. Pick the target IP in Network > Public IPs.
  2. Click Edit and pick the VM's NI in Attached network interface.
  3. Click Save.
DR settings must match the VM and NI

DR public IPs can only attach to DR VMs / NIs, and standard public IPs can only attach to standard VMs / NIs (networkInterfaceDrMismatch).


Releasing a public IP

On the public IP detail page, choose Edit > Detach network interface > Save to break the link to the VM.

To delete the IP itself, detach from the VM first, then click Delete.


Next steps

  • Firewall: configuring inbound traffic rules