Adding Static Route Rules to a DRG Route Table

Add one or more static route rules to a dynamic routing gateway (DRG) route table in Oracle Cloud Infrastructure.

A DRG route rule is a mapping between a destination IP address range (CIDR block) and a DRG attachment. The map is used to route packets that match the rule or rules. Traffic can be routed across the attachments using equal-cost multipath routing (ECMP) if there are multiple rules with identical destinations and none of the rules conflict.

    1. Open the navigation menu and click Networking. Under Customer connectivity, click Dynamic routing gateway.
    2. Under List Scope, select the compartment that contains the DRG with the route table that you want to add static rules to.
      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 the name of the DRG.
    4. Under Resources, click DRG route tables.
    5. Click the name of the DRG route table that you want to add a static route rule to.
    6. Click Add static route rules.
    7. Enter the following information:
      • Destination CIDR block: Enter a destination CIDR block, enable import route distribution, or enter nothing and the default CIDR block 0.0.0.0/0 is applied, allowing all traffic. The route table must always include at least one destination.
      • Next hop attachment type: Select the intended target type of the static rule.
      • Next hop attachment: Select a VCN, virtual circuit, IPSec tunnel, or remote peering connection (RPC) attachment.
    8. Click +Another route rule to add more rules.
    9. Click Add route rules.
  • Use the network drg-route-rule add command and required parameters to add one or more static route rules to the specified DRG route table:

    oci network drg-route-rule add --drg-route-table-id  ocid ... [OPTIONS]

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

  • Run the AddDrgRouteRules operation to add one or more static route rules to the specified DRG route table.