<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    It seems that you assign only reserved addresses. Did you simply try
    to lower <br>
      default-lease-time 14400;
    <br>
      max-lease-time 172800;
    <br>
    <br>
    to, let's say 10 mn at most (time to switch to another building and
    reconnect)<br>
    then, the previous lease shall be freed...<br>
    <br>
    -------- Message original --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th nowrap="nowrap" align="RIGHT" valign="BASELINE">Sujet: </th>
          <td>Re: How can I configure a DHCP server to assign addresses
            based on the OS that is running Solved maybe!</td>
        </tr>
        <tr>
          <th nowrap="nowrap" align="RIGHT" valign="BASELINE">Date : </th>
          <td>Sat, 15 Jan 2011 13:51:19 -0800</td>
        </tr>
        <tr>
          <th nowrap="nowrap" align="RIGHT" valign="BASELINE">De : </th>
          <td>Marc Chamberlin <a class="moz-txt-link-rfc2396E" href="mailto:marc@marcchamberlin.com"><marc@marcchamberlin.com></a></td>
        </tr>
        <tr>
          <th nowrap="nowrap" align="RIGHT" valign="BASELINE">Répondre
            à : </th>
          <td><a class="moz-txt-link-abbreviated" href="mailto:marc@marcchamberlin.com">marc@marcchamberlin.com</a>, Users of ISC DHCP
            <a class="moz-txt-link-rfc2396E" href="mailto:dhcp-users@lists.isc.org"><dhcp-users@lists.isc.org></a></td>
        </tr>
        <tr>
          <th nowrap="nowrap" align="RIGHT" valign="BASELINE">Pour : </th>
          <td><a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>Hello -  I am going to pick up on a thread that I started last summer so 
as to give anyone who wants the context an opportunity to review and 
refresh themselves on the issues I am facing. Basically, I am trying to 
support dual and triple boot laptops with multiple OS's and multiple 
network interface capabilities (wireless v.s. wired), and I need to be 
able to assign these laptops a fixed IP address that is based on the OS 
that is currently running on them, regardless of what network interface 
is being used by the laptop. (the purpose behind this is so that our 
backup server can identify how to back up a laptop and reach that laptop 
via a known IP address) After a lot of discussion on this mail list, we 
reached a possible working solution and I will recap it (reshow what I 
summarized previously) below to show how the dhcpd.conf file was 
configured to manage one of these laptops (mine).

OK now for the problem, which was an unforeseen wrinkle, but users being 
users will discover em, and of course complain... If a user switches the 
network interface from one to another, while remaining with the same OS, 
then the dhcpd server will refuse to assign (actually reassign) the 
appropriate IP address to that laptop. (This happens a lot when a user 
takes his/her laptop to another building, out of range of our wireless 
AP) Since the dhcpd server thinks that the IP address for that laptop as 
already been assigned, to the wireless interface, and the user is now 
trying reboot and get an IP address assign via the wired interface, 
(which we want to be the SAME IP address) the dhcpd server fails to 
reassign the IP address until it's old lease expires.

So, anyone got any ideas on how to solve this new wrinkle? Thanks in 
advance for any and all offers of help, much appreciated?

     Marc Chamberlin...


---
>
> class "marcslaptop_Vista_Class" {
>    match if ((substring(option vendor-class-identifier, 0, 4) = 
> "MSFT") and
>             ((ucase(binary-to-ascii(16, 8, ":", substring (hardware, 
> 1, 6))) = ucase("0:1a:73:55:7d:f")) or
>              (ucase(binary-to-ascii(16, 8, ":", substring (hardware, 
> 1, 6))) = ucase("0:16:36:c2:65:a4"))));
>    log (info, "marcslaptop_Vista_Class matched");
> }
>
> class "marcslaptop_Linux_Class" {
>    match if ((substring(option dhcp-client-identifier,1,11) = 
> "marcslaptopLinux") and
>             ((ucase(binary-to-ascii(16, 8, ":", substring (hardware, 
> 1, 6))) = ucase("0:1a:73:55:7d:f")) or
>              (ucase(binary-to-ascii(16, 8, ":", substring (hardware, 
> 1, 6))) = ucase("0:16:36:c2:65:a4"))));
>    log (info, "marcslaptop_Linux_Class matched");
> }
>
> subnet 192.168.2.0 netmask 255.255.255.0 {
>   default-lease-time 14400;
>   max-lease-time 172800;
>   pool {allow members of "marcslaptop_Linux_Class"; range  192.168.2.10;}
>   pool {allow members of "marcslaptop_Vista_Class"; range  192.168.2.15;}
>   pool {
>         deny members of "marcslaptop_Linux_Class";
>         deny members of "marcslaptop_Vista_Class";
>         deny known-clients;
>         allow all clients;
>         range 192.168.2.101 192.168.2.199;}
> }
>

_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>

</pre>
  </body>
</html>