Setting Up a Virtual Network Lab with VMware Workstation and pfSense – Part 5, DHCP server

Now that we have our server set up for DNS and Active Directory we need to add one final role. We need a DHCP server on our network to handle giving out IP addresses. Since we turned DHCP off on our pfSense router in part 1 of this tutorial we need to add it to the server. So here we go… On the Server Manager dashboard click add roles which will start the add roles and features wizard. on the before you begin screen click next.

setup34

For installation type choose role based and click next.

setup35

select your server and click next.

setup36

Select the DHCP Server role.

setup37

and accept the required features by clicking add features.

setup38

for features accept the defaults and click next.

setup39

review the DHCP Server screen and click next

setup40

then click install and let the install complete and click close.

setup43

In the Server Manager dashboard up in the right hand corner by the task flag indicator you will see a yellow exclamation mark trying to get your attention. click it to open the task details and click the link “Complete DHCP configuration”. This will open the DHCP Post-Install configuration wizard.

setup44

Review the first window and click next.

setup45

Select “Use the following user’s credentials” and click commit

setup46

review the summary and click close.

setup47

Now go to Server Manager tools and open the DHCP manager. Right click the IPv4 node and select “New Scope” from the menu.

setup49

This will start the “New Scope Wizard” click next.

setup50

Name your scope, I chose bimpression-lan, and give it a short description.

setup51

Enter the IP info for your network from part 1 of this tutorial. Our start IP will be 192.168.10.1 and the end IP will be 192.168.10.254 with a class c subnet mask of 255.255.255.0 and click next.

setup52

In the next window we will add an exclusion range for IP’s that we don’t want the DHCP server to hand out. I would like to keep the first 90 IP addresses for other things like static IP’s so I’ll add the range of 192.168.10.1 – 192.168.10.89 to the excluded address range list and click next.

setup53

You can set the lease duration for the IP’s, I accepted the default and click next

setup54

Select Yes for configuring DHCP options and click next.

setup55

Enter the router info, in our case its 192.168.10.1 and click next.

setup56

On the next screen you can accept the defaults and click next.

setup57

Add the WINS Server and click next.

setup58

Select yes to activating the scope now and click next.

setup59

Click finish.

setup60

Now reboot the server and once rebooted log in and go back to the DHCP manager where you can review your new scope.

setup64

you can now start up your virtual client that we created in Part 2 of this tutorial and go to the cmd prompt and give an ipconfig /all command. you can see that it now has an IP address in the range that we set our DHCP server to hand out. the DNS sever is also listed correctly.

setup65

Now when you go back to your server with the client still running you can view it in the DHCP manager under address leases, you will see the Client01 pc in your domain.

setup66

Our next step will be to add the Client01 PC to the active directory domain. Stay tuned!

Setting Up a Virtual Network Lab with VMware Workstation and pfSense – Part 4 DNS and Active Directory

Now that we have a clean server install we can start adding roles for DNS and the Domain Controller. The first thing we must do is give the server a staticĀ IP address and a preferred DNS server. For the static IP I’ll use 192.168.10.10 and I’ll use a local DNS address of 127.0.0.1 since this server will act as the DNS server. Then reboot the server.

setup01

Once we have our IP set up we can start by adding the DNS role to the server. From the Server Manager dashboard choose “Add roles and Features” to start the Add Roles and Features Wizard.

setup03

Click next and under select installation type choose “Role based or feature based installation and click next.

setup04

in the Select destination server screen you should see the static IP that you set earlier. Highlight the server and click next.

setup05

You can now select the DNS server role.

setup06

and then add the default features that are needed for the DNS server role.

setup07

for the Features screen accept the defaults and click next.

setup08

then on the DNS Server window you can review the info and click next.

setup09

in the confirmation window click the install button.

setup10

You can see the installation of the role.

setup11

Once the installation is complete you can close the window and your DNS server role is installed. You can now go to server manager Tools and open the DNS Manager to prove the role has been installed successfully.

setup13

Now that we have the DNS role installed we can install our Active Directory Domain Services role. the steps are very similar to the once for installing the DNS role. From the Server Manager dashboard choose “Add roles and Features” to start the Add Roles and Features Wizard and click next.

