Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Re: Troubleshooting: no free leases (timeless) 2. Re: Troubleshooting: no free leases (timeless) ---------------------------------------------------------------------- Message: 1 Date: Fri, 21 Jul 2017 13:45:18 -0400 From: timeless <timel...@gmail.com> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Troubleshooting: no free leases Message-ID: <CAAKMeYjtrzscfoR5An2cZJCFK=s-w1ge_hwuqgs_iuszzao...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Bill Shirley wrote: My guess is your client is both a member of "win" and "wp" which, according to pool definitions, can't be satisfied. You were correct. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20170721/62f10974/attachment-0001.html> ------------------------------ Message: 2 Date: Fri, 21 Jul 2017 13:48:07 -0400 From: timeless <timel...@gmail.com> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Troubleshooting: no free leases Message-ID: <CAAKMeYhR6Twqy9-iWd6bycibJ4m=k0xaiervmuwsagoy_jy...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Bill Shirley wrote: Also, I don't think your "nes" class will ever match. You're comparing the hardware address to a string. Here's a snippet that might be useful: # ------------------------------------------------------------ ------------------ class "Apple_PC" { match if ( substring(hardware, 1,3) = 38:c9:86 or substring(hardware, 1,3) = 00:26:08 ); } # ------------------------------------------------------------ ------------------ # ------------------------------------------------------------ ------------------ class "mobile_device" { match if ( option host-name ~~ "dhcpcd" or option host-name ~~ "android" or option host-name ~~ "iphone" or option host-name ~~ "iphone-2" or option host-name ~~ "ipod" or option host-name ~~ "ipad" ); # for those devices using the default name: if (lcase(option host-name) = "iphone") { ddns-hostname = concat("iPhone-", binary-to-ascii(16, 8, "", substring(hardware, 4, 3))); } if (lcase(option host-name) = "iphone-2") { ddns-hostname = concat("iPhone2-", binary-to-ascii(16, 8, "", substring(hardware, 4, 3))); } if (lcase(option host-name) = "ipod") { ddns-hostname = concat("iPod-", binary-to-ascii(16, 8, "", substring(hardware, 4, 3))); } if (lcase(option host-name) = "ipad") { ddns-hostname = concat("iPad-", binary-to-ascii(16, 8, "", substring(hardware, 4, 3))); } } # ------------------------------------------------------------ ------------------ Yeah, the NES thing was a poor and untested attempt. Thanks, I've adapted both of your suggestions here. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20170721/9630c3b7/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 105, Issue 22 *******************************************