Changing Route Table Assignment Defaults for DRG Attachments

Learn to change the default route table assignments for DRG attachments.

By default, VCN attachments are assigned the Autogenerated Drg Route Table for VCN attachments. Also by default, remote peering connection attachments, virtual circuit attachments, and IPSec tunnel attachments are assigned the Autogenerated Drg Route Table for RPC, VC, and IPSec attachments. You can't customize the DRG route table for loopback attachments or cross-tenancy attachments

When you change the default DRG route table for an attachment type, this changes the default for new resources of that type. All future attachments of that attachment type use the new default route table. Existing attachments continue to use the same route table assigned when they were created. You can change the route table assignment for an existing attachment using the steps described in Updating a DRG Attachment.

    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 Routing tab, go to the DRG route tables section.
      • Under Resources, select DRG route tables.
    3. Select Edit default assignment.

  • Use the network drg update command and required parameters to change the default route table assignment for DRG attachments:

    oci network drg update --drg-id ocid --default-drg-route-tables complex-type ... [OPTIONS]

    This is a complex type whose value must be valid JSON. See the command reference for the network drg update command for more details on using this command.

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

  • Run the UpdateDrg operation to change the default route table assignment for DRG attachments. See the DefaultDrgRouteTables reference for some specifics.