Listing VCN Route Tables

List VCN route tables in a particular VCN and compartment.

For an overview of routing in VCNs and subnets, see VCN Route Tables.
    1. On the Virtual Cloud Networks list page, select the VCN that contains the route table you want to work with. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • Select the Routing tab.
      • Under Resources, select Route Tables.

      The default VCN route table and any other route tables are displayed in a table.

  • Use the network route-table list command and required parameters to list the route tables in the specified VCN and compartment.:

    oci network route-table list --compartment-id compartment-ocid ... [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Run the ListRouteTables operation to list the route tables in the specified VCN and compartment.