Set Up DHCP Lab - Zacham17/my-tech-journal GitHub Wiki
Brief Summary
In this lab, I set up the Linux Virtual Machine(called dhcp01) as a DHCP server. I then set up the workstation VM to use the DHCP server to get its IP addresses.
Notes
PuTTy was used in this lab to remotely connect the dhcp01
DHCP was installed on dhcp01 using the command, sudo yum install dhcp.
I used the vi text editor to edit the DHCP configuration file, which has the filepath /etc/dhcp/dhcpd.conf
A complication that I encountered during this lab was when editing the DHCP configuration file, as I forgot to put in a semicolon the first time I edited the file, so when I tried to run DHCP, it failed. I resolved the issue by adding a semicolon where it was needed and DCHP then started without any issues.
After successfully configuring DCHP, I changed the network adapter options on the workstation VM(wks01) to use DHCP to attain an IP address, default gateway, and DNS Server address.
New Terms/Steps
In this lab, the process of setting up a DHCP server on a linux based system was new to me, and I learned about the various processes you go about doing so.
I also learned about various commands in this lab and got a little more familiar with PuTTy than I already was.
Some new commands I used were:
firewall-cmd : I used this command in combination with various options such as --add-service=dhcp and --permanent to configure the firewall to allow DHCP requests.
systemctl : This command is used to control the systemd system and service manager. In this lab I used the systemctl command to start the dhcp service and to check the status of the dhcp service while it was running.
grep : This command searched for a string in a group of files.
A question that I thought of during this lab was, "What are the benefits of running a DHCP server on a linux-based operating system and are there any cons as well?"