Learning Cloud: Configuring VPC Network Peering in same Project

Опубликовано: 09 Июль 2026
на канале: Cyethack Solutions
73
3

Learn Network peering in different Organization : after watching this video

Learning Cloud - VPC Network Creation and Peering VMs in different network Google cloud

   • Learning Cloud - VPC Network Creation and ...  

=====================

Objectives
In this lab, you learn how to perform the following tasks:

Explore connectivity between non-peered VPC networks
Configure VPC network peering
Verify private communication between peered VPC networks
Delete VPC network peering
For each lab, you get a new GCP project and set of resources for a fixed time at no cost
=========

Task 2. Configure VPC network peering
VPC network peering can be configured for different VPC networks within and across organizations. Configure the following peering connections in this project:

peering-1-2: Peer mynetwork with privatenet
peering-2-1: Peer privatenet with mynetwork
Each side of a peering association is set up independently. Peering is active only when the configuration from both sides matches.

Create peering 1-2
Peer mynetwork with privatenet.

In the Cloud Console, on the Navigation menu (Navigation menu), click VPC network -- VPC network peering.
Click Create connection.
Read through the requirements.
You won't need the project ID because you are connecting to a VPC network within the same project.
Click Continue.

Specify the following, and leave the remaining settings as their defaults:

Property Value (type value or select option as specified)
Name peering-1-2
Your VPC Network mynetwork
VPC network name privatenet
If you peered with a VPC network in another project, you would need the Network admin or Project owner/editor IAM role for that project to create a peering connection.
Click Create.
Note: At this point, the peering status remains INACTIVE because the other side has not been configured, the networks are not yet peered.
Create peering 2-1
Peer privatenet with mynetwork.

In the Cloud Console, return to the VPC network peering page.

Click Create peering connection.

Click Continue.

Specify the following, and leave the remaining settings as their defaults:

Property Value (type value or select option as specified)
Name peering-2-1
Your VPC Network privatenet
VPC network name mynetwork
Click Create.

As expected, the peering status changes to ACTIVE when the configuration from both sides matches.