Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
All solutions
    • All solutions for VPC
    • Fixing errors at cloud network deletion
    • Errors in geographic attribution of Yandex Cloud resource IP addresses
    • Resolving issues with network connection speed when accessing cloud resources
    • Resolving errors when setting up TLS connections on VMs
    • Could not delete a security group
    • Resolving issues with sending emails via SMTP from external IP addresses
    • How to disable DDoS protection
    • Moving an external static IP address to another cloud
    • Monitoring incoming or outgoing VM traffic
    • How to determine the speed of communication channels
    • Checking for restrictions on traffic, connection speed, and bandwidth
    • How to change the network or subnet for an MDB cluster
    • How to read the "Connections quota utilization" chart
    • How to assign a fixed IP address to a NAT gateway
    • How to enable Egress NAT
    • How to route traffic between two cloud networks
    • Enabling advanced DDoS protection

In this article:

  • Scenario description
  • Solution
  1. VPC
  2. How to route traffic between two cloud networks

How to route traffic between two cloud networks

Written by
Yandex Cloud
Updated at November 27, 2023
  • Scenario description
  • Solution

Scenario descriptionScenario description

You need to link two VPC networks.

SolutionSolution

There are several solutions to this issue:

We can suggest several solutions:

  1. Internet routing: Create, in each subnet, a VM with an external IP address and attach routing tables referencing these external addresses to the subnets.
  2. Creating a VPN tunnel from one network to another: Create, in one of the subnets, a VM with an external IP address, and set up a VPN server on it. In the other subnet, configure a connection to this server on a web-enabled VM, then attach routing tables to these subnets via the VPN tunnel. On our marketplace, we have ready-made solutions for OpenVPN and IPSec.
  3. Using special VM routers: Certain images allow creating VMs with multiple interfaces that can be linked with different cloud networks. The easiest solution is to use a NAT instance from the marketplace. In the documentation, you can find a scenario for using such an image to enable online access. You may use it as a blueprint. Please note that you will need to add a second interface with an address in the desired subnet to the VM and add specific routes to the routing tables instead of the default route.
  4. If you are familiar with CISCO or Mikrotik solutions, you can use their virtual routers. Their images can also be downloaded from the marketplace; however, they require licenses for full-scale operation. You can also create multiple network interfaces on such VM instances, but you need to configure them yourself.

Was the article helpful?

Previous
How to enable Egress NAT
Next
Enabling advanced DDoS protection
Yandex project
© 2025 Yandex.Cloud LLC