Sa tingin ko di mo na kailangan ng database since may config file siya na puede mo dun na i-set. Example config below
# Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see lease at /var/lib/dhcp/dhcpd.leases
server-identifier xyx.company.com;
default-lease-time 172800;
max-lease-time 604800;
authoritative;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
# range dynamic-bootp 192.168.0.1 192.168.0.254;
# gateway
option routers 192.168.0.2;
# subnet mask
option subnet-mask 255.255.255.0;
# domain name given to client
option domain-name "company.com";
# the IP of your ISP's nameservers you're using
option domain-name-servers 8.8.8.8;
}
### Put all your MAC below that you wish to give a static IP ###
host a {
# PC#1
hardware ethernet 00:de:80
2f:af;
fixed-address 192.168.0.20;
}
#End of configuration
Notice yung line na "# range dynamic-bootp 192.168.0.10 192.168.0.254;" may marking na # it means di siya kasama sa config or in other words remarks lang siya.
Also that line gives the client PC's a dynamic IP, but since it is not in the config your DHCP server should not broadcast dynamic IP.
On the part where you will declare the static IP only the matching MAC address you record in the config file will have an IP.
Hope this helps.