VPC Network Peering
Step 1. Create a custom network in both projects
- Created a custom network with one subnet in a Project-1
- Created a firewall rule with following specifications of Project-1.
- Created a VM instance in the Project-1.
- Created a custom network with one subnet in Project-2.
- Created a firewall rule with following specifications in Project-2.
- Created a VM instance in Project-2.
Step 2. Set up a VPC network peering session
Project-A
Project-2
VPC Network Peering becomes ACTIVE and routes are exchanged As soon as the peering moves to an ACTIVE state
Step 3. Test a connectivity
we are able to ping the internal ip-adress of vm-1 from vm-2 even if they are in different projects and vpc networks as well ,because of vpc-network-peering.