Yandex Cloud
Search
Contact UsTry it for free
  • 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
    • Price calculator
    • Pricing plans
  • 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
  1. Step-by-step guides
  2. Network
  3. Creating a VRF

Creating a VRF

Written by
Yandex Cloud
Improved by
Danila N.
Updated at December 1, 2025
Management console
CLI
  1. In the management console, select the folder where you want to create a VRF.

  2. Go 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:

    • 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.
  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 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 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. Follow these naming requirements:

      • 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: VRF description. This is an optional parameter.

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

ExampleExample

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

CLI
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

Was the article helpful?

Previous
Disk status analysis with HW Watcher
Next
Creating a private subnet
© 2025 Direct Cursus Technology L.L.C.