setup14

accept the role based or feature based installation and click next.

setup15

Select your server from the list and click next.

setup16

select the Active Directory Domain Services from the server roles.

setup17

and under the add features that are requited for Active Directory Domain Services accept the defaults and click Add Features.

setup18

in the Features window accept the defaults and click next.

setup19

review the Confirmation window and click install.

setup20

When the installation is complete click close and notice that on the Server Manager dashboard you will see a yellow exclamation up in the right hand corner by the task flack. click that and you should see the task details where you can click the “Promote this server to a domain controller.

setup23

This will start the “Active Directory Domain Services Configuration Wizard”. in the Deployment Configuration windows choose “Add a new forest” and give it a Root domain name, I choose bimpression.com, and click next.

setup24

On the Domain Controller Options I accepted the defaults and entered a password for the DSRM and click next.

setup25

On the following screen you will get a warning which you can ignore for now and click next.

setup26

Under additional options enter a NetBIOS name and click next

setup27

in the paths screen choose the paths you want, I accepted the defaults and click next

setup28

review the options and click next.

setup29

Windows will run a prerequisites Check, let it finish and it should be successful with a few warnings. go ahead and click install.

setup30

Once installed the server will reboot automatically. on the log in screen notice that you are now logging in to the domain that you have created.

setup32

once logged in you can go to the Server Manager tools and you will see the active directory tools that are now available to you.

setup33

We now have our server set up as a DNS Server and a Domain controller but we also need a DHCP server on our virtual private network and we will install that role in part 5 of this tutorial so stay tuned!

Setting Up a Virtual Network Lab with VMware Workstation and pfSense – Part 3 the server

In part 3 of this tutorial I’ll set up a virtual Windows 2012 R2 server that will act as our DNS server, Domain Controller and a DHCP Server for our virtual private network. The server install is pretty straight forward and I won’t go into much detail. So here we go. First we’ll create another typical virtual machine.

server01

Once again choose to install the operating system later.

server02

Select Microsoft Windows version Windows Server 2012 for the operating system.

server03

Name the virtual machine and choose a location for it.

server04

Then choose the disk capacity, I kept the defaults.

server05

no we need to customize the hardware and change the network adapter to use our custom virtual network we created in part 1 of this tutorial.

server06

server07

now drop the windows server install media into the dvd drive by browsing to the iso image.

server08

We can now start the virtual machine and install the software. The following screens will show the install progress.

server09
Language and keyboard selection
server10
Install now
server11
Choose the version of the server (choose one with a GUI)
server12
Accept the license terms
server13
Choose custom install
server14
Select the partition to install to.
server15
Let the install happen
server16
Once installed choose an admin password and reboot.
server17
Once rebooted, send a Ctrl+Alt+Delete to the machine to get to the login screen.
server18
Log in with the admin password that you created
server19
Choose yes to automatically connect to devices on your network.
server20
Change name of sever to something meaningful (I chose Server01) and set the time and time zone.

We now have a brand new server. As you can see it cant find a DNS server and isn’t getting a proper IP address. I part 4 we will take care of this so stay tuned!

server21

Setting Up a Virtual Network Lab with VMware Workstation and pfSense – Part 2 the client

In part 2 of this tutorial we’ll add a Windows 7 client to our virtual network. The client will be added to the Active Directory once that is set up in a future part of this tutorial. So lets create another virtual machine. Here we can accept the default “Typical (recommended)” radio button.

win01

We’ll install the operating system later.

win02

Select Microsoft Windows for operating system and Windows 7 x64 for the version.

win03

Name the client whatever you like, I named mine Windows 7 Client 01 and choose a location where you want to save this virtual machine.

win04

I’ll leave the maximum disk size at 60GB and split the disk into multiple files.

win05

Next, we need to customize the hardware of the virtual machine.

win06

I’ll change the network adapter to Custom and choose the VMnet11 that we created in part 1 of this tutorial.

win07

then we’ll drop the windows 7 install media into the dvd drive by selecting the “new CD/DVD” and then setting the “Use ISO image file:” to the location of the windows 7 iso image.

