From Fedora Project Wiki

Description

This test case ensures that the dhcp-common package is working as expected. It is designed to verify that the common files and utilities used by both DHCP clients and servers are functioning correctly.

Setup

  1. Install the version of Fedora that is to be tested on a bare metal or virtual system.
  2. Install the dhcp-common package using the command: sudo dnf install dhcp-common.

How to test

  1. Verify that the common DHCP configuration file (usually /etc/dhcp/dhclient.conf or /etc/dhcp/dhcpd.conf) exists.
  2. Verify that the common DHCP lease database file exists (usually in /var/lib/dhclient or a similar directory).
  3. Check the syntax of a sample DHCP configuration file using a command like dhcpd -t -cf /etc/dhcp/dhcpd.conf.

Expected Results

  1. The common DHCP configuration file exists and is readable.
  2. The common DHCP lease database file exists and is readable.
  3. The syntax check of the DHCP configuration file completes without error.

Optional

  1. Edit the DHCP configuration file to simulate various scenarios and observe how the DHCP client or server behaves with those configurations.
  2. Test the behavior of the DHCP client and server when the common files are missing or have incorrect permissions.