Configuring VCN Route Tables to Use an LPG

Update a Virtual Cloud Network (VCN) route table to include a new rule that directs traffic destined for the other VCN's CIDR to flow through the local peering gateway (LPG).

Tip

Without the required routing, traffic doesn't flow between the peered LPGs. If a situation occurs in which you need to temporarily stop the peering, you can remove the route rules that enable traffic, you don't need to delete the LPGs.

Each administrator can perform this task before or after the connection is established.

Prerequisite: Each administrator must have the CIDR block or specific subnets for the other VCN. If the connection is already established, look at the Peer VCN CIDR Block value for the LPG in the Console. Otherwise, get the information from the other administrator by email or other method.

Decide which subnets in the VCN need to communicate with the other VCN. You need to update the route table for each of those subnets to include a new rule that directs traffic destined for the other VCN's CIDR to the LPG.

Note

Route tables with route rules that use an LPG as the next hop can be associated with subnets in the VCN, or a DRG, but not to internet gateways, NAT gateways or service gateways. For more about VCN routing, see Overview of Routing for a VCN or the Learn routing in OCI Networking with examples (PDF) technical brief.

Was this article helpful?