Configuring Local Peering Gateway in OCI

Oracle

Share Post Now :

HOW TO GET HIGH PAYING JOBS IN AWS CLOUD

Even as a beginner with NO Experience Coding Language

Explore Free course Now

Table of Contents

Loading

In this blog, we’ll delve into the Understanding of Local Peering Gateway and provide a step-by-step guide on how to configure it within OCI.

Table of content

Understanding Local Peering Gateway (LPG)

Before diving into the configuration process, it’s essential to grasp the concept of Local Peering Gateway. In OCI, Local Peering Gateway enables VCNs to communicate with each other securely within the same region. It acts as an intermediary for traffic exchange, allowing VCNs to establish private connections without traversing the public internet.

Benefits of Local Peering Gateway

  1. Enhanced Connectivity: LPG facilitates seamless communication between VCNs, enabling applications to interact efficiently.
  2. Improved Security: By leveraging private connectivity, LPG ensures data exchange occurs within the Oracle Cloud network, minimizing exposure to external threats.
  3. Scalability: As your infrastructure expands, LPG provides a scalable solution for interconnecting multiple VCNs within the same region.

Configuring Local Peering Gateway in OCI

Now, let’s walk through the step-by-step process of setting up Local Peering Gateway in Oracle Cloud Infrastructure:

Step 1: Accessing the OCI Console and Create VCN:

  • Log in to your Oracle Cloud Infrastructure account.
  • Navigate to the Networking service from the OCI Console.
  • Create VCN(with resources) on both compartment Root and Secondary Compartment.

Read more: Click Here

Step 2: Creating a Local Peering Gateway in both compartment

  • Click on “Local Peering Gateways” under the Networking tab.
  • Create LPG on Both Compartments.
  • Click “Create Local Peering Gateway.”
  • Provide a name for the LPG and select the VCN associated with it. (Create LPGs on Both VCN, which you have created in Root compartment and Secondary compartment)
  • Click “Create Local Peering Gateway” to proceed.

Step 3: Establishing Peering Connections:

  • After creating the LPG, navigate to the VCN with which you want to establish peering.
  • Go to “Local Peering Gateways” under the Networking tab of the selected VCN and Click “Establish Peering Connection.”
  • Select the compartment and LPG you created earlier.

Note: You need to establish connection only once between two LPGs and it doesn’t really matter which LPG you pick to establish the connection from.

  • Click “Estblish Peering Connection” to establish the connection.

Step 4: Test VCN Local Peering:

  • Create Compute instance in both compartments (We need to create one private instance and another instance with a public IP address)
  • Login into PrimaryVM1 as opc user and ping the private IP address of the SecondaryVM1 you should be able to see the packet response from SecondaryVM1.
  • Open putty and Run opc Run command
ifconfig -a
  • then put the private IP address of Instance
ping <private ip>

Note: If you don’t know how to connect to compute instance check our blog Click here

  • Open SecondaryVM1 copy public IP address then connect to putty.
  • Open Opc again (Don’t close the previous one) and run command.
ifconfig -a
  • then put the private IP address of Instance
ping <private ip>

Congratulations! You have successfully configured Local Peering Gateway in Oracle Cloud Infrastructure, enabling seamless communication between your Virtual Cloud Networks within the same region.

Conclusion

In the age of cloud computing, establishing robust network connectivity is paramount for optimizing performance and ensuring secure data exchange. Oracle Cloud Infrastructure’s Local Peering Gateway offers a powerful solution for interconnecting VCNs within the same region, thereby enhancing communication and facilitating seamless interaction between resources. By following the step-by-step guide outlined in this blog, you can harness the full potential of LPG and elevate your networking infrastructure within OCI.

Frequently Asked Questions

Can I peer VCNs in different regions using Local Peering Gateway?

No, LPGs can only facilitate peering within the same region.

What are the benefits of using Local Peering Gateway?

It reduces data transfer costs, increases security by keeping traffic within the Oracle network, and enhances network performance.

Are there any limitations or considerations when configuring LPG?

Yes, ensure both VCNs have non-overlapping CIDR blocks, and consider potential impacts on routing and security policies.

Can I modify or delete a Local Peering Gateway after it's configured?

Yes, you can modify or delete LPG configurations as needed through the OCI console or API.

Is there any additional cost associated with using Local Peering Gateway?

Yes, there may be additional costs based on data transfer volumes between peered VCNs.

Related Links/References

Begin Your Cloud Journey

Begin your journey towards becoming a Certified Oracle Cloud Infrastructure Architect and earning a lot more in 2024 by joining our FREE CLASSYou will also know more about the Roles and ResponsibilitiesJob opportunities for OCI Architects in the market, and what to study Including Hands-On labs you must perform to clear the Oracle Cloud Architect Associate Certification (OCI) certification exam by registering for our FREE Masterclass.

Click on the below image to Register Our FREE Class on Master Oracle Cloud (OCI) and Get a Higher paying Job!

Master oracle Cloud free class

Picture of mike

mike

I started my IT career in 2000 as an Oracle DBA/Apps DBA. The first few years were tough (<$100/month), with very little growth. In 2004, I moved to the UK. After working really hard, I landed a job that paid me £2700 per month. In February 2005, I saw a job that was £450 per day, which was nearly 4 times of my then salary.