From fda4f65a4b508a2374c16867f21ff066dc566946 Mon Sep 17 00:00:00 2001 From: pj1234678 <13920460+pj1234678@users.noreply.github.com> Date: Fri, 27 Oct 2023 20:03:39 -0700 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f4f9ea8..c501cb7 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,15 @@ const LEASE_NUM: u32 = 252; You can customize these configuration parameters according to your network requirements. + + +To create a "leases" file with the example permanent lease, you can manually create a file named "leases" in the same directory as the compiled program with the following content: + +f4:5c:89:bf:96:8d,192.168.2.90 + +This lease format specifies the MAC address and the corresponding IP address for the client. The DHCP server will read this file to assign permanent leases based on its contents. + + ## Contributions This DHCP server has been made possible with contributions from the open-source community, including valuable code from Richard Warburton. Feel free to contribute to this project and make it even better!