Archive

Archive for February, 2014

Windows 2008 NLB configuration: unicast on ESX 5.1

February 13th, 2014 No comments

There are literally hundreds of documents regarding the configuration of NLB running on VMWare ESX Server. Officially they do not support UNICAST mode so I had to configure this without help from VMWare. Below is how I did it, feel free to comment if it can be done better but this is a working example.

high level diagram
ELMORE_Windows2008_NLB_NetworkDesign

As you can see each server in our NLB will have 2 network cards. One for the NLB and another one for direct access which will also act as gateway for the outbound traffic. You only need to configure a gateway on the outbound NIC. Below is an example of the IP configuration. Remember, never check the NLB configuration on the NIC properties yourself. This will be done automatically when you create a new cluster.

ELMORE_Windows2008_NLB_IP_Design

The end result will be similar as the screenshots below
ELMORE_Windows2008_NLB_Manager
ELMORE_Windows2008_NLB_Manager2

Windows 2008 Inbound NIC forwarding

The NLB is active but it will not send back any traffic. Thanks to Michael who wrote an article about this I know that I need to enable forwarding on the inbound NIC. You need to do this on each node of the NLB cluster.

  1. Open a dos prompt with elevated rights and run the following command to see the network name: “netsh interface show int”ELMORE_Windows2008_NLB_forwarding01
  2. That will show you the interfaces in the server.  Find the name of the cluster NIC and put it in quotes in the following command:
    netsh interface ipv4 set interface “NLB 2103” forwarding=enabled
  3. You can confirm that it is changed by running the command:
    netsh interface ipv4 show interface l=verboseELMORE_Windows2008_NLB_forwarding02

VMWare ESX VLAN configuration

We are still not ready as we need to tweak some ESX settings as you can see in the screenshots belowELMORE_Windows2008_NLB_VLAN

DRS also breaks the NLB so we need to keep the VM on the same host. Best is to disable it for all NLB nodes.ELMORE_Windows2008_NLB_NoMove

 

How to move a VM running in an NLB

  • Stop Host in NLB manager
  • Shutdown VM
  • Move VM to another host or Datastore
  • Start  VM
  • Check NLB