Creating a Remote Peering Connection

Create a new remote peering connection (RPC) for a specified DRG.

To establish remote peering, each administrator creates an RPC object for a DRG, which includes a DRG attachment with the RPC type. "You" in the following procedure means an administrator (either the acceptor or requestor).

Note

Required IAM Policy to Create RPCs

If the administrators already have broad network administrator permissions (see Let network admins manage a cloud network), then they have permission to create, update, and delete RPCs. Otherwise, here's an example policy giving the necessary permissions to a group called RPCAdmins. The second statement is required because creating an RPC affects the DRG it belongs to, so the administrator must have permission to manage DRGs.

Allow group RPCAdmins to manage remote-peering-connections in tenancy
Allow group RPCAdmins to manage drgs in tenancy
    1. On the Dynamic Routing Gateways list page, select the DRG that you want to work with. If you need help finding the list page or the DRG, see Listing DRGs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • On the Attachments tab, go to the Remote peering connection attachments section.
      • Under Resources, select Remote peering connection attachments.
    3. Select Create Remote Peering Connection.
    4. Enter the following:
      • Name: A friendly name for the RPC. It doesn't have to be unique, and it can be changed later. Avoid entering confidential information.
      • Create in compartment: The compartment where you want to create the RPC, if different from the compartment you're working in.
    5. Select Create Remote Peering Connection.
      The RPC is then created and displayed on the Remote Peering Connections page in the compartment you chose.
    6. If you're the acceptor, record the RPC's region and OCID and give that information to the requestor.
  • Use the network remote-peering-connection create command and required parameters to create a new RPC for a specified DRG:

    oci network remote-peering-connection create --compartment-id compartment-ocid --drg-id drg-ocid ... [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateRemotePeeringConnection operation to create a new RPC for a specified DRG.