IT and security stuff

Simulating an AD environment 1

Scenario:

We are a Network manager for a McDonald restaurant. There are 8 employees with computers, 2 cash registers and a WiFi Network. The restaurant has a capability of 90 customers.

Our task is to create a DHCP server for this environment

Main pool:

  • Must be named McDonald
  • Must have 100 addresses available
  • 30 minutes leases. Clients need premium to use over 30 minutes,
  • Create exclusion rules inside the pool for our staff and registers
  • Default Gateway : 192.168.1.1
  • DNS : 192.168.1.10

Configure reservation rules for the following hosts:

  • CAISSE-3215 :44-61-55-6C-5A-77 IP address: 192.168.1.29
  • CAISSE-SERVICE-AU-VOLANT : A9-63-1B-38-8E-58 IP address: 192.168.1.30

Extras:

  • The server must be named server and will host the pool
  • Create a client machine named client. Must be connected to the domain osullivan.local. We will use this machine to test the DHCP pool and the DNS lookup.

Walk-through:

First step is to create our server machine and our client machine. For this exercise we will use windows server 2019 and Windows 10 Pro Education as our client.

Once the Windows installation are done, let’s install VMware tools.
make sure to change the server machine name to server and reboot

Ok, now we want to configure our Ethernet settings on our server

Now we want to add our AD DNS and DHCP roles

First we need ton install AD services and DNS Server
Once the setup completed, click on “Promote this server to a domain controller”
Create a new forest and name it osullivan.local, click next, set a password and install all requirements. Then it should reboot.
We can now see that the domain was successfully created!

Same as always, next, next, install.
Click complete DHCP configuration and reboot.

Now time to setup DHCP as requested in the scenario.

Right click IPv4 in your server and create a New Scope
We create the pool from 11 to 100
Add the exclusion for our staff and registers
30 minutes lease duration. and then click next.
Add the gateway address
Add the DNS settings

Finally activate the scope. Now it’s time to add the reservation rules for the registers.

Done!

Now we can proceed with the client configuration. This will simulate a client joining and we will test the DHCP and DNS functions.

This client must be on the same network as your server. I chose vmnet6
For this client i decided to go with Windows 10 Pro Education. Finish installation and install VMware tools too

Once installed, connect to your client machine. At this point you should see the server has assigned an IP address to this client machine.

This means DNS and DHCP are working as intended!
Back to the client machine, let’s rename it Client and reboot.

If we refresh the Addresses Leases in our server we can see the name of the client is successfully changed and our expiration is effective.

Now one last step to try out the DNS.

Success!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.