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.

Note

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.

    1. Open the navigation menu and select Networking. Under Customer connectivity, select Dynamic routing gateway.
    2. Under List Scope, select a compartment that you have permission to work in.
      The page updates to display only the resources in that compartment. If you're not sure which compartment to use, contact an administrator. For more information, see Access Control.
    3. Click Create dynamic routing gateway.
    4. Enter the following values:
      • Name: A descriptive name for the DRG. It doesn't have to be unique, and it can be changed later. Avoid entering confidential information.
      • Create in compartment: The compartment in which you want to create the DRG, which could be different from the compartment you're currently working in.
      • Tags: (under Show advanced options) If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
    5. Click Create dynamic routing gateway.

    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.