Removing an IPv4 CIDR from a Subnet
Remove an IPv4 CIDR from a subnet in a Virtual Cloud Network (VCN).
After you assign an IPv4 CIDR to a subnet, the subnet must always have at least one IPv4 CIDR block assigned. To remove an existing IPv4 CIDR block, you need to add another IPv4 CIDR block first. For more information, see Adding an IPv4 CIDR to a Subnet.
Use the
network subnet remove-ipv4-subnet-cidrcommand and required parameters to edit a subnet:oci network subnet remove-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
RemoveIpv4SubnetCidroperation to remove an IPv4 CIDR from a subnet.