Changing Which VCN Route Table a Subnet Uses
Change which virtial cloud network (VCN) route table a subnet uses.
The changes takes effect within a few seconds. Use the network subnet update command and described parameters to change which route table a subnet uses:
oci network subnet update --subnet-id ocid --route-table-id routetable-ocid ... [OPTIONS]
The route-table-id is the OCID of the route table the subnet will use.
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the UpdateRouteTable operation to change which VCN route table a subnet uses.