Attaching VCNs to a Dynamic Routing Gateway

On Compute Cloud@Customer, you can connect many VCNs to a DRG, but each VCN can have only one DRG attached. Ensure that the route tables and security lists allow communication.

    1. In the Compute Cloud@Customer Console navigation menu, under Networking, click Dynamic Routing Gateways (DRGs).

    2. At the top of the page, select the compartment that contains the DRG.
    3. Click the name of the DRG that you plan to attach to a VCN.

    4. Click Attach to Virtual Cloud Network.

    5. From the list of VCNs in the drop-down list, click the VCN.
    6. Click the VCN to attach the DRG to from the list of VCNs in the drop down list.

    7. Select the correct compartment.

    8. Click Attach to DRG.

      The DRG is attached to the selected VCN.

    9. Repeat the process to attach the other VCNs to the DRG.

  • Use the oci network drg-attachment create command and required parameters to attach the specified VCN to a DRG.

    oci network drg-attachment create [OPTIONS]

    For a complete list of CLI commands, flags, and options, see the Command Line Reference.

  • Use the CreateDrgAttachment operation to attach the specified VCN to a DRG.

    For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.