<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
You might try getting the Windows machine to release its lease on
shutdown (outside the subnet):<br>
<font color="#993300"><tt>#
<a class="moz-txt-link-freetext" href="https://msdn.microsoft.com/en-us/library/cc227278.aspx">https://msdn.microsoft.com/en-us/library/cc227278.aspx</a>
release-lease-on-shutdown<br>
option space Win2k;</tt><tt><br>
</tt><tt>option Win2k.release-lease-on-shutdown code 2 = unsigned
integer 32; # use 0 to disable, 1 to enable</tt><tt><br>
</tt></font><br>
and then in the pool:<br>
<font color="#993300"><tt> vendor-option-space Win2k;<br>
option Win2k.release-lease-on-shutdown 1; # enable</tt><tt><br>
</tt></font><br>
Bill<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/1/2016 6:25 AM, Miloslav Hůla
wrote:<br>
</div>
<blockquote
cite="mid:784c5fbd-bbf3-82e3-f539-fa2ef9fbdada@gmail.com"
type="cite">Hi,
<br>
<br>
we are running VMware platform with virtual desktops (VDI) with
Windows 7/8.1/10. We are dealing with fixed address asignment by
ISC DHCP Server (4.3.1-6+deb8u2 Debian Jessie) to stations
generated with random MAC addresses.
<br>
<br>
The basic steps are following:
<br>
<br>
1) prepare a golden image (the source Windows machine)
<br>
2) generate the pool of windows desktops based on the golden
<br>
<br>
Let's say, we are creating a pool of 50 office desktops. We are
telling to VMware: "Create office-01 to office-50 from golden".
The process for every new station is:
<br>
<br>
a) Take golden with known MAC1 and hostname 'golden'.
<br>
b) Clone golden. The result is a windows machine with new random
MAC2, but hostname is still 'golden'.
<br>
c) Boot up new machine and run customization scripts. The result
is the hostname is changed to 'office-01'.
<br>
d) Reboot machine (and run some other scripts)
<br>
e) Power off the machine. It's done.
<br>
<br>
We are assigning IP addresses by making classes based on host-name
option matching.
<br>
<br>
The problem is, that in step b) we have machine with hostname
'golden' and MAC2. So, DHCP server creates a lease for it from
dynamic range. Then machine reboots and have hostname 'office-01'
and still MAC2 in steps c) and d). Now we need to assign fixed IP
by hostname, but there is already lease for it and DHCP server
offers this one.
<br>
<br>
My question is, is there some kind of prefences we could do? I
read in manual that priorities are host, class, pool, subnet,
shared-network.
<br>
<br>
I read in manual about "host-identifier option option-name
option-data" but it is for DHCPv6. Or it is not? Because I found
some posts in this list pointing to DHCPv4 too.
<br>
<br>
And another questions, possibly not so related. We are running
separated DHCP server for VDI. And we have a two next DHCP servers
in fail-over mode for the rest of the network. The whole network
has about 130 subnets and 100 VLANs. We would like to merge VDI
DHCP server with the two others. The question is, the host-name
matching must work only for VDI VLAN. If I understand manual
correctly, class declarations are global. Could it be done by
subclasses?
<br>
<br>
And the last question. How DHCP server handles requests from DHCP
relay? In log we can see:
<br>
<br>
- via eth0
<br>
- via eth1
<br>
- via 10.70.0.1
<br>
<br>
I guess, that server fetches current eth0 or eth1 IP addresses and
match the subnets according to. Is it the same for the relay?
Subnet is matched by the relay IP address?
<br>
<br>
<br>
Thank you very much and sorry for such long post. We have done
some "working" configuration but every body is affraid to make
some change, because no one of us really knows how it works :)
<br>
<br>
Kind regards, Milo
<br>
_______________________________________________
<br>
dhcp-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
<br>
</blockquote>
<br>
</body>
</html>