Linux Network Pro Setting Up a Linux DHCP Server Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 13 | Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What is the default DHCP server port number?

Explanation

DHCP servers listen for client requests on UDP port 67. Clients typically use UDP port 68 to receive responses.

Submit
Please wait...
About This Quiz
Linux Network Pro Setting Up A Linux DHCP Server Quiz - Quiz

This quiz evaluates your understanding of DHCP server configuration and management on Linux systems. You'll test knowledge of DHCP protocol fundamentals, ISC DHCP server setup, configuration files, lease management, and troubleshooting techniques. Essential for network administrators and Linux professionals managing enterprise network infrastructure.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. What is the purpose of the 'host' declaration in DHCP configuration?

Explanation

A `host` declaration identifies a particular DHCP client, typically by its MAC address, and can assign it a fixed IP address and specific settings. This lets the client receive the same address whenever it requests a lease, rather than an address chosen dynamically from the pool.

Submit

3. Which log file typically contains DHCP server messages on a Linux system?

Explanation

DHCP server messages are typically handled by the system’s logging service and recorded in the general system log. On many Linux distributions, this file is `/var/log/syslog`; on others, it is `/var/log/messages`. The exact location can vary by distribution and logging configuration, but these are the usual places to check.

Submit

4. What does the 'authoritative' statement in DHCP configuration indicate?

Explanation

The `authoritative` statement tells DHCP clients that this server is the definitive source for configuration on its subnet. It may respond with a DHCPNAK when a client requests an address that is invalid for that subnet, rather than waiting for another server to handle the request.

Submit

5. Which option provides DNS server addresses to DHCP clients?

Explanation

In DHCP configuration, `option domain-name-servers` specifies the DNS server IP addresses that the server provides to clients, enabling them to resolve domain names.

Submit

6. Which command checks the status of the ISC DHCP server?

Explanation

`systemctl status isc-dhcp-server` uses systemd to display the ISC DHCP server service’s current state, such as whether it is active, stopped, or failed, along with recent service logs. This is the standard command for checking the status of a systemd-managed service.

Submit

7. What does DHCPNAK indicate in DHCP communication?

Explanation

DHCPNAK is a negative acknowledgment sent by a DHCP server when it cannot approve a client’s request, such as when the requested IP address or configuration is invalid. The client must restart the address-acquisition process and request valid network settings.

Submit

8. Which parameter specifies the range of IP addresses available for DHCP assignment?

Explanation

The `range` parameter defines the starting and ending IP addresses that a DHCP server may lease to clients. It sets the pool of available addresses, ensuring assignments come from within the specified interval.

Submit

9. What is the purpose of a DHCP relay agent?

Explanation

A DHCP relay agent forwards DHCP messages between clients and servers on different network segments. Because DHCP client broadcasts typically do not cross routers, the relay passes requests to a DHCP server and returns its responses to the client’s subnet.

Submit

10. What does the 'option routers' directive specify in DHCP configuration?

Explanation

The `option routers` directive provides DHCP clients with the IP address of the router to use as their default gateway. This allows devices to send traffic destined for networks outside their local subnet through that router.

Submit

11. Which file stores DHCP lease information on a Linux server?

Explanation

The ISC DHCP server stores lease records in `/var/lib/dhcp/dhcpd.leases`. This file tracks which IP addresses have been assigned to clients, along with lease details such as client identifiers and expiration times. The server consults and updates it to manage address allocation, including after a restart.

Submit

12. What is the purpose of the dhcp-lease-time option in DHCP configuration?

Explanation

The `dhcp-lease-time` option sets how long a DHCP client may use an assigned IP address before the lease expires. The client must renew the lease to continue using the address; otherwise, it may be returned to the pool for another client.

Submit

13. What command starts the ISC DHCP server daemon on a systemd-based system?

Explanation

On a systemd-based system, `systemctl start isc-dhcp-server` asks systemd to start the ISC DHCP server service. The service unit name is `isc-dhcp-server` on systems that use this naming convention; the other options use legacy service commands or invalid syntax.

Submit

14. Which DHCP message is sent by the client to request an IP address?

Explanation

A client sends DHCPDISCOVER when it first joins a network and needs an IP address. This broadcast message searches for available DHCP servers. A server responds with DHCPOFFER, after which the client sends DHCPREQUEST to select and request the offered address.

Submit

15. In DHCP, what does DORA stand for?

Explanation

DORA describes the four-step DHCP process: a client broadcasts a Discover message, a server sends an Offer, the client makes a Request, and the server confirms the lease with an Acknowledge.

Submit

16. Which file contains the ISC DHCP server configuration on most Linux distributions?

Explanation

On most Linux distributions, the ISC DHCP server reads its main configuration from `/etc/dhcp/dhcpd.conf`. This file defines settings such as address pools, lease durations, and network options. The other paths are used for different network configuration purposes or are not the standard ISC DHCP server configuration file.

Submit

17. In DHCP, which message type is sent by the server to offer an IP address?

Explanation

After receiving a client’s DHCPDISCOVER broadcast, the server responds with a DHCPOFFER. This message proposes an available IP address and may include other network settings, such as the subnet mask, lease duration, and default gateway. The client can then request the offered address using DHCPREQUEST.

Submit

18. Which keyword defines a subnet in the DHCP configuration file?

Explanation

In a DHCP configuration file, `subnet` starts a declaration for a network and its subnet mask. This declaration can contain settings such as address ranges, lease parameters, and other options that apply to clients on that subnet.

Submit

19. What is the default DHCP client port number?

Explanation

DHCP clients use UDP port 68 to receive configuration messages from DHCP servers. Servers listen on UDP port 67, so the client and server use different ports to exchange DHCP requests and responses.

Submit

20. Which protocol does DHCP use at the transport layer?

Explanation

DHCP uses UDP at the transport layer, typically ports 67 and 68. UDP supports the broadcast messages a client may need to send before it has an IP address, and it avoids the connection setup required by TCP.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is the default DHCP server port number?
What is the purpose of the 'host' declaration in DHCP configuration?
Which log file typically contains DHCP server messages on a Linux...
What does the 'authoritative' statement in DHCP configuration...
Which option provides DNS server addresses to DHCP clients?
Which command checks the status of the ISC DHCP server?
What does DHCPNAK indicate in DHCP communication?
Which parameter specifies the range of IP addresses available for DHCP...
What is the purpose of a DHCP relay agent?
What does the 'option routers' directive specify in DHCP...
Which file stores DHCP lease information on a Linux server?
What is the purpose of the dhcp-lease-time option in DHCP...
What command starts the ISC DHCP server daemon on a systemd-based...
Which DHCP message is sent by the client to request an IP address?
In DHCP, what does DORA stand for?
Which file contains the ISC DHCP server configuration on most Linux...
In DHCP, which message type is sent by the server to offer an IP...
Which keyword defines a subnet in the DHCP configuration file?
What is the default DHCP client port number?
Which protocol does DHCP use at the transport layer?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!