Tag-Archive for » static ip NLB websites «

Configure Network Load Balancing for websites with dedicated ip

Configuring NLB for websites with dedicated ip addresses

# Assuming NLB is already setup and the nodes are converged fine.

Ingredients-

Following are the things I planned for my NLB (Network Load Balancing) setup in Windows Server 2003-

# 3 machines for web server(IIS installed) – Windows Server 2003

Machine names and its IP addresses-
2K31   -        192.168.1.129
2K32   -        192.168.1.130
2K33   -        192.168.1.131

# 1 machine for DNS server – Windows Server 2003

2K34   – 192.168.1.132

# Cluster IP addresses (for dedicated IP) – 192.168.1.150(for arun1.com), 192.168.1.151(for arun2.com)

#  Website name that is going to use in dedicated IP configuration – arun1.com, arun2.com

# On each web servers create the folder structures as below-

C:\Domains
C:\Domains\arun1.com
C:\Domains\arun1.com\wwwroot

C:\Domains
C:\Domains\arun2.com
C:\Domains\arun2.com\wwwroot

Create a test page “index.html” under wwwroot and copy paste the below code-

<html>
<h1><center>WELCOME TO ARUN WORLD</center></h1>
<b/>
2K31 – arun1.com – dedicated
</html>

Change the domain name arun1.com and server name ‘Hosted in 2K31’ to appropriate domain name and server’s name on each sever as this will help a bit in the later stage during testing of each nodes as which node is servicing the request.

Note – It is not intention to have separate physical machines to configure NLB. You can either configure it in Virtual servers like – Microsoft Virtual PC, VMWare Workstation or VMWare Server. This saves cost. In this scenario I’ve setup servers in my friend’s laptop with this configs-

VMWare Workstation ACE Edition 6.02
1.73 Ghz Intel Dual Core
1 GB RAM
120 GB HD

Preparation-

In Network Load Balancing Manager-

1.  Open ‘Cluster Properties’  of the cluster nlb.arun.com.

2.  In ‘Cluster IP Address’  click ‘Add’ to add new dedicated IP.  In this case I’ve added 192.168.1.150 and 192.168.1.151

3.  You will be presented with a dialog box “Confirm Change of Cluster-wide

Properties”. Click ‘Yes’ to proceed further.

In IIS Manager-

Setup 2 sites arun1.com host header pointing to the ip 192.168.1.150 and arun2.com host header pointing to the ip 192.168.1.151.

In DNS Management console-

Create forward lookup zone for 2 domains – arun1.com(192.168.1.150) and arun2.com(192.168.1.151)-

Testing-

Now open the browser and type http://arun1.com and you will see something like this-

In the above pic, it is serviced by node 1 – 2K31.

To test whether this site is servicing through other nodes please suspend or stop the 2K31 node in Cluster Manager(Please refer this URL Setup Network Load Balancing in Windows Server 2003 see under ‘Testing’ section)

Happy Load Balancing! :)

“`*“`arun