群集

Clusters 包含用于指定有关群集的详细信息的设置。

注意

要启用此网络负载平衡设置,必须在要安装的 Windows 映像中启用 NetworkLoadBalancingFullServer 包。 为此,请使用 Windows 系统映像管理器将 Microsoft-Windows-Foundation-Package 添加到你的应答文件,然后配置 NetworkLoadBalancingFullServer 包以启用该包。 有关添加和配置包的详细信息,请参阅 Windows 评估和部署 (Windows ADK) 技术参考

子元素

设置 描述
Cluster 指定有关群集的详细信息,例如其接口、IP 地址、端口规则等。

有效配置阶段

specialize

父层次结构

Microsoft-Windows-NetworkLoadBalancing-Core | Clusters

应用于

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 Microsoft-Windows-NetworkLoadBalancing-Core

XML 示例

Clusters 设置的以下 XML 输出演示了如何设置群集以实现网络负载均衡。

<Clusters>
   <Cluster>
      <Interface>Local Area Connection 2</Interface>
      <ClusterIpAddress>10.100.0.234</ClusterIpAddress>
      <ClusterNetMask>255.255.255.0</ClusterNetMask>
      <VirtualIpAddresses>
         <IpAddress wcm:keyValue="Ip1">
            <IpAddress>10.192.45.1</IpAddress>
            <NetworkMask>255.255.255.0</NetworkMask>
         </IpAddress>
         <IpAddress wcm:keyValue="Ip2">
            <IpAddress>fe80::204:23ff:feb9:1111</IpAddress>
         </IpAddress>
      </VirtualIpAddresses>
      <Portrules>
         <Portrule wcm:keyValue="Portrule1">
            <VirtualIpAddress>255.255.255.255</VirtualIpAddress>
            <Protocol>TCP</Protocol>
            <StartPort>0</StartPort>
            <EndPort>65535</EndPort>
            <Mode>MultipleHost</Mode>
            <EqualLoad>true</EqualLoad>
            <ClientAffinity>None</ClientAffinity>
         </Portrule>
         <Portrule wcm:keyValue="Portrule2">
            <VirtualIpAddress>10.100.0.223</VirtualIpAddress>
            <Protocol>Both</Protocol>
            <StartPort>80</StartPort>
            <EndPort>80</EndPort>
            <Mode>MultipleHost</Mode>
            <LoadWeight>100</LoadWeight>
            <ClientAffinity>Single</ClientAffinity>
         </Portrule>
         <Portrule wcm:keyValue="Portrule3">
            <VirtualIpAddress>10.100.0.99</VirtualIpAddress>
            <Protocol>TCP</Protocol>
            <StartPort>23</StartPort>
            <EndPort>23</EndPort>
            <Mode>Disabled</Mode>
         </Portrule>
         <Portrule wcm:keyValue="Portrule4">
            <VirtualIpAddress>255.255.255.255</VirtualIpAddress>
            <Protocol>UDP</Protocol>
            <StartPort>25</StartPort>
            <EndPort>25</EndPort>
            <Mode>MultipleHost</Mode>
            <EqualLoad>true</EqualLoad>
            <ClientAffinity>Network</ClientAffinity>
         </Portrule>
         <Portrule wcm:keyValue="Portrule5">
            <VirtualIpAddress>10.100.0.223</VirtualIpAddress>
            <Protocol>TCP</Protocol>
            <StartPort>3389</StartPort>
            <EndPort>3389</EndPort>
            <Mode>SingleHost</Mode>
            <HostPriority>1</HostPriority>
         </Portrule>
      </Portrules>
      <DedicatedIpAddresses>
         <IpAddress wcm:keyValue="Ip1">
            <IpAddress>10.192.45.1</IpAddress>
            <NetworkMask>255.255.255.0</NetworkMask>
         </IpAddress>
         <IpAddress wcm:keyValue="Ip2">
            <IpAddress>fe80::204:23ff:feb9:1111</IpAddress>
         </IpAddress>
      </DedicatedIpAddresses>
      <HostIdentifier>6</HostIdentifier>
      <ClusterMacAddress>02-bf-01-02-03-04</ClusterMacAddress>
      <ClusterName>mycluster.domain.com</ClusterName>
      <ClusterMode>Multicast</ClusterMode>
      <InitialHostState>Started</InitialHostState>
      <PersistSuspendedState>false</PersistSuspendedState>
      <MembershipHeartbeatPeriod>1000</MembershipHeartbeatPeriod>
      <MembershipHeartbeatLossTolerance>5</MembershipHeartbeatLossTolerance>
      <IdentityHeartbeatPeriod>2000</IdentityHeartbeatPeriod>
      <MulticastSpoofEnabled>false</MulticastSpoofEnabled>
      <MaskSourceMacEnabled>true</MaskSourceMacEnabled>
      <ICMPFilteringEnabled>false</ICMPFilteringEnabled>
      <NetBTSupportEnabled>true</NetBTSupportEnabled>
      <ClusterIpToClusterMacEnabled>true</ClusterIpToClusterMacEnabled>
      <UnicastInterHostCommunicationSupportEnabled>true</UnicastInterHostCommunicationSupportEnabled>
      <MaximumConnectionDescriptors>512</MaximumConnectionDescriptors>
      <BDATeam>
         <Team>{BF967924-0DE6-11D0-A285-00AA003049E2}</Team>
         <Master>true</Master>
         <ReverseHash>false</ReverseHash>
      </BDATeam>
   </Cluster>
</Clusters>

microsoft-windows-networkloadbalancing-core-