ClientAffinityClientAffinity

ClientAffinity 指定如何網路在叢集中的多個要求會被導向。ClientAffinity specifies how network multiple requests are directed in a cluster.

附註  若要啟用此網路負載平衡的設定,必須啟用 NetworkLoadBalancingFullServer 封裝在您要安裝的 Windows 映像。Note   To enable this Network Load Balancing setting, the NetworkLoadBalancingFullServer package must be enabled in the Windows image you are installing. 若要這樣做,請使用 Windows 系統映像管理員將 Microsoft-Windows-Foundation-Package 新增至回應檔案,然後設定 NetworkLoadBalancingFullServer 套件以啟用它。To do this, use Windows System Image Manager to add the Microsoft-Windows-Foundation-Package to your answer file, and then configure the NetworkLoadBalancingFullServer package to enable it. 如需有關加入和設定封裝的詳細資訊,請參閱 < Windows 評定及部署 (Windows ADK) 的技術參考For more information about adding and configuring packages, see the Windows Assessment and Deployment (Windows ADK) Technical Reference.

Values

單一Single

指定網路負載平衡將導向至同一部叢集主機的多個要求來自相同的用戶端 IP 位址。Specifies that Network Load Balancing direct multiple requests from the same client IP address to the same cluster host. 此為預設設定。This is the default setting.

網路Network

指定網路負載平衡將導向至同一部叢集主機的多個要求來自相同 TCP/IP Class C 位址範圍。Specifies that Network Load Balancing direct multiple requests from the same TCP/IP Class C address range to the same cluster host.

None

指定多個連接從相同的用戶端 IP 位址可以由不同的叢集主機 (沒有用戶端親和性)。Specifies that multiple connections from the same client IP address can be handled by different cluster hosts (no client affinity). 避免使用選取時UDP或是兩者針對通訊協定設定。Avoid using None when selecting UDP or Both for your protocol setting.

此字串類型不支援空元素。This string type does not support empty elements. 請勿為此設定建立空值。Do not create an empty value for this setting.

有效的設定階段Valid Configuration Passes

特製化specialize

父階層Parent Hierarchy

microsoft-windows-networkloadbalancing-core- | Clusters | Cluster | Portrules | Portrule | ClientAffinitymicrosoft-windows-networkloadbalancing-core- | Clusters | Cluster | Portrules | Portrule | ClientAffinity

套用至Applies To

如需支援的 Windows 版本與此元件支援的架構,請參閱microsoft-windows-networkloadbalancing-core-For a list of the supported Windows editions and architectures that this component supports, see microsoft-windows-networkloadbalancing-core-.

XML 範例XML Example

下列的 XML 輸出會顯示如何指定多個連接從相同的用戶端 IP 位址可以由不同的叢集主機。The following XML output shows how to specify that multiple connections from the same client IP address can be handled by different cluster hosts.

<ClientAffinity>None</ClientAffinity>

PortrulePortrule