Editing a Subnet

On Compute Cloud@Customer, you can edit subnets. You can change the subnet name, the route tables and security lists used by the subnet, and DHCP options.

Avoid entering confidential information in names and tags.

    1. In the Compute Cloud@Customer Console navigation menu, click Networking, then click Virtual Cloud Networks.

    2. At the top of the page, select the compartment that contains the VCN and subnet.
    3. Click the name of the VCN that contains the subnet you want to edit.

      The VCN details page is displayed.

    4. Under Resources, click Subnets.
    5. Click the Actions menu (An image of the three dot icon.), then click Edit.

    6. Make the changes to the subnet. The following items can be changed:

      • Name: Change the name of the subnet.

      • Route Table: Select a different route table for this subnet. You might need to change the compartment selection.

      • DHCP Options: Select a different set of DHCP options for this subnet. You might need to change the compartment selection.

      • Security Lists: Select different or additional security lists for this subnet. You might need to change the compartment selection.

    7. Tagging: (Optional) Add one or more tags to this resource. Tags can also be applied later. For more information about tagging resources, see Resource Tags.

    8. Click Save Changes.

      The subnet properties are updated.

  • Use the oci network subnet update command and required parameters to update a subnet.

    oci network subnet update --subnet-id ocid1.subnet.unique_ID  --dhcp-options-id ocid1.dhcpoptions.unique_ID  --route-table-id ocid1.routetable.unique_ID [OPTIONS]

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

  • Use the UpdateSubnet operation to update a subnet.

    For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.