Creating a Subnet
Create a subnet in a VCN. A subnet is a logical subdivision of a Virtual Cloud Network (VCN). Each subnet consists of a contiguous range of IP addresses that don't overlap with other subnets in the VCN.
To create a subnet, you must have already created a VCN that this subnet will be part of.
The subnet is created and is displayed on the Subnets list on the details page of the VCN that you created it in. Use the network subnet 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 parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateSubnet operation to create a subnet.