[Dnsmasq-discuss] dhcp-option too long

Simon Kelley simon at thekelleys.org.uk
Mon Feb 4 11:46:13 GMT 2013


On 31/01/13 12:30, csszep wrote:
> Hi List!
> 
> I would like to push some static routes to client with dhcp-option
> 249, but i get a following message:
> 
> dnsmasq: dhcp-option too long at line 1 of /etc/dnsmasq.conf
> 
> My dhcp-option line has 806 characters (32 static routes)
> 
> I looked the source code and the dhcp-option max length is 255 char.
> 
> Is there any disadvantage of increasing the dhcp-option length to 1024?

It won't work, the length field in DHCP options is only 8 bits. There is
a standard way to get longer options (RFC 3396) but dnsmasq doesn't
generally support it.


In this case, you may be able to simply split the static routes into
multiple


dhcp-option=249,......

lines and have it work. Worth a try.


Cheers,

Simon.

> 
> thx
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list