Adding an IPv4 CIDR to a Subnet
Add an IPv4 CIDR to a subnet in a Virtual Cloud Network (VCN).
If the subnet is in a VCN with one or more assigned IPv4 CIDRs and IPv4 addressing is enabled, you can add one or more IPv4 CIDR blocks unique to the subnet. You can make this assignment when you create the subnet through API and CLI or at a later time through all the listed methods.
Use the
network subnet add-ipv4-subnet-cidrcommand and required parameters to edit a subnet:oci network subnet add-ipv4-subnet-cidr --ipv4-cidr-block ipv4-CIDR --subnet-id ocid ... [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
AddIpv4SubnetCidroperation to add an IPv4 CIDR to a subnet.