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. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    2. Click the name of the VCN that contains the subnet.
    3. Click the name of the subnet you're interested in.
    4. Under Resources, click IPv6 Prefixes.
    5. Click Add IPv6 Prefix.
      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 parameters and values for CLI commands, see the CLI Command Reference.

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