Removing an IPv6 prefix from a subnet

You can use the following methods to remove an IPv6 prefix from a subnet.

Once you have assigned an IPv6 prefix to a subnet, it must always have at least one IPv6 prefix assigned to it. This means you may have to add an additional IPv6 prefix before you can remove a certain IPv6 prefix.

    1. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    2. Click the name of the VCN you're interested in.
    3. Click the the Actions menu for the subnet, and select Unassign.
  • Use the remove-ipv6-subnet-cidr command and required parameters to remove an IPv6 prefix from a subnet:

    oci network subnet remove-ipv6-subnet-cidr --ipv6-cidr-block ipv6-prefix --subnet-id ocid ... [OPTIONS]

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

  • Run the RemoveIpv6SubnetCidr operation to remove an IPv6 prefix from a subnet.