Skip to main content

Network Configuration of the VM

This tutorial guides you through connecting a virtual machine to a VPC network and assigning it a static (private) IP address, as well as a public IP address if required.

Prerequisites

  • Have a VPC and a private network created.
  • Have a VM deployed (Open Source IaaS or VMware).

1. Assigning a Static Private IP Address

You can set the private IP address of your VM in two ways.

This method allows you to configure the network and IP in a single step during interface creation.

  1. Access the detailed view of your virtual machine.
  2. Go to the Network Adapters tab.
  3. Click the Add Network Adapter button to add an interface.
  1. In the modal, select your VPC network.
  1. Once the network is selected, choose one of the available static IPs.
  1. Confirm the creation.

Note: You can edit the network adapter later to switch networks if needed.

Method B: From the Private Networks View

This method is useful for reserving an IP address before creating a VM or for modifying an existing association.

  1. Go to the detailed view of your VPC, tab Private Networks.
  2. Expand the IP address pool of the relevant network.
  3. Click the "Associate with MAC address" action for an available IP.
  4. In the modal, associate one of the static IPs with a VM's MAC address.

2. Associating a Public IP (Optional)

If you want to make your VM accessible from the internet.

  1. From the detailed view of your VPC, go to the Public IPs tab.
  1. Click the Associate a public IP button.

  2. In the modal, select the target private network and static IP, then confirm the association.

  1. Once the association is complete, you can use this public IP address to access your VM.

Guest OS Configuration

Important: To ensure the static (private) IP address is correctly assigned, make sure the network interface of your guest operating system (OS) is set to DHCP mode. The VPC's DHCP service will handle assigning the reserved address.