Mismatch between config and documentation for dhcpd?

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Mismatch between config and documentation for dhcpd?

Etienne
Hello there,

man dhcp-options(5) shows the option classless-static-routes, however,
when I use it, dhcpd fails to start and returns:

dhcpd: /etc/dhcpd.conf line 49: unknown option
dhcp.classless-static-routes

I suspect this is just a mismatch between the documentation and the
options with which dhcpd has been built. Or is it?

Cheers,

--
Étienne

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Stuart Henderson
On 2016-01-20, Etienne <[hidden email]> wrote:
> Hello there,
>
> man dhcp-options(5) shows the option classless-static-routes, however,
> when I use it, dhcpd fails to start and returns:
>
> dhcpd: /etc/dhcpd.conf line 49: unknown option
> dhcp.classless-static-routes

It looks like it should just be "classless-static-routes" without a
dhcp. prefix.

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Etienne
On 2016-01-21 00:27, Stuart Henderson wrote:

>> man dhcp-options(5) shows the option classless-static-routes, however,
>> when I use it, dhcpd fails to start and returns:
>>
>> dhcpd: /etc/dhcpd.conf line 49: unknown option
>> dhcp.classless-static-routes
>
> It looks like it should just be "classless-static-routes" without a
> dhcp. prefix.

I didn't add a prefix, it's been added in the log by the program itself.
My config file looked like below:

         option domain-name-servers 192.168.0.71, 192.168.0.149;
         option classless-static-routes 192.168.32/24 192.168.0.1;
         deny unknown-clients;

For the moment, I'll go with the following config, which works:

         option domain-name-servers 192.168.0.71, 192.168.0.149;
         option static-routes 192.168.32.7 192.168.0.1, 192.168.32.15
192.168.0.1;
         deny unknown-clients;

Cheers,

--
Étienne

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Raf Czlonka-2
On Thu, Jan 21, 2016 at 11:15:42AM GMT, Etienne wrote:

> On 2016-01-21 00:27, Stuart Henderson wrote:
>
> >>man dhcp-options(5) shows the option classless-static-routes, however,
> >>when I use it, dhcpd fails to start and returns:
> >>
> >>dhcpd: /etc/dhcpd.conf line 49: unknown option
> >>dhcp.classless-static-routes
> >
> >It looks like it should just be "classless-static-routes" without a
> >dhcp. prefix.
>
> I didn't add a prefix, it's been added in the log by the program itself. My
> config file looked like below:
>
>         option domain-name-servers 192.168.0.71, 192.168.0.149;
>         option classless-static-routes 192.168.32/24 192.168.0.1;
                                         ^^^^^^^^^^^^^
Is this by any chance because the above is not valid CIDR and should
have been, 192.168.32.0/24?

Regards,

Raf

>         deny unknown-clients;
>
> For the moment, I'll go with the following config, which works:
>
>         option domain-name-servers 192.168.0.71, 192.168.0.149;
>         option static-routes 192.168.32.7 192.168.0.1, 192.168.32.15
> 192.168.0.1;
>         deny unknown-clients;
>
> Cheers,
>
> --
> Étienne

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Etienne
On 2016-01-21 12:28, Raf Czlonka wrote:

>> I didn't add a prefix, it's been added in the log by the program
>> itself. My
>> config file looked like below:
>>
>>         option domain-name-servers 192.168.0.71, 192.168.0.149;
>>         option classless-static-routes 192.168.32/24 192.168.0.1;
>                                          ^^^^^^^^^^^^^
> Is this by any chance because the above is not valid CIDR and should
> have been, 192.168.32.0/24?

I just tried, I'm afraid it doesn't make any change.

--
Étienne

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Etienne
In reply to this post by Raf Czlonka-2
On 2016-01-21 12:28, Raf Czlonka wrote:

>>        I didn't add a prefix, it's been added in the log by the
>> program itself. My
>>        config file looked like below:
>>
>>                option domain-name-servers 192.168.0.71, 192.168.0.149;
>>                option classless-static-routes 192.168.32/24
>> 192.168.0.1;
>>
>                                             ^^^^^^^^^^^^^
>    Is this by any chance because the above is not valid CIDR and should
>    have been, 192.168.32.0/24?

I just tried, I'm afraid it doesn't make any change.

