Search code examples
google-cloud-platformgoogle-compute-enginevpcgoogle-suggestgoogle-vpc

VPC networking connection on GCP


Let me brief out question agian: Let say their are 3 VPC network (default)VPC1,VPC2.VPC3 1. VPC1 have two subets 10.128.0.0/20& 10.10.1.0/24 2. VPC2 subnets: 192.168.0.0/24 3. VPC3 subnets:10.10.2.0/24

Created 2 VM's instances: VM1 assigned two interface : ETH0(10.128.0.0 IP) & ETH1(192.168.0.0 IP) VM2 assigned two interface : ETH0(10.10.1.0 IP) & ETH1 (10.10.2.0 IP) VPC peering is already done between VPC1(default) & VPC3 as my VPN tunnel is established to communicate with my remote data centre.(It's working perfectly as all iproute & firewall has been set)

Need to connect ETH1 network "10.10.2.0 & 192.168.1.0"


Solution

  • Below solution done:

    1. Firewall rule created to allow traffic between VPC2 "192.168.1.0" and VPC3 "10.10.2.0" and checked
    2. VPC peering has been created between VPC2 "192.168.1.0" and VPC3 "10.10.2.0" and checked
    3. Ip route has been written between them VPC2 "192.168.1.0" and VPC3 "10.10.2.0"