保留的公共 IPv6 地址前缀Reserved public IPv6 address prefix

在 Azure 中,双堆栈 (IPv4 + IPv6) 虚拟网络 (VNet) 和虚拟机 (VM) 默认是安全的,因为它们不会建立 Internet 连接。In Azure, dual stack (IPv4+IPv6) virtual networks (VNet) and virtual machines (VMs) are secure by default since they have no Internet connectivity. 可以使用从 Azure 获取的公共 IPv6 地址,轻松将 IPv6 Internet 连接添加到 Azure 负载均衡器和 VM。You can easily add an IPv6 Internet connectivity to your Azure Load Balancers and VMs with public IPv6 addresses that you obtain from Azure.

保留的任何公共 IP 均与所选 Azure 区域和 Azure 订阅相关联。Any public IPs that you reserve are associated with an Azure region of your choice and with your Azure subscription. 可以在订阅中的任何 Azure 负载均衡器或 VM 之间移动保留的(静态)IPv6 公共 IP。You may move a reserved (static) IPv6 public IP between any of the Azure Load Balancers or VMs in your subscription. 可以完全取消关联 IPv6 公共 IP,然后,该 IP 将会保留供你随时使用。You may dissociate the IPv6 public IP entirely and it will be held for your use when you're ready.

Warning

请小心不要意外删除公共 IP 地址。Use caution to not delete your public IP addresses accidentally. 删除某个公共 IP 会将其从订阅中删除,而且无法予以恢复(甚至在 Azure 支持人员的帮助之下也不能恢复)。Deleting a public IP removes it from your subscription and you will not be able to recover it (not even with the help of Azure support).

除了保留单个 IPv6 地址以外,还可以保留连续的 Azure IPv6 地址范围(称作 IP 前缀)供你使用。In addition to reserving individual IPv6 addresses, you can reserve contiguous ranges of Azure IPv6 addresses (known as IP prefix) for your use. 与单个 IP 地址类似,保留的前缀与所选 Azure 区域和 Azure 订阅相关联。Similar to individual IP addresses, reserved prefixes are associated with an Azure region of your choice and with your Azure subscription. 保留可预测的连续地址范围有很多好处。Reserving a predictable, contiguous range of addresses has many uses. 例如,可以让公司和客户大大简化 Azure 托管应用程序的 IP 允许列表操作,因为随时可以在本地防火墙中设定静态 IP 范围。 For example, you can greatly simplify IP whitelisting of your Azure-hosted applications by your company and your customers as your static IP ranges can be readily programmed into on-premises firewalls. 可以根据需要基于 IP 前缀创建单个公共 IP,删除这些公共 IP 时,它们将返回到保留的范围,日后可供重复使用。 You can create individual public IPs from your IP prefix as needed and when you delete those individual Public IPs they are returned to your reserved range so that you can reuse them later. IP 前缀中的所有 IP 地址保留供你独用,直到删除该前缀。All the IP addresses in your IP Prefix are reserved for your exclusive use until such time as you delete your Prefix.

IPv6 前缀大小IPv6 prefix sizes

可使用以下公共 IP 前缀:The following public IP prefix sizes are available:

  • 最小 IPv6 前缀大小:/127 = 2 个地址Minimum IPv6 Prefix size: /127 = 2 addresses
  • 最大 IPv6 前缀大小:/124 = 16 个地址Maximum IPv6 Prefix size: /124 = 16 addresses

前缀大小指定为无类域间路由 (CIDR) 掩码大小。Prefix size is specified as a Classless Inter-Domain Routing (CIDR) mask size. 例如,掩码 /128 表示单个 IPv6 地址,因为 IPv6 地址由 128 位组成。For example, a mask of /128 represents an individual IPv6 address as IPv6 addresses are composed of 128 bits.

定价Pricing

有关 Azure 公共 IP(单个 IP 地址和 IP 范围)的使用成本,请参阅公共 IP 地址定价For costs associated with using Azure Public IPs, both individual IP addresses and IP ranges, see Public IP Address pricing.

限制Limitations

只有采用“动态”分配的基本公共 IP 才支持 IPv6,这意味着,如果在 Azure 中删除再重新部署应用程序(VM 或负载均衡器),IPv6 地址会发生变化。IPv6 is supported on Basic Public IPs only with "dynamic" allocation that means that the IPv6 address will change if you delete and redeploy your application (VM's or load balancers) in Azure. 标准 IPv6 公共 IP 仅支持静态(保留)分配,不过,标准内部负载均衡器也可以支持从其分配到的子网内部进行动态分配。Standard IPv6 Public IP's support solely static (reserved) allocation though Standard INTERNAL load balancers can also support dynamic allocation from within the subnet to which they are assigned.

作为最佳做法,我们建议对 IPv6 应用程序使用标准公共 IP 和标准负载均衡器。As a best practice, we recommend that you use Standard Public IPs and Standard Load Balancers for your IPv6 applications.

后续步骤Next steps