Windows – Using Windows Network Load Balancing for one IP only

high-availabilityload balancingnetworkingnlbwindows

When configuring NLB, you choose the cluster IP. This removes any other secondary IP addresses for the network adapter.

How can I have one cluster IP shared by NLB while still having multiple dedicated IPs to single machines, ie for the mail server?

EDIT more info:

Currently have Web1 serving the following:

1.1.1.1 -> mydomain.com
1.1.1.2 -> mail.mydomain.com
1.1.1.3 -> support.mydomain.com
1.1.1.4 -> ns1.mydomain.com

Want to add Web2 to load balance/provide redundancy just for
1.1.1.1 -> mydomain.com, while keeping mail.mydomain.com and support.mydomain.com at Web1.

Reason for this is you only want your emails going to one inbox and the support website uses a MySQL db on Web1 which I don't want to mirror to Web2.

Best Answer

I've never seen your scenario with NLB but I'm thinking that you'll need to use multiple network adapters in the server. One for NLB traffic and one for everything else. I'm thinking that you'll need to set the non-NLB adapter to have a default gateway and not the NLB adapter, or you'll need to set a different metric on each adapter. This snippet from an MS TechNet article seems to address this, but I'm not completely sure:

Q. I Have Two Network Adapters on Each Server in My NLB Cluster. How Do I Ensure That All Outbound Traffic Goes Through Non-Load-Balanced Network Adapters?

A. Sometimes it is desirable for performance or other reasons to direct all outgoing traffic through a different network adapter that the one that is being load balanced with NLB. This implies that there is more than one network adapter on each host in a cluster: NLB is bound to one network adapter called cluster network interface card, and the other network adapter does not have NLB bound to it. To make sure that the outbound traffic leaves each host through the non-cluster network adapter, do the following:

Set the metric on the cluster network adapter to a higher value than the non-cluster network adapter. For example, if you have two network adapters on each host, set the non-cluster network adapter metric to 1 and cluster network adapter metric to 2. The network adapter with a higher metric means it is more expensive to use than the other one with a lower metric. That will ensure that the outbound traffic will be routed out of the non-cluster network adapter.

If you want to use default gateways on both cluster and non-cluster network adapters, make sure the metric of the default gateway on the cluster network adapter has a higher value than the one on the non-cluster network adapter. If you do not want to route any outgoing traffic out of the cluster network adapter, you should not specify the default gateway for it at all.

Related Topic