--
Étienne

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Raf Czlonka-2
In reply to this post by Etienne
On Fri, Jan 22, 2016 at 12:00:56AM GMT, Etienne wrote:

> On 2016-01-21 12:28, Raf Czlonka wrote:
>
> >>I didn't add a prefix, it's been added in the log by the program itself.
> >>My
> >>config file looked like below:
> >>
> >>        option domain-name-servers 192.168.0.71, 192.168.0.149;
> >>        option classless-static-routes 192.168.32/24 192.168.0.1;
> >                                         ^^^^^^^^^^^^^
> >Is this by any chance because the above is not valid CIDR and should
> >have been, 192.168.32.0/24?
>
> I just tried, I'm afraid it doesn't make any change.

Hi Étienne,

I don't think you've mentioned the release version of
OpenBSD you are running - code for classless-static-routes and
classless-ms-static-routes has been added two years ago and first
appeared in OpenBSD 5.5.

Raf

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Etienne
On 01/22/16 09:02, Raf Czlonka wrote:

>                                        
> Is this by any chance because the above is not valid CIDR and should
> have been, 192.168.32.0/24?
>> I just tried, I'm afraid it doesn't make any change.
> Hi Étienne,
>
> I don't think you've mentioned the release version of
> OpenBSD you are running - code for classless-static-routes and
> classless-ms-static-routes has been added two years ago and first
> appeared in OpenBSD 5.5.
I'm running 5.8/i386 on this machine.

--
Étienne

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Stuart Henderson
On 2016-01-22, Etienne <[hidden email]> wrote:

> On 01/22/16 09:02, Raf Czlonka wrote:
>>                                        
>> Is this by any chance because the above is not valid CIDR and should
>> have been, 192.168.32.0/24?
>>> I just tried, I'm afraid it doesn't make any change.
>> Hi Étienne,
>>
>> I don't think you've mentioned the release version of
>> OpenBSD you are running - code for classless-static-routes and
>> classless-ms-static-routes has been added two years ago and first
>> appeared in OpenBSD 5.5.
> I'm running 5.8/i386 on this machine.
>

You are trying to use syntax for OpenBSD's dhcpd with ISC dhcpd from packages.

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Etienne
On 2016-01-22 12:40, Stuart Henderson wrote:

>> I'm running 5.8/i386 on this machine.
>
> You are trying to use syntax for OpenBSD's dhcpd with ISC dhcpd from
> packages.

That was it! Thank you so much, I was really confused.

It's a bit disappointing to see that ISC dhcp-options' manpage doesn't
offer 'classless-static-routes' option while mentioning that
'static-routes' is not used by the majority of DHCP clients anymore. I'm
using ISC dhcpd for the failover option, on two Soekris boxes that do
DNS, DHCP, packet filtering and a few more things on the edge of my
local network. Any chance to see this failover option available in
OpenBSD's dhcpd one day?

Cheers,

--
Étienne

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Stuart Henderson
On 2016-01-23, Etienne <[hidden email]> wrote:

> On 2016-01-22 12:40, Stuart Henderson wrote:
>
>>> I'm running 5.8/i386 on this machine.
>>
>> You are trying to use syntax for OpenBSD's dhcpd with ISC dhcpd from
>> packages.
>
> That was it! Thank you so much, I was really confused.
>
> It's a bit disappointing to see that ISC dhcp-options' manpage doesn't
> offer 'classless-static-routes' option while mentioning that
> 'static-routes' is not used by the majority of DHCP clients anymore. I'm
> using ISC dhcpd for the failover option, on two Soekris boxes that do
> DNS, DHCP, packet filtering and a few more things on the edge of my
> local network. Any chance to see this failover option available in
> OpenBSD's dhcpd one day?

I'm not sure what failover options isc-dhcpd has, I haven't felt the
need for anything more than OpenBSD dhcpd's -y/-Y myself.

Reply | Threaded
Open this post in threaded view
|

Re: Mismatch between config and documentation for dhcpd?

Etienne
On 01/24/16 21:55, Stuart Henderson wrote:
> I'm not sure what failover options isc-dhcpd has, I haven't felt the
> need for anything more than OpenBSD dhcpd's -y/-Y myself.
>
Maybe I don't either. Thanks for pointing this out!

--
Étienne