Search code examples
google-cloud-platformroutesgoogle-vpc

GCP vpc same destination , different routes


Looking to the following architecture, I'm wondering if possible to force default traffic from VPC A to go to NVA-2 on VPC C and entering to NVA-1 in VPC B on its route.

On VPC B, the NVA-1 is a Network Virtual Appliance. Traffic from VPC A should have NVA-1 as its next hop for default traffic NVA-1 will then route traffic on OS level and make it out from same interface but this time it should go to the VPC C and with NVA-2 as destination

enter image description here


Solution

  • I ve managed to make it work using a fourth VPC (interco vpc between vpc B and vpc C) default route is routed on NVA-1 from VPC B to VPC interco Then VPC interco passes the traffic to vpc C using imported route from peering