Changing Which VCN Route Table a Subnet Uses
Change which virtial cloud network (VCN) route table a subnet uses.
- Open the navigation menu, click Networking, and then click Virtual cloud networks.
- Click the name of the VCN you're interested in.
- Click Subnets.
- Click the name of the subnet you're interested in.
- Click Edit.
- In the Route Table section, select the new route table you want the subnet to use.
- Click Save changes.
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.