Skip to main content

Associate a public IP with a VM or a network interface

You can associate a public IP with a VM (Virtual Machine) or with a network interface in a VPC (Virtual Private Cloud).

The public IP will be bound to a NIC (Network Interface Card) of the VM (the default NIC if none is specified in the binding request).

You can also associate a public IP with a nat gateway. However, this action is only possible when creating the nat gateway.

Permissions

info

This action requires the following IAM (Identity and Access Management) permissions:

  • compute.publicIp.update
From the left-hand side menu, click Network → Public IPs.

From the console, you can associate a public IP with a VM or with a NIC.

Associate a public IP with a VM

  1. From the left-hand side menu, click NetworkPublic IP.

  2. Identify the public IP you want to associate, then from the list of actions, click Associate with the VM.

    A new "Association with a VM" dialog box appears.

  3. In the list, select the VM you want to associate.

  4. Click Associate with the VM. The public IP is associated with the VM.

    A "The Public IP has been successfully associated with the VM" confirmation message appears.

Cette page vous a-t-elle été utile ?