Configure routing (with netmask)

Vitor Flausino vflausino at
Thu May 10 15:54:38 UTC 2007

I found a solution in webpage that really sols the problem.

Thanks for the help.

-----Original Message-----
From: dhcp-users-bounce at [mailto:dhcp-users-bounce at] On Behalf Of Simon Hobson
Sent: Thursday, May 10, 2007 3:36 PM
To: dhcp-users at
Subject: RE: Configure routing (with netmask)

Vitor Flausino wrote:
>RFC3442 does not give me the syntax for dhcpd.conf...
>So far what I have and is not working is...
>option classless-routes code 249 = array of unsigned integer 8;
>option classless-routes 32,  0,0,0,0,  5,22,23,7,   24,  12,68,0,0,

Is that meant to encode via and via ?

If so then you haven't read rfc3442 (properly).

That set of routes would be (as I read it) :

32, 0,0,0,0, 5,22,23,7, 24, 12,68,0, 5,22,223,100

32,0,0,0,0 =
5,22,23,7 =  via
24,12,68,0 = (note that the redundant 0 is dropped)
5,22,223,100 = via

I'm assuming that the DHCP server automatically calculates and
inserts the option length byte.

The problem may be as simple as not allowing for dropping
insignificant octets (ie becomes 24,12,68,0) and
possibly leaving off the length.

If you actually meant "default via and via" then it would be :

0, 5,22,23,7, 24, 12,68,0, 5,22,223,100

where "0, 5,22,23,7" means via

Does this work ?

More information about the dhcp-users mailing list