Listing VCN Route Tables

List VCN route tables in a given VCN and compartment.

For an overview of routing in your VCN and subnets, see VCN Route Tables.
    1. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    2. Click the name of the VCN you're interested in.
    3. Under Resources, click Route Tables.
      The default VCN route table is displayed in the list of route tables.
  • 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.