Adding an IPv6 prefix to a subnet

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

If your 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 on.

    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 name of the subnet you're interested in.
    4. Under Resources, click IPv6 Prefixes.
    5. Click Add IPv6 Prefixes.
      Choose a /64 IPv6 prefix. This can be a subset of an Oracle-assigned IPv6 prefix assigned to the VCN, a portion of a BYOIP IPv6 prefix, or a ULA prefix.

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

    6. Click 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 flags and variable options for CLI commands, see the Command Line Reference.

  • Run the AddIpv6SubnetCidr operation to add an IPv6 prefix to a subnet.