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.
-
In the Compute Cloud@Customer Console navigation menu, under Networking, click Dynamic Routing Gateways (DRGs).
- At the top of the page, select the compartment that contains the DRG.
-
Click the name of the DRG that you plan to attach to a VCN.
-
Click Attach to Virtual Cloud Network.
- From the list of VCNs in the drop-down list, click the VCN.
-
Click the VCN to attach the DRG to from the list of VCNs in the drop down list.
-
Select the correct compartment.
-
Click Attach to DRG.
The DRG is attached to the selected VCN.
-
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.