Creating a subnet
You can use the following methods to create a subnet.
A subnet is a logical subdivision of a VCN. Each subnet consists of a contiguous range of IP addresses that do not overlap with other subnets in the VCN.
To create a subnet, you must have already created a virtual cloud network (VCN) that this subnet will be part of.
The subnet is then created and displayed on the Subnets page in the compartment you chose. Use the network vcn create command and required parameters to create a subnet:
oci network subnet create --cidr-block cidr-block --compartment-id ocid --vcn-id ocid ... [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the CreateSubnet operation to create a subnet.