PortrulesPortrules

Portrules 指定有关群集使用的端口规则的详细信息,包括端口规则的名称、虚拟 IP 地址、协议、模式等。Portrules specifies details about the port rules used for the cluster, including a port rule’s name, virtual IP address, protocol, mode, and so on.

备注

要启用此网络负载平衡设置,必须在要安装的 Windows 映像中启用 NetworkLoadBalancingFullServer 包。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 ADK (windows ADK) 技术参考For more information about adding and configuring packages, see the Windows Assessment and Deployment (Windows ADK) Technical Reference.

子元素Child Element

设置Setting 说明Description
PortrulePortrule 指定有关用于群集的端口规则的详细信息,例如,其名称、IP 地址、协议、模式等。Specifies details about a port rule used for a cluster, such as its name, IP address, protocol, mode, and so on.

有效的配置阶段Valid Configuration Passes

specializespecialize

父层次结构Parent Hierarchy

Microsoft NetworkLoadBalancing-核心 | 群集 | 群集 | PortrulesMicrosoft-Windows-NetworkLoadBalancing-Core | Clusters | Cluster | Portrules

应用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 Microsoft-NetworkLoadBalancingFor the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-NetworkLoadBalancing-Core.

XML 示例XML Example

以下 XML 输出显示了如何指定有关用于群集的端口规则的详细信息。The following XML output shows how to specify details about the port rules used for the cluster.

<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>

ClusterCluster