Moving a VCN Route Table to a Different Compartment

Move a virtual cloud network (VCN) route table to a different 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.
    4. Find the route table in the list, click the the Actions menu (Actions Menu) to the right side of it, and then select Move resource.
    5. Select the destination compartment from the list.
    6. Click Move Resource.
  • Use the network route-table change-compartment command and required parameters to move a VCN route table to a different compartment:

    oci network route-table update --compartment-id destination-ocid  --rt-id routetable-ocid ... [OPTIONS]

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

  • Run the ChangeRouteTableCompartment operation to move a VCN route table to a different compartment.