cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
924
Views
0
Helpful
1
Replies

spa922 dhcp option error

Cisco 881 Router config:

...

ip dhcp excluded-address 10.1.0.129 10.1.0.130

!

ip dhcp pool PHONES

   network 10.1.0.128 255.255.255.192

   domain-name blabla.com

   dns-server 10.0.2.11 10.0.2.24

   default-router 10.1.0.129

   option 42 ip 10.0.2.29 10.0.2.35

   option 150 ip 10.1.0.3

   option 66 ascii 10.1.0.3

   lease 31

!...

I have linksys spa922 phone with firmware 6.1.5(a) and some spa303, spa502..

All the devices understand tftp options from dhcp server, but spa-922 not.

I have log on debug server:

Nov  6 09:03:09 10.1.0.131 System started: ip@10.1.0.131, reboot reason:H0

Nov  6 09:03:09 10.1.0.131 System started: ip@10.1.0.131, reboot reason:H0

Nov  6 09:03:09 10.1.0.131  subnet mask:    255.255.255.192

Nov  6 09:03:09 10.1.0.131  gateway ip: 10.1.0.129

Nov  6 09:03:09 10.1.0.131  dns servers(2):

Nov  6 09:03:09 10.1.0.131 10.0.2.11

Nov  6 09:03:09 10.1.0.131 10.0.2.24

Nov  6 09:03:09 10.1.0.131

Nov  6 09:03:10 10.1.0.131 IDBG: st-0

Nov  6 09:03:10 10.1.0.131 src/dict_tftp.c: dictParseServerScp: 1501 script too short

Nov  6 09:03:10 10.1.0.131 ---------- g_dict_enable[0]: 0, : -2621441

Nov  6 09:03:10 10.1.0.131 syslog-ng[1328]: Error processing log message: <Embedded Msg>:   save param: 441 = 255 441

Nov  6 09:03:10 10.1.0.131 DDE12 0 0

Nov  6 09:03:10 10.1.0.131 dictTftpNum: 0

Nov  6 09:03:10 10.1.0.131 paylen: 0

Nov  6 09:03:10 10.1.0.131 Dict_N> Dict flash[1] err happened, check errcode1=1

Nov  6 09:03:10 10.1.0.131 DICT_verify: 1

Nov  6 09:03:10 10.1.0.131 Dict_N> Dict flash[1] err happened, check errcode2=1

Nov  6 09:03:10 10.1.0.131 paylen: 0

Nov  6 09:03:10 10.1.0.131 Dict_N> Dict flash[0] err happened, check errcode1=1

Nov  6 09:03:10 10.1.0.131 DICT_verify: 1

Nov  6 09:03:10 10.1.0.131 Dict_N> Dict flash[0] err happened, check errcode2=1

Nov  6 09:03:10 10.1.0.131 3.0 deadbeef 48879

Nov  6 09:03:10 10.1.0.131 DDE11 0 0

Nov  6 09:03:10 10.1.0.131 DDE13 0 0

Nov  6 09:03:10 10.1.0.131 [SCAPS]WaitTime:10

Nov  6 09:03:10 10.1.0.131 [SCAPS]WaitTime:10

Nov  6 09:03:11 10.1.0.131 [SCAPS]WaitTime:20

Nov  6 09:03:11 10.1.0.131 [SCAPS]WaitTime:20

Nov  6 09:03:12 10.1.0.131 [SCAPS]WaitTime:40

Nov  6 09:03:12 10.1.0.131 [SCAPS]WaitTime:40

Nov  6 09:03:14 10.1.0.131 [SCAPS]WaitTime:80

Nov  6 09:03:14 10.1.0.131 [SCAPS]WaitTime:80

Nov  6 09:03:14 10.1.0.131 Resolving 10.1.0.3

What is the reason that the device does not accept dhcp option correctly?

1 Reply 1

Dan Lukes
VIP Alumni
VIP Alumni

It is possible that SPA922 is using other option than SPA303. So at the first, you must found what option is triggering

src/dict_tftp.c: dictParseServerScp: 1501 script too short

error. Use option 150 but not option 66 and vice versa. It should reveal what option will cause the error.

Also, you should catch the DHCP server's response packet. It's nice to know Cisco 881's configuration, but the bug may be in Cisco 881 itself. If it's response is malformed (in option used by SPA922 but ignored by SPA303, or SPA303 may be more resistent to bug than SPA922) then it's waste of time to play with SPA922's configuration.