Hey guys welcome back this is Bernardo from the BTNHD and today is all about deploying
a network load balance on your Windows Server 2019 web server, and let's get to it.
Alright so, like I said before it's all about deploying a NLB for network load balancer
on the Windows Server 2019, and I am going to be configuring it for a web server.
Alright, so the first thing that I'm going to do is I'm going to right click on my start
menu go to run, type in WINVER hit OK.
And I'm doing everything within a Hyper-V environment but the host server is actually
running Windows Server 2019 version 1809.
Okay, now within my Hyper-V environment I have four machines.
I have my DC.
I have web01, web02 and I have my nlb server, now all the machines are part of my Active
Directory I joined them with my domain, they all live within the computer OU.
Now I'm going to show you guys my network load balancer server, this is it right here,
I have no services installed.
This is the web01 server, no services installed, and this is my web02 no services installed.
on this video I want to do a lot of PowerShell command a little bit of power show command
I just don't want to show you guys go to manage.
Add Roles and Features a next next next next, it's time for us to upgrade our game and do
a little PowerShell.
And I'm getting myself into PowerShell a little bit more so it's time for me to learn it and
push it out to you guys, so I'm logged in within my DC and within my DC I'm going to
hit start and within starts I'm going to open up the Windows PowerShell folder.
I'm going to right click on the Windows PowerShell ISE, go to more, and I'm going to click on
run as an administrator, and is going to start loading up the Windows PowerShell ISE.
And once it's up and running, it is time for us to get going right now the first command
that I'm going to run is invoke command, with a dash computer name and the name of the computers
that I want to install something into right.
It's going to be web01 and web02 with the following commands with wiggly brackets, install
Windows feature name web server and I want to include the management tools and then close
a little wiggly brackets, this is basically I'm running a remote command to those servers
to install the web services, I'm going to select that command and I'm going to do F8
to run it, and it's going to run, it's going to start the installation.
And once it's completed you should get a success.
True, true.
No restart needed exit code was success, and the web server features were installed on
those two servers.
Now if I go inside web01 and web02 we go inside the Server Manager dashboard, you're going
to see the IIS feature, boom, it worked.
Awesome.
Right.
This is better than just clicking on Manage add Roles and Features next next next and
all that stuff right one command does it all one shot one deal.
Now if I click on start on both machines and go inside windows administrative tools you're
going to see the Internet Information Services IIS was installed successfully so that's a
good thing.
Now the following command that we need to run is invoke command, with a dash computer
name and I'm going to call out my web01, my web02, and also my nlb computer with a command
of install Windows feature, nlb, also with a RSAT dash NLP that's basically going to
install all the included features all the added features that the nlb needs for it to
be fully you know installed, so I'm going to select that command hit f8, it's going
to start installing on all three machines.
And once it's done, you're going to see this nice little prompt at the exit code was success,
and all three machines.
Now, next thing that I did was I went inside my nlb server which is my network load balancer
server.
I clicked on start, I went inside windows administrative tools, and I looked for the
network load balancing manager I clicked on it.
Once it loads up I'm going to click on network load balancer cluster.
I'm going to right click on it, click on new cluster.
And we need to provide our first host.
Now the first host is going to be web01 hit Connect, if everything works out with no problem,
the connection status should say connected and you should see the IP address for that
machine.
Now, before I continue, make sure that each of your machines have a static IP address.
Okay, not DHCP, make sure you go inside the network adapter and assign a static IP address
to those machines, each machine should have a static IP, a gateway.
Also, a DNS assigned to it.
All right, once you get to this point.
Click on Next I'm gonna leave everything as the default, and we're going to click on next
here.
And then it's time for us to create our cluster IP address.
So I'm going to click on Add.
And from here I'm going to provide the following information, and then click OK, and then click
on Next.
And then from here, my cluster properties, I am going to enter a full internet name this
is up to you don't really need one but I'm going to enter it.
The next thing that you need to do is configure your operation mode.
I'm going to do multicast.
For this example, and I'm going to click on Next.
You got your port rules I'm gonna leave everything as the default, and then click on finish,
you're going to get the nice little hourglass because it's pending.
And once everything is completed, it should change green the icon should change green,
and it's added into your cluster.
Now, back to my command line.
I'm going to run the following command now within this following command I'm not doing
an invoke command because this command is within my DC controller right invoke command
allows you to do something remotely on the command line I'm going to do add dash DNS
server resource record A with a parameter of dash zone name will be btnhd.edu for me.
Dash name, the name that I want for the A record and ipv4 address will be the IP address
of your cluster IP address, I'm going to select it hit f8 to run it and bam.
Good to go.
Now if you go inside your DNS manager, you're going to see that the record A record was
created there.
Now don't get me wrong, you are able to open up DNS manager and right click on it and then
go to A host and do it manually but I'm learning PowerShell so take advantage of PowerShell
you can script all this and do it in one shot, why not right now next thing that I did was
I went inside the network load balancer server, I selected, my cluster node i right clicked
on it and I went to add host to cluster.
And I added my 02.
My second web server, and I hit Connect.
And if everything works well connection status should say connected, and you should see the
IP address for that machine.
Click Next.
I left everything as the default, because the first host that I entered gave it an ID
of one.
The second one is going to be two, and then click next here for port rules, I left everything
as the default click Finish.
Again, you're going to get the nice little hourglass because it's pending it's adding
it to the cluster.
And once it's done, you're going to see that green.
From here you are able to go inside your cluster properties, right click on your primary cluster
node, and then go into cluster properties from here you are able to see your cluster
IP address, as well as your cluster parameters and your port rules, now you're able to open
up a web browser and just go 10.10.10.100, which for me that was my virtual IP address
that I assigned to that cluster.
And then, long and behold, it goes directly to the website so hopefully you guys enjoyed
this video make sure to hit that like button, do not forget about punching, elbow and smashing
that subscribe button to get the latest and greatest from this guy and I'll catch you
guys on the next one.
Peace out.