Getting started with VPC

Create a cloud network and subnet in an empty cloud and reserve a static public IP address for your VM using Virtual Private Cloud. Your cloud resources will be connected to the subnet and the static public IP address will remain reserved even if you stop or delete the VM it was attached to. This address can later be assigned to another VM.


You can automatically create a cloud network and subnets in all availability zones when creating a folder or creating a VM.

Before you start

  1. Log in to or register in the management console. If you aren't registered, go to the management console and follow the instructions.
  2. On the billing page, make sure you linked a billing account and it has the ACTIVE or TRIAL_ACTIVE status. If you don't have a billing account, create one.
  3. If you don't have a folder yet, create one. When creating a folder, you can create a default virtual network with subnets in all availability zones.

Create a cloud network

To create a cloud network:

  1. In the management console, select a folder to create your cloud network in.
  2. In the list of services, select Virtual Private Cloud.
  3. Click Create network.
  4. Enter a network name, like test-network.
  5. Click Create network.

Create a subnet

Create a subnet where cloud resources will be assigned internal IP addresses:

  1. Click on the name of the cloud network created.
  2. Click Add subnet.
  3. Enter a subnet name, like test-subnet-1.
  4. Select an availability zone from the drop-down list. Any zone from the list will be fine for the first subnet.
  5. Enter the subnet CIDR: its IP address and mask (for example, For more information about subnet IP address ranges, see Cloud networks and subnets.
  6. Click Create subnet.

Reserve a static public IP address

Reserve a static public IP address for your VM. You can assign this address to any VM and it won't change when the VM is stopped.


You're charged for the reserved static public IP address even if it's not assigned to any VM. For more information, see Pricing policy for Virtual Private Cloud.

To reserve an IP address:

  1. In the list of services, select Virtual Private Cloud.
  2. Go to IP addresses.
  3. Click Reserve address.
  4. Select the availability zone where you created the subnet in the previous step.
  5. Select DDoS protection if you want to safeguard your cloud resources from DDoS attacks.
  6. In the window that opens, click Reserve.

Delete a subnet and static public IP address

If you no longer need a subnet, delete it.

If the reserved address isn't assigned to any resource, you can delete it.

What's next

Create a new VM, connect it to a subnet, and assign it a reserved public IP address.