Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Virtual Private Cloud
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Cloud network
      • Creating a cloud network
      • Deleting a cloud network
      • Updating a cloud network
    • Subnet
      • Creating a subnet
      • Deleting a subnet
      • Updating a subnet
    • IP address
      • Reserving a static public IP address
      • Making a dynamic public IP address static
      • Making a static public IP address dynamic
      • Deleting a static public IP address
    • Static routes
      • Creating a static route
      • Enabling NAT to the internet
    • Security groups
      • Create a security group
      • Update a security group and rules
      • Delete a security group
    • DDoS Protection
      • Enable protection from DDoS attacks
  • Use cases
    • Architecture and protection of a basic internet service
  • Concepts
    • Relationship between service resources
    • Cloud networks and subnets
    • Cloud resource addresses
    • Static routes
    • Security groups
    • MTU and MSS
    • DHCP settings
    • Quotas and limits
  • DDoS Protection
  • Cloud Interconnect
  • Access management
  • Pricing policy
    • Current policy
    • Archive
      • Policy before January 1, 2019
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • AddressService
      • NetworkService
      • RouteTableService
      • SecurityGroupService
      • SubnetService
      • OperationService
    • REST
      • Overview
      • Address
        • Overview
        • create
        • delete
        • get
        • getByValue
        • list
        • listOperations
        • update
      • Network
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • listSubnets
        • move
        • update
      • RouteTable
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • move
        • update
      • SecurityGroup
        • Overview
      • Subnet
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • move
        • update
      • Operation
        • Overview
        • get
  • Questions and answers
  1. Getting started

Getting started with VPC

  • Before you start
  • Create a cloud network
  • Create a subnet
  • Reserve a static public IP address
  • Delete a subnet and static public IP address
  • What's next

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.

Note

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, 10.10.0.0/24). 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.

Warning

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.

In this article:
  • Before you start
  • Create a cloud network
  • Create a subnet
  • Reserve a static public IP address
  • Delete a subnet and static public IP address
  • What's next
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC