In my setup (migrated from Centos 6 to Centos 7 without problems), at the end of
/etc/dhcp/dhcpd.conf there is line:

include "/etc/dhcp/dhcpd.static";

and I keep static addressiing in /etc/dhcp/dhcpd.static...

AFAIK, dhcpd uses the last line referencing the static address, so adding a new 
record in
/etc/dhcp/dhcpd.conf is de facto overridden by a record in a file referenced by 
"include" statement?

Good luck,

Petko



On 6/27/25 18:59, Nels Lindquist wrote:
On 2025-06-16 10:53 PM, Dave Close wrote:
I'm still trying to get away from Centos 6 but I have to get some
other things working first so the business keeps running. Now I'm
trying to get a new IP address for a Windows 10 PC. No matter what
I do, it continues to get the same old address.

The C6 DHCP server has a defined static IP address for this PC based
on its MAC address. I've deleted all references to the old address in
/var/lib/dhcpd/dhcpd.leases and restarted dhcpd. I've found a way to
get W10 to forget its old address and send DHCPDISCOVER to C6. But the
C6 server responds by offering the old address, not the defined static
address. Where is it keeping this old information?

What additional change do I need to make to the C6 DHCP server to get
it to forget the old address and respond properly to the discover
request?

DHCP static reservations with ISC dhcpd are configured in /etc/dhcp/dhcpd.conf.

Look for host entries with "hardware ethernet [mac address]" and "fixed-address 
[host/ip]" parameters.


--
Petko Alov

Department of QSAR & Molecular Modelling
Institute of Biophysics and Biomedical Engineering, BAS
105 G. Bontchev Str
1113 Sofia, BULGARIA

phone:  +359  2 9793647
mobile: +359 87 7294336
e-mail: petko.a...@biophys.bas.bg

_______________________________________________
Discuss mailing list -- discuss@lists.centos.org
To unsubscribe send an email to discuss-le...@lists.centos.org

Reply via email to