I have been tooling with a dhcpd server that i have been setting up for, well, for the general excitement of it i guess.
I have a bunch of different configurations.
I have noticed that fixed-address records do not log into the dhcpd.leases
file.
Is there a way to log them? I would like to be able to tell which clients are active.
I understand that these are somewhat analogous to BOOTP entries, and thus since they are always reserved for that MAC address or host identifier, it doesn't matter if they are used or not (thus perhaps unnecessary to log). But i would like to see them ... now they are being used as DHCP address by the client and they are logging in syslog (as are the truly dynamic entries)
Jun 26 12:14:56 test dhcpd[8921]: DHCPREQUEST for 192.168.1.100 from aa:aa:aa:aa:aa:aa via eth0
Jun 26 12:14:56 test dhcpd[8921]: DHCPACK on 192.168.1.100 to aa:aa:aa:aa:aa:aa via eth0
I could grep for fixed-address in the dhcpd.conf
file, associate that with the mac-address and the host identifier and then continually monitor the messages file ... but it would be so much easier just to check the dhcpd.leases
file.