Oracle OCI Local Peering Gateway

Oracle OCI Local Peering Gateway

An Oracle Cloud Infrastructure (OCI) Local Peering Gateway (LPG) is a service that enables private, low-latency communication between Virtual Cloud Networks (VCNs) within the same OCI region. LPGs allow resources in one VCN to communicate securely with resources in another VCN without routing traffic over the internet, which reduces latency and enhances security.

Note: that this connection does not offer DNS resolution between VCNs. If you need this feature, this is called Private DNS which is accessible by your VCNs DNS Resolver.

In this example, I’m going to form a connection between a VCN called vnc-lb (which contains my Load Balancer) and one called 1639 (which contains my compute boxes)

  1. Go to the vnc-lb VCN and click Local Peering Gateways > Create Local Peering Gateway

  2. Use a name of lpg-lb and click Create Local Peering Gateway

  3. Change VCN to the 1639 VCN and repeat the 2 steps above to create a Local Peering Gateway in the same way. I called mine TenancyLPG for some reason

  4. Whilst still on that VCN, click Local Peering Gateways > 3 Dots/Kebab Icon next to the LPG you just created > Establish Peering Connection

  5. Set Virtual Cloud Network to vnc-lb and Unpeered Peer Gateway to lpg-lb and click Establish Peering Connection

  6. Wait 30 seconds until it says Peered - Connected to a peer.

  7. Create a Route Table on vnc-lb, Target Type = Local Peering Gateway, Destination Block = 10.0.0.0/16 (or whatever the CIDR of the 1639 VCN is), local Peering Gateway = lpg-lb

  8. Back on the 1639 VCN, click on Route Rules > Create Route Rules, Target Type = Local Peering Gateway, Destination CIDR Block 10.1.0.0/16 (or whatever the CIDR of the vnc-lb VCN is) Click Add Rules Route

  9. If you see this … then the Local Peering Gateway is operational

now you can communicate across VNCs at IP level

ENJOY

What’s the picture its the River Wharfe under Wetherby Bridge. OMG those ducks loved this bird seed. Visit Yorkshire!