win08

we can now start our virtual machine and go through the standard procedure of installing a windows 7 machine. The following screen shots will show this sequence.

win09
choose language and keyboard layout
win10
Install windows now
win11
Setup is starting
win12
choose version of windows
accept license terms
accept license terms
win14
Choose partition where to install windows
win15
Installing…
win16
Add machine info
win17
set password if so desired
win18
set time and time zone
win19
set network location
win20
finish installing and reboot

Once windows is installed and rebooted we can run a ipconfig /all command from the cmd prompt and we’ll see that the machine can’t find a DNS server and isn’t receiving an IP from a DHCP server. We’ll set his up in a future part of this tutorial.

win21

Up next, we’ll set up the virtual server, stay tuned for part 3!

Setting Up a Virtual Network Lab with VMware Workstation and pfSense – Part 1 the router

In this part I’ll create a new pfSense virtual machineĀ that will act as our router. It will have two NIC’s, one for the WAN and the other for the LAN that our virtual network will use to keep itself on its own private network. The first thing we have to do is create a new custom virtual network in VMware Workstation by going to Edit > Virtual Network Editor… and then click on Add Network… select a network to add from the dropdown list (I selected VMnet11) and click OK, under VMnet Information check the Host-only radio button and make sure that everything else is unchecked. You can leave the Subnet IP and Subnet mask to whatever VMware has given you.

Virtual Network Editor

Now we can create the pfSense virtual machine. Click “Create a New Virtual Machine” on the VMware Workstation home screen.

VMware Workstation Home Screen

Select “Typical (recommended) from the Welcome to the New Virtual Machine Wizard screen.

Welcome to the New Virtual Machine Wizard

Select “I will install the operation system later.” radio button and choose Next.

Guest Operating System Installation

Select “Other” for the Guest operating system and choose FreeBSD from the version dropdown.

Select a Guest Operating System

In the next screen you can name your virtual machine and choose its location. I named mine pfSense.

Name the Virtual Machine

Next, you can specify the disk capacity of the virtual machine, I kept the defaults.

Specify Disk Capacity

Now we have to customize the hardware of the virtual machine, click the “Customize Hardware…” button.

Ready to Create Virtual Machine

Select the Network Adapter and change it to “Bridged: Connected directly to the physical network”.

Hardware

Now add an other network adapter by clicking Add… and the choosing Network Adapter.

Add Hardware Wizard

Change the newly added Network Adapter connection type to the Custom one we added at the start of this post.

Network Adapter Type

Hardware

now drop the pfSense iso into the DVD by selecting the DVD drive and then selecting the “Use ISO image file:” radio button and browsing to the location of the pfSense iso.

Hardware

We can now start the virtual machine and it will start installing pfSense.

pfSense Install

let it do its thing until you get to the following screen and press “I” to launch the installer. you have 10 seconds to do this.

pfSense Install

Choose “Accept these Settings” and hit enter.

pfSense Install

Choose the “Quick/Easy Install” and hit enter.

pfSense Install

Confirm the “Are you Sure?” screen.

pfSense Install

Choose the “Standard Kernel”.

pfSense Install

And then reboot.

pfSense Install

Once the machine has rebooted you can set the IP that you want to use for your network. Choose option number 2.

pfSense Install

Choose your LAN interface by choosing 2 once again.

pfSense Install

Enter the IP that you want to use. I chose 192.168.10.1

pfSense Install

Now enter the subnet bit count. I chose 24 for a class c network.

pfSense Install

for the next screen just hit ENTER.

pfSense Install

in the next screen also hit ENTER

pfSense Install

Choose no to enable the DHCP server. We are going to let the windows server hand out IP addresses and don’t want the router to do this.

pfSense Install

Choose no to revert to HTTP as the webConfigurator protocol.

pfSense Install

Press ENTER to continue.

pfSense Install

You now have a virtual machine that will act as our network router with a WAN nic for internet access and a LAN nic for our private network.

pfSense Install

In Part 2 we will add a Windows 7 virtual machine to act as one of our clients in the network, stay tuned!