Lab 04 | DHCP - kerryallen89/SYS-255-01 GitHub Wiki
Lab 04 | DHCP
Deliverables
Deliverable 1. Take a snapshot of the results of ipconfig /all. Note the DHCP server of 10.0.5.3 should be there, your IP address should be the first IP address in the scope you set earlier. Your domain name, netmask and gateway should also be set correctly.
After configuring my installing and configuring the DHCP service on Firewalld, I was able to allow my wks01-kerry server to use dynamic addressing rather than using static addressing. I did run into an error in which I listed my domain name as "hermoine.local" which obviously was the default that the assignment didn't want us to do. I first tried to look up how to delete the DHCP service completely, but decided not to do that as I didn't know what would happen. So I went back to the dhcpd.conf file and changed the domain name "hermione.local" to "kerry.local", at first it didn't work until I restarted firewalld, restarted wks01-kerry and logged back into kerry.allen-adm. After all that, it finally worked and changed my domain name to kerry.local.
Deliverable 2. Log back into dhcp01 and find the DHCP log associated with wks01's request for DHCP information. Take a snapshot similar to the one below. The IP address, the workstation name, the layer 2 address should all match between deliverables 1 and 2.
After running the command "sudo cat /var/log/messages | gre wks01-kerry" inside of my dhcp01-kerry server, this command outputs a log of requests for DHCP information on wks01-kerry. This screenshot includes the IP address used (a 10.0.5.1.. address and in this case is 10.0.5.101), the layer 2 address which is the MAC address, and the workstation name which is wks01-kerry.
Deliverable 3. Provide a screenshot similar to the one below that shows the 4 Key DHCP Messages.
After performing a release and renew of my DHCP by using the commands "ipconfig /release" and "ipconfig /renew" I was able to capture the traffic through Wireshark. After filtering the capture packets to just show UDP packets captured on port 67 by using the display filter "udp.port==67" I was given 5 packets. These packets were key DHCP messages which shows the process of releasing, renewing and the computer acknowledging that the interaction had gone on.
Deliverable 4. Figure out how to change the default lease time given to DHCP clients to 1 hour with a max lease time of four hours. Provide a screenshot displaying the new configuration, along with the shot confirming the change.
To change the lease time, I added two lines within /etc/dhcp/dhcpd.conf which were “default-lease-time 3600;” and “max-lease-time 14400;”. The value 3600 is the number of seconds in an hour and 14400 is the number of seconds in 4 hours. After setting the default and max lease time, I refreshed the services and rebooted the windows client, as well as releasing and renewing my IP address.
This next screenshot shows that I can ping the DHCP server and the lease time is shown when I perform ipconfig /all.