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
    • Yandex SIEM
    • 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 Cloud Router
    • All guides
    • Getting information about a virtual router
    • Getting a list of operations for a virtual router
    • Creating a virtual router
    • Updating virtual router settings
    • Managing networks and IP prefixes in a virtual router
    • Adding a private connection to a virtual router
    • Deleting a private connection from a virtual router
    • Deleting a virtual router
    • Cloud Interconnect tutorials
    • All use cases
    • On-premises without redundancy and one cloud network
    • On-premises without redundancy and multiple cloud networks
    • On-premises with redundancy and one cloud network
    • On-premises with redundancy and multiple cloud networks
    • Two separate virtual routers without on-premises redundancy
    • Even redistribution of on-premise traffic (Active-Active)
    • Prioritizing on-premise traffic based on direction (Active-Standby)
    • Reserving an on-premise connection via a VPN gateway (PRC)
    • Prioritizing a static VPC route over routes from PRC
    • Even traffic distribution for route 0.0.0.0/0
    • Prioritizing traffic by direction for route 0.0.0.0/0
    • Connectivity for two cloud networks
    • Connectivity for two cloud networks and on-premises
  • Access management
  • Pricing policy
  • Release notes
  1. Step-by-step guides
  2. Creating a virtual router

Creating a virtual router

Written by
Yandex Cloud
Updated at August 21, 2026
View in Markdown

Note

You need the cloud-router.editor role to run this operation.

Management console
CLI
  1. In the management console, select the folder where you want to create a virtual router.

  2. Navigate to Cloud Router.

  3. Click Create routing instance.

  4. Enter a name and description for your virtual router.

  5. Optionally, add labels:

    1. Click Add label.
    2. Add a label in key: value format.
    3. Press Enter.
  6. Optionally, enable Deletion protection to protect your virtual router from accidental deletion.

  7. In the Private connections field, select the private connections or specify their IDs.

  8. In the Networks field, select the networks.

  9. Add the IP prefixes in the section that appears dedicated to the network and its subnets.

  10. Click Create.

  1. See the description of the CLI command for creating a virtual router:

    yc cloudrouter routing-instance create --help
    
  2. Create a virtual router in the specified folder:

    Note

    To simplify maintenance, we recommend creating the virtual router in the same folder where the trunk and private connection were previously created.

    yc cloudrouter routing-instance create --name ri1 \
      --description "Routing instance 1" \ 
      --folder-id b1gqf**********jiz2w \
      --async
    

    Expected result:

    id: fokrf**********ml058
    description: routing instance create
    created_at: "2025-04-16T12:43:54.507531644Z"
    created_by: bfbud**********v7dfn
    modified_at: "2025-04-16T12:43:54.507531644Z"
    metadata:
      '@type': type.googleapis.com/yandex.cloud.cloudrouter.v1.CreateRoutingInstanceMetadata
      routing_instance_id: c3l87**********1dpin
    
  3. To check the result of creating a virtual router:

    yc cloudrouter routing-instance get c3l87**********1dpin
    id: c3l87**********1dpin
    name: ri1
    description: Routing instance 1
    folder_id: b1gqf**********jiz2w
    region_id: ru-central1
    status: ACTIVE
    created_at: "2025-04-16T12:43:55Z"
    

    Where:

    • id: Virtual router ID.
    • name: Virtual router name.
    • description: Virtual router description.
    • folder_id: ID of the cloud folder the virtual router was created in.
    • region_id: Region of the cloud the virtual router was created in.
    • status: Resource state. Target state: ACTIVE. When being created, it may be in the CREATING state.
    • created_at: Date and time of resource creation.
    • async: Running the operation in asynchronous mode. This is the recommended mode for all operations that involve changes to resources.

Was the article helpful?

Previous
Getting a list of operations for a virtual router
Next
Updating virtual router settings
© 2026 Direct Cursus Technology L.L.C.