[CentOS] dhcp annoyances

Mon Apr 16 14:26:11 UTC 2012
m.roth at 5-cent.us <m.roth at 5-cent.us>

Johnny Hughes wrote:
> On 04/16/2012 09:04 AM, m.roth at 5-cent.us wrote:
>> Lars Hecking wrote:
>>> m.roth at 5-cent.us writes:
>>>> Well, googling has failed me. We've got a pxeboot setup, but we keep
>>>> getting, in the logs,
>>>> parse_option_buffer: malformed option dhcp.bootfile-name (code 67):
>>>> option length exceeds option buffer length. This is CentOS 6.2
>>>  No such option is listed in the dhcpd.conf man page. Get rid of it,
>>>  the filename directive before that is all you need.
>> That's fine... but getting rid of that won't make the original annoyance
>> go away.
>
> If you remove the dhcp.bootfile-name option line, how will that not fix
> your problem?

I just added that Friday. We've been getting the original error message
for weeks? months? for the configuration *without*
   option dhcp.bootfile-name

For example,
Apr  2 13:45:44 <hostname> dhcpd: parse_option_buffer: malformed option
dhcp.bootfile-name (code 67): option length exceeds option buffer length.

which is the annoyance I was trying to fix. At that time, the dhcpd.conf
section for pxebooting was
group {
        allow booting;
        allow bootp;
        filename "pxelinux.0";
        option subnet-mask 255.255.254.0;
        option routers  <subnet IP elided>;
        default-lease-time 172800; # 2 days.
        max-lease-time 432000; # 5 days.


    mark