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 192.168.230.0 netmask 255.255.255.0 {
option routers 192.168.230.1;
pool {
failover peer "dhcp-failover-peers";
allow members of "ipad";
range 192.168.230.41 192.168.230.80;
}
pool {
failover peer "dhcp-failover-peers";
deny members of "ipad";
range 192.168.230.81 192.168.230.120;
}
}
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.)
78:ca:39
7c:6d:62
c8:bc:c8
d8:a2:5e
e8:06:88
Thank you very much to all of the kind folks who made suggestions! It
was very much appreciated and it really helped me out.
Bob
More information about the dhcp-users
mailing list