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 Cloud Interconnect
    • All guides
    • Getting information about Cloud Interconnect partners
    • Getting information about Cloud Interconnect points of presence
    • Getting information about trunk links
    • Creating a trunk
    • Updating trunk parameters
    • Getting information about operations in a trunk
    • Deleting a trunk
    • Getting information about private connections
    • Creating a private connection
    • Updating private connection parameters
    • Getting a list of operations for a private connection
    • Updating the list of static routes for a private connection
    • Removing static routes for a private connection
    • Deleting a private connection
    • Getting information about public connections
    • Getting information about a routing instance
    • Overview
    • Operation overview
    • Terminology
    • Points of presence
    • Transceivers
    • Trunk
    • Private connection
    • Public connection
    • CIC partners
    • Monitoring
    • Data size and connection capacity
    • Quotas and limits
  • Pricing policy
  • Access management
  • Release notes
  1. Step-by-step guides
  2. Creating a private connection

Creating a private connection

Written by
Yandex Cloud
Updated at July 3, 2025

Warning

To request access to this function, contact support.

Note

You need the cic.editor role to run this operation.

CLI
  1. View the description of the CLI command to create a private connection:

    yc cic private-connection create --help
    
  2. Create a private connection:

    yc cic private-connection create --name prc-pop1 \
      --description "Private connection #1 via POP-1" \ 
      --trunk-id cf3td**********nufvr \
      --vlan-id 125 \
      --ipv4-peering peering-subnet=192.168.10.0/30,peer-ip=192.168.10.1,cloud-ip=192.168.10.2,peer-bgp-asn=65202 \
      --async
    

    Note

    By default, the private connection will be created in the same folder as the trunk. To simplify maintenance, it is best not create trunks and private connections in different folders.

    Expected result:

    id: cca59**********dvjir
    name: prc-pop1
    folder_id: b1gqf**********jiz2w
    region_id: ru-central1
    trunk_connection_id: cf3td**********nufvr
    vlan_id: "125"
    ipv4_peering:
      peering_subnet: 192.168.10.0/30
      peer_ip: 192.168.10.1
      cloud_ip: 192.168.10.2
      peer_bgp_asn: "20001"
      peer_bgp_md5_key: '*** hidden ***'
    status: ACTIVE
    created_at: "2025-03-20T08:25:33Z"
    

    Where:

    • id: Private connection ID.
    • name: Private connection name.
    • description: Private connection description.
    • folder_id: ID of the cloud folder the private connection was created in.
    • region_id: Cloud region the private connection was created in.
    • trunk_connection_id: ID of the trunk the private connection was created in.
    • vlan_id: VLAN ID for the private connection in 802.1Q trunk. This value is selected by the customer. It must be different from the VLAN IDs of the previously set up private connections in this trunk.
    • ipv4_peering: Group of IP/BGP connectivity parameters for the private connection:
      • peering_subnet: Point-to-point subnet for BGP peering. This value is selected by the customer.
      • peer_ip: Customer endpoint IP address on the point-to-point peering subnet. This value is selected by the customer.
      • cloud_ip: Yandex Cloud endpoint IP address on the point-to-point peering subnet. This value is selected by the customer.
      • peer_bgp_asn: Customer endpoint BGP ASN in ASPlain format. This value is selected by the customer.
      • peer_bgp_md5_key: Optional parameter. Encrypted BGP session key value.
    • status: Resource state. Target state: ACTIVE.
    • 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 information about private connections
Next
Updating private connection parameters
© 2025 Direct Cursus Technology L.L.C.