Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex BareMetal
  • Getting started
    • All guides
      • Creating a VRF
      • Creating a private subnet
      • Ordering a dedicated public subnet
      • Creating a private connection to cloud networks
    • Overview
      • Overview
      • Server configurations
      • Disk status analysis
      • Additional server settings
      • Overview
      • DHCP
      • MC-LAG
      • Restrictions in BareMetal networks
    • Images
    • Quotas and limits
    • All tutorials
    • Connecting an existing BareMetal server to Cloud Backup
    • Configuring VRRP for a cluster of BareMetal servers
    • Establishing network connectivity in a BareMetal private subnet
    • Establishing network connectivity between BareMetal and Virtual Private Cloud private subnets
    • Establishing network connectivity between a BareMetal private subnet and on-premise resources
    • Delivering USB devices to a BareMetal server or virtual machine
    • Configuring an OPNsense firewall in high availability cluster mode
    • Deploying a web app on BareMetal servers with an L7 load balancer and Smart Web Security protection
    • Connecting a BareMetal server as an external node to a Managed Service for Kubernetes cluster
  • Monitoring metrics
  • Audit Trails events
  • Access management
  • Pricing policy
  • FAQ

In this article:

  • Examples
  • Leasing a new dedicated public subnet
  • Transforming an ephemeral public subnet into a dedicated one
  1. Step-by-step guides
  2. Network
  3. Ordering a dedicated public subnet

Ordering a dedicated public subnet

Written by
Yandex Cloud
Improved by
Danila N.
Updated at July 22, 2025
  • Examples
    • Leasing a new dedicated public subnet
    • Transforming an ephemeral public subnet into a dedicated one

A dedicated public subnet is a public subnet made up of an IP address range that will be available to your servers in the selected pools.

You can lease a new dedicated public subnet or convert an existing ephemeral public subnet to a dedicated one.

Leasing a new dedicated public subnetLeasing a new dedicated public subnet

Management console
CLI
  1. In the management console, select the folder where you want to reserve a dedicated public subnet.

  2. In the list of services, select BareMetal.

  3. In the left-hand panel, select Public addresses and subnets.

  4. At the top right, click Order a public subnet.

  5. In the Availability zone field, select the availability zone where the subnet will be available.

  6. In the Pool field, select the pools where the subnet will be available.

    You can link a dedicated public subnet to multiple pools at once.

  7. Select the size of the subnet you want to order.

    In the management console, you can only order subnets of size /29 (six available IP addresses) and /28 (14 available IP addresses). If you need a larger public subnet, contact support to request it.

  8. Under General information:

    1. In the Name field, enter the name of the public subnet.
    2. (Optional) In the Description field, add a subnet description.
    3. (Optional) In the Labels field, set the labels.
  9. Click Order.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. View the description of the command for leasing a new dedicated public subnet:

    yc baremetal public-subnet create --help
    
  2. Lease a subnet:

    yc baremetal public-subnet create \
      --hardware-pool-id <pool> \
      --prefix-length 29 \
      --name <public_subnet_name> \
      --description "<public_subnet_description>" \
      --labels <key>=<value>
    

    Where:

    • --hardware-pool-id: Pools where the subnet will be available.

      You can link a dedicated public subnet to multiple pools at once.

    • --prefix-length: Size of the subnet you want to order.

      You can only order subnets of size /29 (six available IP addresses) and /28 (14 available IP addresses).

    • --name: Subnet name. The naming requirements are as follows:

      • It must be from 2 to 63 characters long.
      • It can only contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    • --description: Subnet description. This is an optional parameter.

    • --labels: Subnet labels. This is an optional parameter.

Converting an ephemeral public subnet to a dedicated oneConverting an ephemeral public subnet to a dedicated one

Note

You can only convert an ephemeral public subnet to a dedicated public subnet of size /31.

Management console
CLI
  1. In the management console, select the folder containing the ephemeral public subnet you want to convert to a dedicated one.
  2. In the list of services, select BareMetal.
  3. In the left-hand panel, select Public addresses and subnets.
  4. In the list of public subnets that opens, in the ephemeral subnet row, click and select Make dedicated.
  5. In the Pool field, select the pools where the subnet will be available.

    You can link a dedicated public subnet to multiple pools at once.

  6. Under General information:

    1. In the Name field, enter the name of the public subnet.
    2. (Optional) In the Description field, add a subnet description.
    3. (Optional) In the Labels field, set the labels.
  7. Click Order.
  1. View the description of the command for transforming an ephemeral public subnet:

    yc baremetal public-subnet update --help
    
  2. Transform the subnet:

    yc baremetal public-subnet update \
      --id <ephemeral_public_subnet_ID> \
      --type dedicated \
      --hardware-pool-id <pool> \
      --name <public_subnet_name> \
      --description "<public_subnet_description>" \
      --labels <key>=<value>
    

    Where:

    • --id: ID of the ephemeral public subnet.

    • --type: Type to transform the subnet into.

    • --hardware-pool-id: Pools where the subnet will be available.

      You can link a dedicated public subnet to multiple pools at once.

    • --name: Subnet name.

    • --description: Subnet description. This is an optional parameter.

    • --labels: Subnet labels. This is an optional parameter.

ExamplesExamples

Leasing a new dedicated public subnetLeasing a new dedicated public subnet

Lease a new dedicated public subnet of the /29 size:

CLI
yc baremetal public-subnet create \
  --hardware-pool-id ru-central1-m3 \
  --prefix-length 29 \
  --name demo-public-subnet \
  --description "My first public subnet" \
  --labels env=test

Result

id: ly5jmqxxrcsu********
cloud_id: b1gia87mbaom********
folder_id: b1g0ijbfaqsn********
name: demo-public-subnet
description: My first public subnet
zone_id: ru-central1-m
hardware_pool_ids:
  - ru-central1-m3
type: DEDICATED
prefix_length: "29"
cidr: 94.139.248.184/29
gateway_ip: 94.139.248.185
created_at: "2025-06-26T14:11:49.458568Z"
labels:
  env: test

Transforming an ephemeral public subnet into a dedicated oneTransforming an ephemeral public subnet into a dedicated one

Change the public subnet type from ephemeral to dedicated:

CLI
yc baremetal public-subnet update \
  --id ly5vr6tugxk7******** \
  --type dedicated \
  --description "Transformed dedicated public subnet"

Result

id: ly5vr6tugxk7********
cloud_id: b1gia87mbaom********
folder_id: b1g0ijbfaqsn********
name: transformed-public-subnet
description: Transformed dedicated public subnet
zone_id: ru-central1-m
hardware_pool_ids:
  - ru-central1-m3
type: DEDICATED
prefix_length: "29"
cidr: 94.139.248.184/29
gateway_ip: 94.139.248.185
created_at: "2025-06-26T14:11:49.458568Z"

Was the article helpful?

Previous
Creating a private subnet
Next
Creating a private connection to cloud networks
© 2025 Direct Cursus Technology L.L.C.