Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • 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
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for VPC
    • Fixing errors when deleting a cloud network
    • Errors in geographic attribution of Yandex Cloud resource IP addresses
    • Troubleshooting network performance when using cloud resources
    • Fixing TLS connection errors on VMs
    • Cannot delete a security group
    • Resolving issues with sending emails via SMTP from external IP addresses
    • Resolving the `Quota limit vpc.externalStaticAddresses.count exceeded` error
    • Resolving the `Quota limit vpc.routeTables.count exceeded` error
    • How to disable DDoS protection
    • Moving an external static IP address to another cloud
    • How to view incoming or outgoing traffic logs for a VM
    • How to determine the speed of communication channels
    • Checking for traffic, connection speed, and bandwidth limitations
    • 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
    • How to enable advanced DDoS protection
    • How to use IPv6 addresses
    • How to use a fault-tolerant VPN or NGFW
    • How to restore an IP address
    • How a NAT gateway is different from a NAT instance
    • How to re-assign an IP address to a different availability zone
    • How to block an IP address

In this article:

  • Case 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 December 17, 2025
  • Case description
  • Solution

Case descriptionCase description

You need to connect two cloud networks.

SolutionSolution

There are multiple options available:

  1. Internet routing: In each subnet, create a VM with an external IP address and associate route tables referencing these external addresses with the subnets.
  2. Creating a VPN tunnel from one network to another: In one of the subnets, create 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, and then attach routing tables to these subnets via a VPN tunnel. On our marketplace, we have ready-made solutions for OpenVPN and IPSec.
  3. Using specific 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. We have a tutorial that describes using such an image to enable online access. You may use it as a base. Please note that you will need to add a second interface with an address in the subnet you need to the VM, as well as 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 VMs; however, you will have to configure them on your own.

Was the article helpful?

Previous
How to enable egress NAT
Next
How to enable advanced DDoS protection
© 2025 Direct Cursus Technology L.L.C.