Adding an IPv6 Prefix to a Subnet

Add an IPv6 prefix to a subnet in a Virtual Cloud Network (VCN).

If the subnet is in a VCN that has one or more assigned IPv6 prefixes and the subnet is enabled for IPv6 addressing, you can add an IPv6 prefix unique to the subnet. This assignment can be done when you create the subnet or later.

    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:
      • On the IP administration tab, go to the IPv6 prefixes section and select Add IPv6 Prefix.
      • 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 then select Add IPv6 Prefix.
    4. Choose a /64 IPv6 prefix. This can be from an Oracle-assigned IPv6 prefix assigned to the VCN, from BYOIP IPv6 prefix, or a ULA prefix.

      You can have up to 3 IPv6 prefixes per subnet, including one allocated by Oracle.

    5. Select Add IPv6 Prefix.
  • Use the network subnet add-ipv6-subnet-cidr command and required parameters to add an IPv6 prefix to a subnet:

    oci network subnet add-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 AddIpv6SubnetCidr operation to add an IPv6 prefix to a subnet.