Creating a DRG
Create a Dynamic Routing Gateway (DRG) in Oracle Cloud Infrastructure.
A DRG acts as a virtual router that provides a path for traffic between on-premises networks and virtual cloud networks (VCNs), and can also be used to route traffic between VCNs. Using different types of attachments, custom network topologies can be constructed using components in different regions and tenancies. Each DRG attachment has an associated route table used to route packets entering the DRG to their next hop. In addition to static routes, routes from the attached networks are dynamically imported into DRG route tables using optional import route distributions.
See Service Limits for a list of applicable limits and instructions for requesting a limit increase.
A DRG created before April 2021 can't perform transit routing between on-premises networks and several VCNs, or provide peering between VCNs. If you require that functionality and you see an Upgrade DRG button, click it. Upgrading the DRG resets all existing Border Gateway Protocol (BGP) sessions and temporarily interrupts traffic from the on-premises network. After the upgrade starts, you can't roll it back. See Upgrading a DRG.
For more information about DRGs, read Working with DRGs and DRG Attachments.
The new DRG is created and then displayed on the Dynamic routing gateways page of the compartment you chose. The new DRG is in the Provisioning state for a short period. You can connect it to other parts of your network only after provisioning is complete.
Provisioning includes creating two DRG route tables: one route table for connected VCNs and one for other resources such as virtual circuits and IPSec tunnels.
Note
When you create a DRG, two default route tables are created for you: one for VCN attachments and one for all other attachments. This matches the default routing behavior used by legacy DRGs created before May 2021. See Working with DRG Route Tables and Route Distributions for more about route tables.Use the network drg create command and required parameters to create a DRG:
oci network drg create --compartment-id compartment_id [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateDrg operation to create a DRG.