“添加 IP 地址”对话框 (SQL Server Management Studio)Add IP Address Dialog Box (SQL Server Management Studio)

适用于:Applies to: 是SQL ServerSQL Server(所有支持的版本)yesSQL ServerSQL Server (all supported versions) 适用于:Applies to: 是SQL ServerSQL Server(所有支持的版本)yesSQL ServerSQL Server (all supported versions)

本 F1 帮助主题介绍 “添加 IP 地址” 对话框中的选项。This F1 help topic describes the options of the Add IP Address dialog box. 可通过 “新的可用性组侦听器” 对话框和 或 “指定副本” 新建可用性组向导New Availability Group Wizard 页的 将副本添加到可用性组向导Add Replica to Availability Group Wizard “侦听器” SQL Server 2019 (15.x)SQL Server 2019 (15.x)选项卡访问此对话框。This dialog box accessed from the New Availability Group Listener dialog box and the Listener tab of the Specify Replicas page of the 新建可用性组向导New Availability Group Wizard or the 将副本添加到可用性组向导Add Replica to Availability Group Wizard of SQL Server 2019 (15.x)SQL Server 2019 (15.x).

先决条件Prerequisites

开始向可用性组侦听器添加子网之前,确保了解每个子网的 IP 地址以及子网掩码(对于 IPv4 地址)。Before you begin to add subnets to an availability group listener, ensure that know the IP address for each subnet and, for an IPv4 address, the subnet mask.

添加 IP 地址选项Add IP Address Options

子网Subnet
使用下拉列表选择要添加到可用性组侦听器的子网地址。Use the drop list to select an address for the subnet that you are adding to the availability group listener. 默认情况下,一个子网同时具有 IPv4 地址和 IPv6 地址。By default a subnet possesses both an IPv4 address and an IPv6 address. 首次使用 “添加 IP 地址” 对话框时, “子网” 下拉列表将显示承载可用性组副本的每个子网的这两种子网地址。The first time you use the Add IP Address dialog, the Subnet drop list displays both subnet addresses for each subnet that hosts a replica for the availability group. 若要向侦听器添加给定子网,请选择它的子网地址之一。To add a given subnet to the listener, select one of its subnet addresses.

完成 “添加 IP 地址” 对话框的操作并单击 “确定” 后,可以将所选子网地址添加到该侦听器, “子网” 下拉列表会筛选出该子网地址。After you complete the Add IP Address dialog box and click OK to add a selected subnet address to the listener, the Subnet drop list filters out that subnet address. 所有未选定的子网地址仍保留在下拉列表中。All unselected subnet addresses remain on the drop list. 确保为每个子网向侦听器仅添加一个子网地址,否则侦听器创建将失败。Be sure that you add one and only one subnet address per subnet to the listener, or listener creation will fail.

地址Addresses
使用此字段可为所选子网地址输入一个静态 IP 地址。Use this field to enter a static IP address for the selected subnet address. 请与您的网络管理员联系以获取此 IP 地址。Contact your network administrator for this IP address. 确保您为所选子网地址输入一个有效的地址,否则侦听器创建将失败。Ensure that you enter a valid address for the selected subnet address, or listener creation will fail.

IPv4 地址IPv4 Address
如果您选择了子网的 IPv4 子网地址,请在此输入有效的 IPv4 静态地址。If you selected the IPv4 subnet address of a subnet, enter a valid IPv4 static address here.

子网掩码Subnet Mask
对于 IPv4 地址,此只读字段显示所选子网的子网掩码。For an IPv4 address, this read-only field displays the subnet mask of the selected subnet.

IPv6 地址IPv6 Address
如果您选择了子网的 IPv6 子网地址,请在此输入有效的 IPv6 静态地址。If you selected the IPv6 subnet address of a subnet, enter a valid IPv6 static address here.

确定OK
单击以添加已选定其地址的子网,同时添加您指定的静态 IP 地址。Click to create add the subnet whose address you selected, along with the static IP address that you specified. 包含这些值的行将添加到 “新的可用性组侦听器”“指定副本” 对话框的子网网格中。A row containing these values will be added to the subnet grid of the New Availability Group Listener or Specify Replicas dialog box.

重要

“添加 IP 地址” 对话框并不验证该 IP 地址。The Add IP Address dialog does not verify the IP address. 该对话框也不会阻止您为已经添加到可用性组侦听器的子网继续添加其他子网地址。Also the dialog does not prevent you from adding the second subnet address for a subnet that you have already added to the availability group listener.

取消Cancel
单击以取消所做选择,并返回“新的可用性组侦听程序” 对话框或“侦听程序” 选项卡,不为任何子网添加静态 IP 地址。Click to cancel your selections, and return to the New Availability Group Listener dialog box or Listener tab without adding a static IP address for any subnet.

另请参阅See Also

AlwaysOn 可用性组概述 (SQL Server) Overview of Always On Availability Groups (SQL Server)
可用性组侦听程序、客户端连接和应用程序故障转移 (SQL Server) Availability Group Listeners, Client Connectivity, and Application Failover (SQL Server)
AlwaysOn 客户端连接 (SQL Server)Always On Client Connectivity (SQL Server)