Putting iPads in their own IP pool?

Bob Proulx bob at proulx.com
Fri Oct 8 23:36:13 UTC 2010

Miroslav Lauš wrote:
> class "ipad" {
>   match if suffix(option host-name,4) = "iPad"
> }

After reviewing logs of what was already in use and the hostname
conventions here (will be different other places) I found that I
needed to ignore case.  I also wanted to avoid one locally interesting
case and so used two tests, one looking for an "-ipad" suffix and one
that looked for "ipad" lower casing both to avoid case differences.  I
ended up with the following that worked quite well.

class "ipad" {
  match if ((lcase(suffix(option host-name,5)) = "-ipad") or
            (lcase(option host-name) = "ipad"));
subnet netmask {
  option routers;
  pool {
    failover peer "dhcp-failover-peers";
    allow members of "ipad";
  pool {
    failover peer "dhcp-failover-peers";
    deny members of "ipad";

I wanted to mark this "solved" but using the hostname I realize is
just a works-for-me case but a good enough one for me here.  I might
still go back to chasing ethernet address.  If someone else decides to
try that then let me add the list of vendor bytes that I have seen
associated with the iPads here so far.  (And mirek reported d8:30:62.)


Thank you very much to all of the kind folks who made suggestions!  It
was very much appreciated and it really helped me out.


More information about the dhcp-users mailing list