Scenario :- Same Region – Local VCN Peering
- Ensure VCNs are in the same compartment: Both VCNs should be in the same region and compartment.
- 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).
- 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.
- 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
- Update Default Route Tables: (this is not the Ones Created in Step 4)
- 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.
- 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