Putting iPads in their own IP pool?

Miroslav Lauš mirek at admino.cz
Fri Oct 8 19:06:53 UTC 2010


On Oct 8, 2010, at 9:01 PM, Alan Buxey wrote:

> Hi,
>> Mirek Lauš wrote:
>>> Dave Brenner wrote:
>>>> Try...
>>>> class "ipad" {
>>>>  match if ((substring(hardware,1,3) = c8:bc:c8) or
>>>>            (substring(hardware,1,3) = d8:a2:5e));
>>>> }
>> 
>> Ooo!  Good!
>> 
>>> better:
>>> class "ipad" {
>>> match substring(hardware,1,3);
>>> }
>>> subclass "ipad" c8:bc:c8;
>>> subclass "ipad" d8:a2:5e;
>>> add as many subclass members as you want.
> 
> chasing MAC addresses can lead to ongoing pain - we used to do similar for
> eg cisco APs - can you not use the vendor class identifier for these?
> (do they always appear as a particular model?)
> 
> eg
> 
> class "device" {
>  match option vendor-class-identifier;
> }
> 
> subclass "device" "iPad" {
> }
> 
> ?

Unfortunetly, iPads does not identify itself using dhcp option 60:

betelgeuse:~ mirek$ sudo tcpdump -vvvv -s0 -ni en1 port 67 or port 68
Password:
tcpdump: listening on en1, link-type EN10MB (Ethernet), capture size 65535 bytes
21:05:24.485783 IP (tos 0x0, ttl 255, id 32365, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from d8:30:62:69:f4:16, length 300, xid 0x78ce490e, Flags [none] (0x0000)
	  Client-Ethernet-Address d8:30:62:69:f4:16
	  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    DHCP-Message Option 53, length 1: Request
	    Parameter-Request Option 55, length 6: 
	      Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
	      Option 119, Option 252
	    MSZ Option 57, length 2: 1500
	    Client-ID Option 61, length 7: ether d8:30:62:69:f4:16
	    Requested-IP Option 50, length 4: 172.16.16.3
	    Lease-Time Option 51, length 4: 7776000
	    Hostname Option 12, length 9: "beetlepad"
	    END Option 255, length 0
	    PAD Option 0, length 0, occurs 12

I do agree chasing MACs is a pain.

mirek

> 
> alan
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users




More information about the dhcp-users mailing list