For VPC peering, we should not have both VPC overlap with IP address
Creating VPC b/w 2 CPC as below.
Create two project with seperate VPC
as like for each Project
Enter the Peering Name > VPC name > Target Project ID > with default VPC > Create
Do the same in project2
Once you added Peering in both the project you will get the status as Active
Same you can see in Project 2 VPC
Now Both can communicate b/w peering connection
To Test,Login to the 1st project and ping to the project 2 internal IP
Ref: https://medium.com/petabytz/vpc-network-peering-on-google-cloud-platform-gcp-bb83a489b7a8
https://cloud.google.com/vpc/docs/vpc-peering
No comments:
Post a Comment