Summary
There are four (4) types of peering between VCNs:
- Local peering (within a region) using LPG (local peering gateways)
- Remote peering (between different regions) using RPC (remote peering connections)
- Local peering (within a region) using upgraded DRG (dynamic routing gateways)
- Remote peering (between different regions) using upgraded DRG
Reference
Local VCN Peering
VCNs cannot have overlapping CIDR blocks. Peering is achieved through either LPGs (Local Peering Gateways) or an upgraded DRG (Dynamic Routing Gateway).
A LPG is attached to each VCN, while only a single DRG is needed to connect multiple VCNs.
This topic is covered in Lab 4-1: Networking - Virtual Cloud Network: Configure Local VCN Peering.
Local VCN Peering
Local VCN peering is the the process of connecting two VCNs in the same region so that their resources can communicate using private IP addresses.
Local Peering Gateway
A Local Peering Gateway is a component on a VCN for routing traffic to a locally peered VCN.
Summary of Networking Components for Peering Using an LPG
The Networking service components required for a local peering include:
- Two VCNs with non-overlapping CIDRs, in the same region
- A local peering gateway (LPG) on each VCN in the peering relationship
- A connection between those two LPGs
- Supporting route rules to enable traffic to flow over the connection
- Supporting security rules to control the types of traffic allowed to and from the instances in the subnets that need to communicate with the other VCN
Remote VCN Peering
VCNs cannot have overlapping CIDR blocks. Peering is achieved through either using Remote Peering Connections (RPCs) acting a connection point for each VCN on DRG, or by using upgraded DRGs directly using route tables.
This topic is covered in Lab 4-2: Networking - Virtual Cloud Network: Configure Remote VCN Peering:
Remote VCN Peering
Remote VCN peering is the process of connecting two VCNs, typically, but not required to be in different regions. Peering allows VCNs' resources to communicate using private IP addresses.
Dynamic Routing Gateway
A Dynamic Routing Gateway is a powerful virtual router that enables VCN connectinity to on-premises resources and to remote and local VCNs in the current tenancy and in other tenancies.
Summary of Networking Components for Remote Peering
The Networking service components required for a remote peering include:
- DRG attachment to each VCN in the peering relationship
- A remote peering connection (RPC) on each DRG in the peering relationship
- A connection between those two RPC
- Supporting route rules to enable traffic to flow over the connection
Supporting security rules to control the types of traffic allowed to and from the instances in the subnets that need to communicate with the other VCN.