Go to main content

Oracle® Advanced Support Gateway Installation Guide

Exit Print View

Updated: March 2024
 
 

Update the Default Route Table for the VCN

Follow this procedure to update the default route table for the VCN to direct traffic to:

  • Other subnets containing customer assets;

  • The internet.

The default route table starts out with no rules. In this procedure you add a rule that routes all traffic destined for addresses outside the VCN to the internet gateway. The existence of this rule also enables inbound connections to come from the internet to the subnet, through the internet gateway. You use security list rules to control the types of traffic that are allowed in and out of the instances in the subnet (see the next task).

No route rule is required in order to route traffic within the VCN itself.

To update the default route table for the VCN, perform the following steps in the your new compartment:

  1. While viewing the VCN, under Resources, click Route Tables.

    Note -  For more information, refer to the relevant OCI documentation here.
  2. Click Add Route.
  3. Enter the following:

    Target Type: Internet Gateway.

    Destination CIDR block: 0.0.0.0/0 (which means that all non-intra-VCN traffic that is not already covered by other rules in the route table goes to the target specified in this rule.)

    Compartment: The compartment where the internet gateway is located.

    Target: The internet gateway you created.

  4. Click Add Route Rule.

    The default route table now has a rule for the internet gateway. Because the subnet was set up to use the default route table, the resources in the subnet can now use the internet gateway. The next step is to specify the types of traffic you want to allow in and out of the instances you later create in the subnet.