NLB 检测到专用 IP (DIP) 地址和网络掩码数量不相等

Microsoft.Windows.NetworkLoadBalancing.6.2.NLB.detected.an.unequal.number.of.dedicated.IP.addresses.and.network.masks (Rule)

Knowledge Base article:

摘要

必须正确配置网络负载平衡 (NLB) 中的专用 IP 地址,并确保其能够与单个 NLB 群集主机联系。如果未正确配置专用 IP 地址,则无法使用它来管理主机或将其用于其它与群集无关的通信。

解决方案

确保专用 IP 地址的数量和子网掩码的一致

在所有网络负载平衡 (NLB) 群集主机上,专用 IP 地址的数量必须与指定的子网掩码相同。如果数量不相同,NLB 群集将继续操作,但是会忽略无相应网络掩码的 IP 地址。要使用此 IP 地址,确保 IP 地址的数量与网络掩码的相同。

要确保专用 IP 地址的数量与子网掩码的相同,请执行以下操作:

Element properties:

TargetMicrosoft.Windows.NetworkLoadBalancing.6.2.ServerRole
CategoryAlert
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.NetworkLoadBalancing.EventProvider Default
WA WriteAction Microsoft.Windows.NetworkLoadBalancing.6.2.GenerateAlert.SuppressByDescription Default
WriteToDB WriteAction Microsoft.Windows.NetworkLoadBalancing.6.2.CollectEvent Default

Source Code:

<Rule ID="Microsoft.Windows.NetworkLoadBalancing.6.2.NLB.detected.an.unequal.number.of.dedicated.IP.addresses.and.network.masks" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.NetworkLoadBalancing.6.2.ServerRole" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="NLBLibrary!Microsoft.Windows.NetworkLoadBalancing.EventProvider">
<Criteria>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>32</Value>
</ValueExpression>
</SimpleExpression>
</Criteria>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.NetworkLoadBalancing.6.2.GenerateAlert.SuppressByDescription">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.NetworkLoadBalancing.6.2.NLB.detected.an.unequal.number.of.dedicated.IP.addresses.and.network.masks.AlertMessage"]$</AlertMessageId>
<EnableAlert>true</EnableAlert>
</WriteAction>
<WriteAction ID="WriteToDB" TypeID="Microsoft.Windows.NetworkLoadBalancing.6.2.CollectEvent">
<CollectEvent>false</CollectEvent>
</WriteAction>
</WriteActions>
</Rule>