OCI Routing Between 2 VCNS in Same Region using LPGs

Scenario :- Same Region – Local VCN Peering

  1. Ensure VCNs are in the same compartment: Both VCNs should be in the same region and compartment.
  2. Configure VCN Peering:
    • Go to Networking in the OCI console.
    • Under VCNs, open the details of the first VCN.
    • In the Resources section, click on Local Peering Gateways (LPG) and create a Local Peering Gateway for the VCN.
    • Do the same for the second VCN (i.e., create another Local Peering Gateway).
  3. Establish Local Peering:
    • Once both LPGs are created, establish peering by going to one of the LPGs and clicking Establish Peering.
    • Select the other VCN’s LPG for peering.
  4. Create Empty Routes Tables For Each VCN Peering Gateway
    • In Each VCN create an Empty Route Tables , this will be used for the LPG Peering in each VCN
    • Go Back to Local Peering Gateways Page for each VCN and Assign the Relevant Empty Route Table
  5. Update Default Route Tables: (this is not the Ones Created in Step 4)
  6. Security List or Network Security Group Configuration:
    • Update the Security Lists or Network Security Groups for the VMs in each VCN to allow traffic to and from the other VCN.
  7. Test the connectivity:
    • Ping the IP address of the VM in the other VCN to verify connectivity.

References

Also Check Out :-

Peering Between 2 Different Regions

Leave a Comment

Your email address will not be published. Required fields are marked *