Removing an IPv6 Prefix from a Subnet

Remove an IPv6 prefix from a subnet in a Virtual Cloud Network (VCN).

After a subnet has an IPv6 prefix assigned to it, it must always have at least one IPv6 prefix assigned to it. This means that you might need to add another IPv6 prefix before you can remove an IPv6 prefix. See Adding an IPv6 Prefix to a Subnet.

    1. On the VCN list page, select the VCN that contains the subnet you want to work with. This takes you to the VCN's details page.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • Select the Subnets tab, then select the name of the subnet you want to work with.
      • Scroll down to the table following the VCN details, which lists the subnets in the VCN. Select the name of the subnet you want to work with.
    3. On the subnet details page, perform one of the following actions depending on the option that you see:
      • Select the IP administration tab, then go to the IPv6 Prefixes section.
      • Scroll down to the table following the VCN details, which lists the subnets in the VCN. Select the name of the subnet you want to work with. Under Resources, select IPv6 Prefixes.
    4. Select the Actions menu Actions Menu for the IPv6 prefix, and select Unassign.
  • Use the network subnet 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 parameters and values for CLI commands, see the CLI Command Reference.

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