FW: DHCP Leases not updating
Lowrie, Paul
paul.lowrie at nz.unisys.com
Tue Jan 29 00:23:26 UTC 2008
Hi Folks,
"man omshell" says I should be able to adjust some of the information
about a lease, actually
in the man pages uses the client-hostname in the example but I have
found that this just
doesn't seem to work:
DHCP version is 4.0.0 in a paired configuration.
A PC was installed with dynamic assignment. It was Orin ally called
hwkp401 at the time it obtained the lease.
Some time after that the name was changed (DHCP host entry removed and
re-entered with the same MAC address)
to wcpc005.
Is there any reason I cannot do this:
server 10.0.0.200
port 7911
key mydhcpkey "WY7bgJ[snip]as3=="
connect
new lease
set ip-address = 10.35.5.194
open
set client-hostname = "wcpp005"
update
refresh
close
Here's what I get back:
> > > > obj: <null>
> obj: lease
> obj: lease
ip-address = 0a:23:05:c2
> obj: lease
[[ following segment is whats returned on "open" ]]
ip-address = 0a:23:05:c2
state = 00:00:00:02
dhcp-client-identifier = 01:00:08:02:83:90:20
client-hostname = "hwkp401"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 00:08:02:83:90:20
hardware-type = 00:00:00:01
ends = 47:9f:4a:16
starts = 47:9e:4c:f6
tstp = 47:9f:c8:a6
tsfp = 47:9d:f7:ab
atsfp = 47:9d:f7:ab
cltt = 47:9e:4c:f6
flags = 00
ddns-fwd-name = "hwkp401.[snip]"
ddns-txt = "31a5506b7ddee17a27bf5f304ae58f1c45"
ddns-rev-name = "194.5.35.10.in-addr.arpa."
[[ following segment is whats returned on "set client-hostname" ]]
[[ looks good ]]
> obj: lease
ip-address = 0a:23:05:c2
state = 00:00:00:02
dhcp-client-identifier = 01:00:08:02:83:90:20
client-hostname = "wcpp005"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 00:08:02:83:90:20
hardware-type = 00:00:00:01
ends = 47:9f:4a:16
starts = 47:9e:4c:f6
tstp = 47:9f:c8:a6
tsfp = 47:9d:f7:ab
atsfp = 47:9d:f7:ab
cltt = 47:9e:4c:f6
flags = 00
ddns-fwd-name = "hwkp401.[snip]"
ddns-txt = "31a5506b7ddee17a27bf5f304ae58f1c45"
ddns-rev-name = "194.5.35.10.in-addr.arpa."
[[ following segment is whats returned on "update" ]]
[[ note - it looks like the name changed OK ]]
> obj: lease
ip-address = 0a:23:05:c2
state = 00:00:00:02
dhcp-client-identifier = 01:00:08:02:83:90:20 client-hostname =
"wcpp005"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 00:08:02:83:90:20
hardware-type = 00:00:00:01
ends = 47:9f:4a:16
starts = 47:9e:4c:f6
tstp = 47:9f:c8:a6
tsfp = 47:9d:f7:ab
atsfp = 47:9d:f7:ab
cltt = 47:9e:4c:f6
flags = 00
ddns-fwd-name = "hwkp401.[snip]"
ddns-txt = "31a5506b7ddee17a27bf5f304ae58f1c45"
ddns-rev-name = "194.5.35.10.in-addr.arpa."
[[ following segment is whats returned on "refresh" ]]
[[ client-hostname didnt actually change on the server at all ]]
> obj: lease
ip-address = 0a:23:05:c2
state = 00:00:00:02
dhcp-client-identifier = 01:00:08:02:83:90:20
client-hostname = "hwkp401"
subnet = 00:00:00:03
pool = 00:00:00:04
hardware-address = 00:08:02:83:90:20
hardware-type = 00:00:00:01
ends = 47:9f:4a:16
starts = 47:9e:4c:f6
tstp = 47:9f:c8:a6
tsfp = 47:9d:f7:ab
atsfp = 47:9d:f7:ab
cltt = 47:9e:4c:f6
flags = 00
ddns-fwd-name = "hwkp401.[snip]"
ddns-txt = "31a5506b7ddee17a27bf5f304ae58f1c45"
ddns-rev-name = "194.5.35.10.in-addr.arpa."
> obj: <null>
>
Running this and watching the dhcp.leases reveals a nice refreshed entry
lease appended to the file but none of the detail changed...
Any help would be greatly appreciated.
Thanks
Paul:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20080129/33ad1a57/attachment.html>
More information about the dhcp-users
mailing list