Article 07 – Local VCN Peering: LPG and Intra-Region Traffic


1. Introduction to Intra-Region VCN Peering

As cloud environments grow, organizations separate workloads into multiple Virtual Cloud Networks (VCNs) to enforce administrative segregation, isolated environment lifecycles (Development, Staging, Production), or shared-services models (logging, central DNS, security scanning).

In Oracle Cloud Infrastructure (OCI), connecting two VCNs within the same region so that instances communicate using private IP addresses without traversing the public internet can be achieved using a Local Peering Gateway (LPG).

While modern large-scale hub-and-spoke topologies typically leverage the Dynamic Routing Gateway (DRG v2), the Local Peering Gateway (LPG) remains an essential, lightweight point-to-point peering mechanism for direct, low-latency VCN interconnections.

OCI Local VCN Peering LPG Architecture Diagram


2. Core Architectural Principles of Local Peering

1. Peer Establishment: Requestor and Acceptor

To establish a local peering connection between two VCNs in the same region, an LPG object must be created inside each VCN:
* Requestor: The LPG that initiates the peering connection request.
* Acceptor: The LPG that receives and accepts the peering connection request.

Once peered, the connection is symmetric and bidirectional—traffic can initiate from either VCN.


2. Overlapping CIDR Constraint

Local peering requires that the two VCNs have non-overlapping IPv4 CIDR blocks.
* Permitted: Peering VCN-A (10.0.0.0/16) with VCN-B (10.1.0.0/16).
* Blocked: Attempting to peer VCN-A (10.0.0.0/16) with VCN-C (10.0.0.0/16 or 10.0.1.0/24). The OCI API will reject the peering connection request instantly.


3. The Non-Transitive Peering Constraint

A fundamental architectural rule of OCI Local Peering Gateways is that LPG peering is strictly non-transitive.

If VCN-Spoke-A is peered to VCN-Hub via an LPG, and VCN-Spoke-B is also peered to VCN-Hub via a separate LPG, Spoke-A cannot communicate with Spoke-B through the Hub VCN using LPGs.

[!IMPORTANT]
Overcoming Non-Transitive Limits
If your network design requires transitive hub-and-spoke routing (where spokes route through a central inspection VCN to communicate with each other or on-premises networks), you must use DRG v2 instead of LPGs.


3. Step-by-Step IAM Policy Requirements for LPG Peering

When VCN-App and VCN-DB reside in different compartments or belong to separate admin teams, IAM policies must grant permission for the LPG requestor to establish the peer:

# Policy in Network-Compartment (Requestor)
Allow group Network-Admins to manage local-peering-gateways in compartment Network-Compartment

# Policy in Database-Compartment (Acceptor)
Allow group Network-Admins to manage local-peering-gateways in compartment Database-Compartment
Allow group Network-Admins to associate local-peering-gateways in compartment Network-Compartment with local-peering-gateways in compartment Database-Compartment

4. OCI Web Console (GUI) Step-by-Step Walkthrough

Follow these steps to peer VCN-App (10.0.0.0/16) with VCN-DB (10.1.0.0/16) in the same region.

Step 1: Creating LPG Objects in Both VCNs
  1. Navigate to NetworkingVirtual Cloud Networks ➔ Select VCN-App.
  2. Click Local Peering Gateways under Resources ➔ Click Create Local Peering Gateway.
  3. Name: LPG-App-To-DB
  4. Compartment: App-Compartment
  5. Click Create Local Peering Gateway.
  6. Repeat the process in VCN-DB:
  7. Name: LPG-DB-To-App
  8. Compartment: DB-Compartment

Step 2: Establishing the LPG Peering Connection
  1. On the LPG-App-To-DB details page inside VCN-App, click the action menu () ➔ Establish Peering Connection.
  2. Select Browse Available Local Peering Gateways.
  3. Select the target VCN (VCN-DB) and choose LPG-DB-To-App.
  4. Click Establish Peering Connection.
  5. The status updates from Unpeered to Peered.

Step 3: Updating Route Tables in Both VCNs

Peering the LPGs establishes the physical pipe, but route rules must direct traffic into the LPG:

  1. In VCN-App Route Table (RT-App-Private):
  2. Click Add Route Rules.
  3. Target Type: Local Peering Gateway
  4. Destination CIDR Block: 10.1.0.0/16 (VCN-DB CIDR)
  5. Target LPG: Select LPG-App-To-DB.
  6. In VCN-DB Route Table (RT-DB-Private):
  7. Click Add Route Rules.
  8. Target Type: Local Peering Gateway
  9. Destination CIDR Block: 10.0.0.0/16 (VCN-App CIDR)
  10. Target LPG: Select LPG-DB-To-App.

Traffic between instances in 10.0.0.0/16 and 10.1.0.0/16 now flows securely over the OCI internal backplane.


5. Common Architectural Misconceptions & Pitfalls

Misconception 1: “Peering LPGs Automatically Allows All Subnet Traffic”
  • Reality: Establishing an LPG connection only handles routing capability. Security Lists and NSGs on both ends must explicitly permit the ingress/egress traffic. If VCN-DB‘s Security List drops port 1521 from 10.0.0.0/16, packets reaching VCN-DB will be dropped at the SmartNIC layer.
Misconception 2: “LPG Peering Supports Arbitrary Multi-Hop Transitive Routing”
  • Reality: As emphasized in Section 2, LPGs do not forward packets across multi-hop topologies. Attempting to route on-premises FastConnect traffic through an LPG to a third VCN will fail. DRG v2 must be used for transit routing scenarios.

6. OCI Local Peering vs. Other Cloud Platforms

FeatureOracle Cloud Infrastructure (OCI)Amazon Web Services (AWS)Google Cloud Platform (GCP)
Point-to-Point PeeringLocal Peering Gateway (LPG)VPC Peering ConnectionVPC Network Peering
Transitive RoutingNon-transitive (Requires DRG v2 for transit)Non-transitive (Requires Transit Gateway)Non-transitive (Requires Cloud Router / VPN)
Cross-Tenancy / Acct PeeringSupported via IAM Cross-Tenancy PoliciesSupported via AWS Account ID & VPC IDSupported across GCP Projects
Overlapping CIDR SupportNot supportedNot supportedNot supported