[asterisk-users] Polycom SIP and DHCP problem

Lyndon Griffin
Mon, 09 Jun 2008 19:29:50 -0000

Apologies - I know this isn't either Polycom or ISC support, but if
anyone would have an answer to my problem, I'm certain they would be on
this list.

I'm experiencing odd behavior with Polycom handsets obtaining DHCP
addresses.  It always worked fine for me up until a few months ago.
Unfortunately, I can't narrow down when it stopped working, or why.  All
my Polycoms now appear to ignore my DHCP server entirely, according to
the following pattern:

Polycom -> DHCPDISCOVER
Server -> DHCPOFFER on the correct network
Polycom -> DHCPREQUEST on the wrong network
Server -> DHCPNAK
Polycom -> Rinse, repeat ad infinitum


Here's some dumps of the DHCP packets:

DHCP Discover by a  Polycom:
0000  ff ff ff ff ff ff 00 04  f2 02 c1 38 08 00 45 00   ........ ...8..E.
0010  02 40 5f 08 40 00 20 11  f9 a5 00 00 00 00 ff ff   . at _.@. . ........
0020  ff ff 00 44 00 43 02 2c  da 63 01 01 06 00 54 37   ...D.C., .c....T7
0030  4c c0 00 00 00 00 00 00  00 00 00 00 00 00 00 00   L....... ........
0040  00 00 00 00 00 00 00 04  f2 02 c1 38 00 00 00 00   ........ ...8....
0050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0110  00 00 00 00 00 00 63 82  53 63 35 01 01 39 02 02   ......c. Sc5..9..
0120  40 37 09 01 1c 03 42 04  2a 02 06 0f ff 00 00 00   @7....B. *.......
0130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0210  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0230  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0240  00 00 00 00 00 00 00 00  00 00 00 00 00 00         ........ ......


DHCP Offer by the server:
0000  ff ff ff ff ff ff 00 14  2a d1 b7 14 08 00 45 10   ........ *.....E.
0010  01 83 00 00 00 00 10 11  43 ab c0 a8 a5 07 ff ff   ........ C.......
0020  ff ff 00 43 00 44 01 6f  1b c8 02 01 06 00 54 37   ...C.D.o ......T7
0030  4c c0 00 00 80 00 00 00  00 00 c0 a8 a5 92 00 00   L....... ........
0040  00 00 00 00 00 00 00 04  f2 02 c1 38 00 00 00 00   ........ ...8....
0050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0110  00 00 00 00 00 00 63 82  53 63 35 01 02 36 04 c0   ......c. Sc5..6..
0120  a8 a5 07 33 04 00 00 54  60 01 04 ff ff ff 00 1c   ...3...T `.......
0130  04 c0 a8 a5 ff 03 04 c0  a8 a5 07 42 1a 67 67 67   ........ ...B.ggg
0140  67 67 67 2e 67 67 67 2e  67 67 67 67 67 67 67 67   ggg.ggg. gggggggg
0150  67 67 67 2e 63 6f 6d 04  08 c0 a8 a5 03 c0 a8 a5   ggg.com. ........
0160  02 2a 08 c0 a8 a5 03 c0  a8 a5 02 02 04 ff ff b9   .*...... ........
0170  b0 06 08 c0 a8 a5 03 c0  a8 a5 02 0f 13 67 67 67   ........ .....ggg
0180  2e 67 67 67 67 67 67 67  67 67 67 67 2e 63 6f 6d   .ggggggg gggg.com
0190  ff                                                 .



Polycom DHCP Request in ignorance of the previous offer:
0000  ff ff ff ff ff ff 00 04  f2 02 c1 38 08 00 45 00   ........ ...8..E.
0010  02 40 65 08 40 00 20 11  f3 a5 00 00 00 00 ff ff   . at e.@. . ........
0020  ff ff 00 44 00 43 02 2c  79 7a 01 01 06 00 4e 37   ...D.C., yz....N7
0030  4c c0 00 00 00 00 00 00  00 00 00 00 00 00 00 00   L....... ........
0040  00 00 00 00 00 00 00 04  f2 02 c1 38 00 00 00 00   ........ ...8....
0050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0110  00 00 00 00 00 00 63 82  53 63 35 01 03 32 04 c0   ......c. Sc5..2..
0120  a8 00 0a 36 04 c0 a8 00  01 39 02 02 40 37 09 01   ...6.... .9.. at 7..
0130  1c 03 42 04 2a 02 06 0f  ff 00 00 00 00 00 00 00   ..B.*... ........
0140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
01f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0210  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0230  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0240  00 00 00 00 00 00 00 00  00 00 00 00 00 00         ........ ......


DHCP server NAK:
0000  ff ff ff ff ff ff 00 14  2a d1 b7 14 08 00 45 10   ........ *.....E.
0010  01 48 00 00 00 00 10 11  43 e6 c0 a8 a5 07 ff ff   .H...... C.......
0020  ff ff 00 43 00 44 01 34  1a 11 02 01 06 00 4e 37   ...C.D.4 ......N7
0030  4c c0 00 00 80 00 00 00  00 00 00 00 00 00 c0 a8   L....... ........
0040  a5 07 00 00 00 00 00 04  f2 02 c1 38 00 00 00 00   ........ ...8....
0050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
00f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0100  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0110  00 00 00 00 00 00 63 82  53 63 35 01 06 36 04 c0   ......c. Sc5..6..
0120  a8 a5 07 38 1f 72 65 71  75 65 73 74 65 64 20 61   ...8.req uested a
0130  64 64 72 65 73 73 20 6e  6f 74 20 61 76 61 69 6c   ddress n ot avail
0140  61 62 6c 65 ff 00 00 00  00 00 00 00 00 00 00 00   able.... ........
0150  00 00 00 00 00 00



dhcpd.conf relevant portions (ISC dhcpd v3.0.7)
 >=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>authoritative;
ddns-update-style               ad-hoc;
always-broadcast        on;

class "Polycom"
{
       match if substring( hardware, 1, 3 ) = 00:04:f2;
}


subnet 192.168.165.0 netmask 255.255.255.0
{
        option routers          192.168.165.7;
        option subnet-mask      255.255.255.0;
        option domain-name-servers      192.168.165.3,192.168.165.2;
        default-lease-time              21600;
        max-lease-time                  43200;
        option ntp-servers              192.168.165.3,192.168.165.2;
        option broadcast-address        192.168.165.255;
        option time-offset              -18000;

        pool
        {
                allow members of "Polycom";
                range 192.168.165.100 192.168.165.149;
        }

}
 >=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=>=