Hi,
I am using 'reserved' flag on leases to give permanent IP addresses to some clients. Sometimes client changes the equipment (MAC address changes) but wants to continue using the same IP address as before.
Man page for dhcpd states, that possible actions for hardware-address field of the lease object are 'examine, update'. omshell allows me to change hardware address and does not complain when I issue update command, bet lease object does not change, and when the object is reopened I see, that hardware-address did not change. I've tried both version 4.2.5 (CentOS 7 x64) and 4.1.1 (Centos 6 i686) with the same result.
Also, tried changing hardware-address for reserved (flags=04:00:00:00) and non-reserved (flags=00) lease with no success.
Is there any way to change MAC address of the reserved lease (except editing dhcpd.leases manually)?
P.S. I need to be able to reserve IP inside dynamic range and support for the 'on events', so switching to fixed-address declarations won't help.
> set ip-address=192.168.0.100
obj: lease
ip-address = c0:a8:00:64
> open
obj: lease
ip-address = c0:a8:00:64
state = 00:00:00:02
dhcp-client-identifier = ff:27:58:3e:19:00:01:00:01:1c:e4:8c:b6:08:00:27:58:3e:19
client-hostname = "localhost"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 08:00:27:58:3e:19
hardware-type = 00:00:00:01
ends = 55:51:e5:71
starts = 55:51:d7:61
tstp = 00:00:00:00
tsfp = 00:00:00:00
atsfp = 00:00:00:00
cltt = 55:51:d7:61
flags = 00
> set hardware-address=00:de:ad:be:ef:00
obj: lease
ip-address = c0:a8:00:64
state = 00:00:00:02
dhcp-client-identifier = ff:27:58:3e:19:00:01:00:01:1c:e4:8c:b6:08:00:27:58:3e:19
client-hostname = "localhost"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 00:de:ad:be:ef:00
hardware-type = 00:00:00:01
ends = 55:51:e5:71
starts = 55:51:d7:61
tstp = 00:00:00:00
tsfp = 00:00:00:00
atsfp = 00:00:00:00
cltt = 55:51:d7:61
flags = 00
> update
obj: lease
ip-address = c0:a8:00:64
state = 00:00:00:02
dhcp-client-identifier = ff:27:58:3e:19:00:01:00:01:1c:e4:8c:b6:08:00:27:58:3e:19
client-hostname = "localhost"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 00:de:ad:be:ef:00
hardware-type = 00:00:00:01
ends = 55:51:e5:71
starts = 55:51:d7:61
tstp = 00:00:00:00
tsfp = 00:00:00:00
atsfp = 00:00:00:00
cltt = 55:51:d7:61
flags = 00
> refresh
obj: lease
ip-address = c0:a8:00:64
state = 00:00:00:02
dhcp-client-identifier = ff:27:58:3e:19:00:01:00:01:1c:e4:8c:b6:08:00:27:58:3e:19
client-hostname = "localhost"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 08:00:27:58:3e:19
hardware-type = 00:00:00:01
ends = 55:51:e5:71
starts = 55:51:d7:61
tstp = 00:00:00:00
tsfp = 00:00:00:00
atsfp = 00:00:00:00
cltt = 55:51:d7:61
flags = 00
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users