Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • 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
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex BareMetal
    • All guides
      • Creating a VRF
      • Creating a private subnet
      • Ordering a dedicated public subnet
      • Deleting a dedicated public subnet
      • Creating a private connection to cloud networks
      • Creating a static route
    • Overview
    • Integrating with other Yandex Cloud services
      • Overview
      • Stock server configurations
      • Custom server configuration
      • On-request server configuration
      • Overview
      • Public network
      • Private network
      • DHCP
      • MC-LAG
      • Restrictions in BareMetal networks
      • Overview
      • Images
      • Access management
      • Additional server settings
      • Management console
      • Monitoring metrics
    • Quotas and limits
  • Pricing policy
  • FAQ
  1. Step-by-step guides
  2. Network
  3. Creating a VRF

Creating a VRF

Written by
Yandex Cloud
Improved by
Danila N.
Updated at June 24, 2026
View in Markdown
Management console
CLI
API
  1. In the management console, select the folder where you want to create a VRF.

  2. Navigate to BareMetal.

  3. In the left-hand panel, select VRF.

  4. At the top right, click Create VRF.

  5. In the Name field, specify your VRF name. The naming requirements are as follows:

    • Length: between 3 and 63 characters.
    • It can only contain lowercase Latin letters, numbers, and hyphens.
    • It must start with a letter and cannot end with a hyphen.
  6. Optionally, you can add a VRF Description.

  7. Optionally, you can add labels.

  8. Click Create VRF.

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

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. View the description of the command to create a virtual network segment (VRF):

    yc baremetal vrf create --help
    
  2. Create a VRF:

    yc baremetal vrf create \
      --name <VRF_name> \
      --description "<VRF_description>" \
      --labels <key>=<value>
    

    Where:

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

      • Length: between 3 and 63 characters.
      • It can only contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    • --description: VRF description. This is an optional setting.

    • --labels: VRF labels. This is an optional setting.

To create a VRF, use the create REST API method for the Vrf resource or the VrfService/Create gRPC API call.

ExampleExample

Create a virtual routing and forwarding segment with a name, description, and label:

CLI
API
yc baremetal vrf create \
  --name demo-vrf \
  --description "My first VRF" \
  --labels env=test

Result:

id: ly52l2lzaq5uw********
cloud_id: b1gia87mbaom********
folder_id: b1g0ijbfaqsn********
name: demo-vrf
description: My first VRF
created_at: "2025-07-01T21:37:08.740581Z"
labels:
  env: test
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <IAM_token>" \
  -d '{
     "folderId": "b1g07hj5r6i4********",
     "name": "baremetal-vrf",
     "description": "Test baremetal VRF",
     "labels": {
       "key": "vrf"
     }
  }' \
  "https://baremetal.api.cloud.yandex.net/baremetal/v1alpha/vrfs"

Where:

  • <IAM_token>: IAM token used for authentication.

  • folderId: Folder ID.

  • name: Image name. The naming requirements are as follows:

    • Length: between 3 and 63 characters.
    • It can only contain lowercase Latin letters, numbers, and hyphens.
    • It must start with a letter and cannot end with a hyphen.
  • description: VRF description. This is an optional parameter.

  • labels: VRF labels. This is an optional parameter.

Result:

{
  "done": true,
  "metadata": {
    "@type": "type.googleapis.com/yandex.cloud.baremetal.v1alpha.CreateVrfMetadata",
    "vrfId": "ly5uyq2gbxu2********"
  },
  "response": {
    "@type": "type.googleapis.com/yandex.cloud.baremetal.v1alpha.Vrf",
    "labels": {
      "key": "vrf"
    },
    "id": "ly5uyq2gbxu2********",
    "cloudId": "b1gia87mbaom********",
    "folderId": "b1g07hj5r6i4********",
    "name": "baremetal-vrf",
    "description": "Test baremetal VRF",
    "createdAt": "2025-12-07T21:22:16.493703Z"
  },
  "id": "ly53ac2rdtrk********",
  "description": "VRF create",
  "createdAt": "2025-12-07T21:22:16.521291Z",
  "createdBy": "ajeb9l33h6mu********",
  "modifiedAt": "2025-12-07T21:22:16.521291Z"
}

Follow the status of the operation by the done field.

Was the article helpful?

Previous
Analyzing server status using HWCheck
Next
Creating a private subnet
© 2026 Direct Cursus Technology L.L.C.