NLB

NLB (NETWORK LOAD BALANCING)

GET 3 PC

Install Hyper-v in all 3pc

Physically all 3 PC should be server 2012 r2  installed but all work is done in Hyper-v.Hyper-v should be installed with server 2012 r2

pc 1 (main server) = domain installed
pc 2 (member server) =Add Role (web server) , Add feature (Network load balancing)
pc 3 (member server) =Add Role (web server) , Add feature (Network load balancing)

At First there will be only 1 Ethernet port , but we want 2 Ethernet port so
Connect another virtual Ethernet port

By right clicking on virtual machine and go through settings

Click on network adapter > Add > ok

Now there you will get 2 Ethernet port

Domain Ip
Change name of all 3 PC in simple form like (pc1 ,pc2, pc3)
IP of domain or PC 1
IP = 40.0.0.1
Subnet mask = 255.0.0.0
Default gateway = 40.0.0.1
Preferred DNS = 40.0.0.1

IP of member server or PC 2
IP = 40.0.0.2
Subnet mask = 255.0.0.0
Default gateway = 40.0.0.1
Preferred DNS = 40.0.0.1

IP of member server or PC 3
IP = 40.0.0.3
Subnet mask = 255.0.0.0
Default gateway = 40.0.0.1
Preferred DNS = 40.0.0.1

NLB IP

IP of domain or PC 1
IP = 150.0.0.1
Subnet mask = 255.255.0.0
Default gateway = 150.0.0.1
Preferred DNS = 150.0.0.1

IP of member  server 1 or PC 2
IP = 150.0.0.2
Subnet mask = 255.255.0.0
Default gateway = 150.0.0.1
Preferred DNS = 150.0.0.1

IP of member server 2 or PC 3
IP = 150.0.0.3
Subnet mask = 255.255.0.0
Default gateway = 150.0.0.1
Preferred DNS = 150.0.0.1

after setting all , turn off firewall of all PC and check weather they are pinging to rest of 2 pc

Work done in PC 2
IIS manager configuration
1.. server manager > tools > Internet Information services (IIS) manager
2.. Expand member server 1 (name) ,there will be prompt of IIS manager make it yes.
3.. Expand sites > Expand Default website > select Default website there will be this page . Right click on default document
4.. There will be wwwroot page , right click on blank page > New > Text document write something in that document > at left side of corner there is File > save as . Here make file name index.html > select save as type All files > save .

5.. select Default website > double click on Default document > right click on index.html and move it up at the top

Work done in PC 3
IIS manager configuration
1.. server manager > tools > Internet Information services (IIS) manager
2.. Expand member server 2 (name) ,there will be prompt of IIS manager make it yes.
3.. Expand sites > Expand Default website > select Default website there will be this page . Right click on default document
4.. There will be wwwroot page , right click on blank page > New > Text document write something in that document > at left side of corner there is File > save as . Here make file name index.html > select save as type All files > save .

5.. select Default website > double click on Default document > right click on index.html and move it up at the top

Work done in PC 2
NLB configuration
1..server manager > Tools > Network load balancing manager open it
2.. Right click on network load balancing cluster > New cluster
3..Host = (give the name of member server1 or pc2 name) & connect . After connect below Ethernet will appear with IP address , select NLB IP > NEXT
4..Add IP address > 150.0.0.100 > subnet mask > 255.255.0.0 click > ok
5..Full Internet name > cbz.dell.com > select multicasting > next > finish.
6.. right click on new cluster > Add Host to cluster
7..Host name of pc3 > connect
8.. Host = (give the name of member server2 or pc3  name) & connect . After connect below Ethernet will appear with IP address , select NLB IP > NEXT >Next
9.. FINISH


Work done in domain PC or pc1
1..Tools > DNS > Forward lookup zone > Expand domain name > select New Host (A or AAAA)
2..Add Host name as www or http like this > IP of NBL (150.0.0.100) > check create associated pointer (PTR) Record

Now check working
Work done on Windows 7

Open internet in win 7 & type NBL IP , it will reach to your member server 1 or member server 2

Comments