Question: why dhcp server is required?
Answer: The main purpose of DHCP is to automate the management and configuration IP addresses across a network, so that IPs don't need to be manually assigned by an admin each time a device connects. DHCP is also responsible for the configuration of domain name server (DNS) and subnet masks, as well as default gateways.