NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

dhcpd 3.1.2 on NetBSD/i386 5.0.1



Further to my post in June about not being able to use dhclient 3.1.2
on NetBSD/i386 5.0 [1] (which hasn't been resolved) I've discovered
dhcpd 3.1.2 installed from source won't run on NetBSD/i386 5.0.1:

# uname -mrs
NetBSD 5.0.1 i386
#
# ifconfig -a
rtk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:50:fc:33:80:0d
        media: Ethernet autoselect (100baseTX)
        status: active
        inet 169.254.0.1 netmask 0xfffffff0 broadcast 169.254.0.15
        inet6 fe80::250:fcff:fe33:800d%rtk0 prefixlen 64 scopeid 0x1
tlp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:80:ad:90:2f:37
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 192.168.36.13 netmask 0xfffffe00 broadcast 192.168.37.255
        inet6 fe80::280:adff:fe90:2f37%tlp0 prefixlen 64 scopeid 0x2
ep0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
        address: 00:c0:4f:dd:47:27
        media: Ethernet 10baseT
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
#
# which dhcpd
/usr/sbin/dhcpd
#
# dhcpd -t
Internet Systems Consortium DHCP Server V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
#
# dhcpd -T
Internet Systems Consortium DHCP Server V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
#
# dhcpd rtk0
Internet Systems Consortium DHCP Server V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 4 leases to leases file.
Can't get interface flags for LÀ
                                [ÅDvFżTÅhF=À$[Å: Device not configured

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server%isc.org@localhost
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
#


The configuration file couldn't be much simpler:

% cat /etc/dhcpd.conf
authoritative;
ddns-update-style none;
default-lease-time 86400;   # default lease 1 day
max-lease-time 2592000;     # maximum lease 30 days
log-facility local2;


subnet 169.254.0.0 netmask 255.255.255.240 {
    option subnet-mask 255.255.255.240;
    option broadcast-address 169.254.0.15;
    pool {
        range 169.254.0.2 169.254.0.14;
        default-lease-time 604800;   # default lease 7 days
    }
}
%


I've tried with an empty /var/db/dhcpd.leases file but it made no difference.

I did modify Makefile.conf and includes/site.h before compiling:

% diff Makefile.conf Makefile.conf.orig
47c47
< LIBS = -static
---
 LIBS =
%
% diff includes/site.h includes/site.h.orig
180d179
< #define DHCPD_LOG_FACILITY LOG_LOCAL2
%

but that's what I always do, and the daemon has been built the same
way and runs successfully on earlier versions of NetBSD/i386, viz.
2.0F and 3.99.20.  It was only when trying to run it on the current
release that the problem arose.

Actually, I do have a dhcpd 3.1.2 daemon running on a NetBSD/i386
5.0.1 machine, but that machine was upgraded from 3.1 after dhcpd was
installed, rather than being a fresh install of 5.0.1.  That machine
is using the same dhcpd.conf file as this one.

I'd be grateful if someone could point out what the problem is.

It would be good if someone who knows more than I do could tell the
ISC developers what they've done wrong so their future releases will
work with NetBSD.


Ray


[1]  http://mail-index.netbsd.org/netbsd-users/2009/06/19/msg003917.html


Home | Main Index | Thread Index | Old Index