I followed the steps in this task but only network-a was created although I did the same steps in project B but network-b didn't appear in vpc network when I tried to make peer-ba although a green check appeared for me that project B was successfully created and i didn't give up I created It using the navigation menu then I created peer-ba but peer-ab and peer-ba stayed inactive this is what I did
gcloud compute networks create network-b --subnet-mode custom
gcloud compute networks subnets create network-b-subnet --network network-b \ --range 10.8.0.0/16 --region europe-west4
gcloud compute instances create vm-b --zone europe-west4-c --network network-b --subnet network-b-subnet --machine-type e2-small
gcloud compute firewall-rules create network-b-fw --network network-b --allow tcp:22,icmp
Solved! Go to Solution.
I don't know if this is the issue, but did you switch between the two projects correctly? You can do this at the top in the console, or using “gcloud config set project [PROJECT_ID]” in cloud shell.
You can see the current project using "gcloud config list", so you can verify that you are in the right project. (You need to do the peering from both projects, A and B)
I don't know if this is the issue, but did you switch between the two projects correctly? You can do this at the top in the console, or using “gcloud config set project [PROJECT_ID]” in cloud shell.
You can see the current project using "gcloud config list", so you can verify that you are in the right project. (You need to do the peering from both projects, A and B)
User | Count |
---|---|
29 | |
14 | |
3 | |
1 | |
1 |