DHCP Server Setup
Objective
Hands-on practice with dhcp server setup in a network lab environment.
Tools & Technologies
isc-dhcp-serverdhcpdjournalctl
Key Commands
apt install isc-dhcp-serversystemctl start isc-dhcp-serverdhcp-lease-listjournalctl -u isc-dhcp-serverLab Steps
01
Install DHCP Server
Install and configure isc-dhcp-server on Ubuntu.
02
Configure Scope
Define subnet, range, gateway, and DNS in /etc/dhcp/dhcpd.conf.
03
Static Leases
Configure static IP assignments based on MAC address.
04
Verify Leases
Check active leases in /var/lib/dhcpd/dhcpd.leases.
Challenges Encountered
- DHCP server must not conflict with existing DHCP servers on the network
- Wrong interface binding prevents server from starting
Key Takeaways
- Static leases are useful for servers and printers
- Always reserve a range outside the DHCP pool for static devices