Troubleshoot VPC Network Peering
Key Takeaways
This video demonstrates how to troubleshoot and resolve common issues with VPC Network Peering in Google Cloud, including overlapping IP ranges, imported custom routes, and transitive peering constraints. Tools and techniques used include the Google Cloud Console, VPC Network Peering, and subnet route configuration.
Full Transcript
foreign [Music] Google Cloud virtual private cloud or VPC Network peering allows private connectivity across two VPC networks so that workloads in different VPC networks can communicate with each other since VPC Network pairing uses Andromeda Google's implementation of sdn and Google infrastructure for private IP connectivity it offers several advantages like better security low Network latency and low Network address cost you may encounter errors with VPC peering if not configured correctly or if certain considerations are not followed today I'll walk you through how to troubleshoot and resolve some common issues with BBC Network peering and share some key points to be considered while creating or managing VPC Network period for today's demo consider the following topology VPC a and vpcb created in the same project vpca has subnet a with IP range 10.0.1.0 24 and subnet x with iprange 10.0.10.0 24. it also has instance a and a static route route a for 4.2.2.2 associated with subnet a similarly vpcb has subnet p with an IP range 10.0.2.0 24 and subnet y with IP range 10.0.10.0 24. it also has instance b and a static route route B for 8.8.8.8 associated with subnet B let's start with the first issue unable to create VPC Network peering I'll set up a VPC Network appearing from VPC a to vpcb and from vpcb to VPC a in the Google Cloud console go to VPC Network select VPC Network peering click create connection click continue setup VPC Network peering from VPC a to vpcb Import and Export subnet routes with privately used public ipv4 addresses click create the network pairing will be an inactive State until we configure Network peering from vpcb to vpca use the same process and create network pairing from vpcb to vpca click create peering connection click continue oops we are getting an error while creating the pairing it says an IP range in the peer Network 10.0.10.0 24 overlaps with an IP range in the local network the subnet IP ranges in peer VPC networks cannot overlap in our example subnet X in VPC a and subnet Y in vpcb I have overlapping IP ranges to fix this issue I'll remove subnet y from vpcb and try again there you go both the VPC Network keyrings are created and are in active State another common issue is all or some custom static or dynamic routes are not imported to the pr VPC Network this can happen due to various reasons let's check one by one static routes in a peer Network that use Network tags are never imported as peering custom routes in our case we don't have static routes with network tags static routes in peer Network that use default internet gateway as the next hub are never imported as peering custom routes let's go to each bearing and check imported and exported custom routes yeah subnet routes have been exported to the peer Network and have been imported from the peer Network custom route route a for 4.2.2.2 is neither exported by the network nor imported by the peer this is because custom routes are imported by a peer Network only if export custom routes option on the VPC peering is selected in the Network that has the custom routes and the import custom routes option on the VPC peering is selected in the peer Network that should be receiving the custom routes both these options are unselected in our setup let's enable the options and check again yeah the custom routes are exported by the network and accepted by the peer apart from this keep in mind that when a network reaches the per peering group limit of dynamic routes no more routes can be imported in such cases peering Dynamic routes might be dropped however it is not possible to determine which routes are omitted you need to contact Google Cloud support in this case now in our setup let's have another VPC vpcc which is paired with vpcb and vice versa so effectively we have a VPC Network pairing between VPC a and vpcb as well as between vpcb and vpcc one common issue that can be seen with this setup is vpca and vpcc cannot communicate with each other in fact this is not an issue but a constraint only directly peered networks can communicate because transitive peering is not supported with VPC peer to resolve this issue and have connectivity between VPC a and vpcc we need to configure separate VPC Network peering from VPC a to TCC and from vpcc to vpca to conclude I would like to share some key points to be considered while configuring VPC Network peering and troubleshooting any issues a VPC Network can pair with multiple VPC networks but there is a limit review VPC Network peering results you cannot bear two different auto mode VPC networks because all Automotive VPC networks have the exact same subnets each side of a peering connection is set up independently peering will become active only when configuration matches on both sides only directly peered networks can communicate transitive peering is not supported you can't disable the subnet route exchange or select which subnet routes are exchanged the subnet IP ranges in peered VPC networks cannot overlap VPC players always export subnet routes for more information on VPC Network pairing check out this documentation thanks for watching foreign [Music]
Original Description
Have you experienced any issues while creating VPC Network Peering? Are you interested in troubleshooting and resolving VPC Network Peering issues?
Then you are at the right place! Check out this video where we demonstrate how to troubleshoot and resolve some common issues with VPC network peering. Watch this video to learn about the key considerations while creating and managing VPC network peering.
Chapters:
0:00 - Intro
0:49 - Topology for demo
01:39 - Issue #1: Unable to create VPC Network Peering
03:13 - Issue #2: Custom routes are not imported to peer VPC network
05:08 - Issue #3: Two different peered networks to a VPC can’t communicate with each other
05:38 - Things to remember
06:32 - Further reading
VPC Network Peering → https://goo.gle/3scfAPW
Use VPC Network Peering → https://goo.gle/3qupYC2
Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Google Cloud Tech · Google Cloud Tech · 46 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
▶
47
48
49
50
51
52
53
54
55
56
57
58
59
60
I’m going for it #GoogleCloudCertified
Google Cloud Tech
I had to get #GoogleCloudCertified
Google Cloud Tech
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
Introduction to Generative AI Studio
Google Cloud Tech
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
Introduction to Responsible AI
Google Cloud Tech
Networking updates and CDMC-certified architecture
Google Cloud Tech
Create and use a Cloud Storage bucket
Google Cloud Tech
How to digitize text from documents
Google Cloud Tech
Faster analytical queries with AlloyDB
Google Cloud Tech
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
Introduction to Assured Open Source Software
Google Cloud Tech
BigQuery Cost Optimization: Storage
Google Cloud Tech
BigQuery Cost Optimization: Compute
Google Cloud Tech
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
Vector Support on our radar #GenAI
Google Cloud Tech
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
Kubernetes and multitasking updates!
Google Cloud Tech
GKE: Using Kubernetes Events
Google Cloud Tech
How to configure firewall rules for Cloud Composer
Google Cloud Tech
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
Ensuring requests are set in Kubernetes
Google Cloud Tech
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
How to run #MySQL in Google Cloud
Google Cloud Tech
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
GKE Load Balancing: Overview
Google Cloud Tech
GKE Load Balancing: Best Practices
Google Cloud Tech
Disaster Recovery in GKE
Google Cloud Tech
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
Enable and use GKE Control plane logs
Google Cloud Tech
Compliance in Australia with Assured Workloads
Google Cloud Tech
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
What's Next for Google Cloud?
Google Cloud Tech
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
What is fleet team management in GKE?
Google Cloud Tech
Troubleshoot VPC Network Peering
Google Cloud Tech
Introduction to DocAI and Contact Center AI
Google Cloud Tech
Cloud Run Direct VPC egress explained
Google Cloud Tech
Database deployment options in GKE
Google Cloud Tech
Analyze cloud billing data with #BigQuery
Google Cloud Tech
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
Accelerating model deployment with MLOps
Google Cloud Tech
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
Pricing API on our #Radar
Google Cloud Tech
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
Troubleshooting: Node Not Ready Status
Google Cloud Tech
One weekend until Cloud Next 2023!
Google Cloud Tech
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
#GoogleCloudNext will be demand!
Google Cloud Tech
More on: AI Security
View skill →Related Reads
📰
📰
📰
📰
Beyond Auto-Restart: Building a True Self-Healing Architecture with Runbooks and AI Agents
Medium · DevOps
55 Percent of Enterprise Storage Is Dead Weight
Medium · DevOps
Kiro CLI Gets Worse After an Hour. Here's How I Fixed It.
Dev.to · Sarvar Nadaf
Scarab Diagnostic Field Test #038 - pnpm GitHub Actions Setup State Boundary
Dev.to · Scarab Systems
Chapters (7)
Intro
0:49
Topology for demo
1:39
Issue #1: Unable to create VPC Network Peering
3:13
Issue #2: Custom routes are not imported to peer VPC network
5:08
Issue #3: Two different peered networks to a VPC can’t communicate with each o
5:38
Things to remember
6:32
Further reading
🎓
Tutor Explanation
DeepCamp AI