Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - dhcpd not quite working: (9 Items)
   
dhcpd not quite working  
I have a issue as you can see below.  Can anyone tell me where to start.  If this is not enough information to 
understand the problem, let me know.  From one line it says function not implemented.  If it can't commit a lease, then 
it is completely useless is it not?

# dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /tmp/dhcpd.leases -pf /mnt/etfs/etc/dhcpd.pid


Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
Wrote 0 leases to leases file.
commit_leases: unable to commit: Function not implemented
Listening on Socket/en0/192.168.1.0/24
Sending on   Socket/en0/192.168.1.0/24
DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
Can't create new lease file: Not enough memory
DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1 (ursa) via en
0: database update failed
Can't create new lease file: Not enough memory
DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1 (ursa) via en
0: database update failed
Can't create new lease file: Not enough memory
DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1 (ursa) via en
0: database update failed

Re: dhcpd not quite working  
Is /tmp a RAM disk? How big is it?

On 11-01-07 03:09 PM, Durwin De La Rue wrote:
> I have a issue as you can see below.  Can anyone tell me where to start.
>   If this is not enough information to understand the problem, let me
> know. From one line it says function not implemented. If it can't commit
> a lease, then it is completely useless is it not?
>
> # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /tmp/dhcpd.leases -pf
> /mnt/etfs/etc/dhcpd.pid
>
>
> Internet Software Consortium DHCP Server V3.0pl2
> Copyright 1995-2003 Internet Software Consortium.
> All rights reserved.
> Wrote 0 leases to leases file.
> commit_leases: unable to commit: Function not implemented
> Listening on Socket/en0/192.168.1.0/24
> Sending on Socket/en0/192.168.1.0/24
> DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
> DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
> Can't create new lease file: Not enough memory
> DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> (ursa) via en
> 0: database update failed
> Can't create new lease file: Not enough memory
> DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> (ursa) via en
> 0: database update failed
> Can't create new lease file: Not enough memory
> DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> (ursa) via en
> 0: database update failed
>
>
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post81558
>
Re: dhcpd not quite working  
> Is /tmp a RAM disk? How big is it?

Yes, 19M

Even if I run following command I get similar results.

# dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /mnt/etfs/etc/dhcpd.leases -pf /mnt/etfs/etc/dhcpd.pid

# Internet Software Consortium DHCP Server V3.0pl2
# Copyright 1995-2003 Internet Software Consortium.
# All rights reserved.
# Wrote 0 leases to leases file.
# Can't backup lease database /mnt/etfs/etc/dhcpd.leases to /mnt/etfs/etc/dhcpd.le
# ases~: Improper link
# Listening on Socket/en0/192.168.1.0/24
# Sending on   Socket/en0/192.168.1.0/24
# DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
# DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
# Can't create new lease file: Not enough memory
# DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1 (ursa) via en
# 0: database update failed
# Can't create new lease file: Not enough memory
# DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1 (ursa) via en
# 0: database update failed
#


> 
> On 11-01-07 03:09 PM, Durwin De La Rue wrote:
> > I have a issue as you can see below.  Can anyone tell me where to start.
> >   If this is not enough information to understand the problem, let me
> > know. From one line it says function not implemented. If it can't commit
> > a lease, then it is completely useless is it not?
> >
> > # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /tmp/dhcpd.leases -pf
> > /mnt/etfs/etc/dhcpd.pid
> >
> >
> > Internet Software Consortium DHCP Server V3.0pl2
> > Copyright 1995-2003 Internet Software Consortium.
> > All rights reserved.
> > Wrote 0 leases to leases file.
> > commit_leases: unable to commit: Function not implemented
> > Listening on Socket/en0/192.168.1.0/24
> > Sending on Socket/en0/192.168.1.0/24
> > DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
> > DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
> > Can't create new lease file: Not enough memory
> > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> > (ursa) via en
> > 0: database update failed
> > Can't create new lease file: Not enough memory
> > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> > (ursa) via en
> > 0: database update failed
> > Can't create new lease file: Not enough memory
> > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> > (ursa) via en
> > 0: database update failed
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Technology
> > http://community.qnx.com/sf/go/post81558
> >


Re: dhcpd not quite working  
Does the leases file exist? touch /tmp/dhcpd.leases

On 11-01-07 04:47 PM, Durwin De La Rue wrote:
>  > Is /tmp a RAM disk? How big is it?
>
> Yes, 19M
>
> Even if I run following command I get similar results.
>
> # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /mnt/etfs/etc/dhcpd.leases
> -pf /mnt/etfs/etc/dhcpd.pid
>
> # Internet Software Consortium DHCP Server V3.0pl2
> # Copyright 1995-2003 Internet Software Consortium.
> # All rights reserved.
> # Wrote 0 leases to leases file.
> # Can't backup lease database /mnt/etfs/etc/dhcpd.leases to
> /mnt/etfs/etc/dhcpd.le
> # ases~: Improper link
> # Listening on Socket/en0/192.168.1.0/24
> # Sending on Socket/en0/192.168.1.0/24
> # DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
> # DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
> # Can't create new lease file: Not enough memory
> # DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> (ursa) via en
> # 0: database update failed
> # Can't create new lease file: Not enough memory
> # DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> (ursa) via en
> # 0: database update failed
> #
>
>
>  >
>  > On 11-01-07 03:09 PM, Durwin De La Rue wrote:
>  > > I have a issue as you can see below. Can anyone tell me where to start.
>  > > If this is not enough information to understand the problem, let me
>  > > know. From one line it says function not implemented. If it can't
> commit
>  > > a lease, then it is completely useless is it not?
>  > >
>  > > # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /tmp/dhcpd.leases -pf
>  > > /mnt/etfs/etc/dhcpd.pid
>  > >
>  > >
>  > > Internet Software Consortium DHCP Server V3.0pl2
>  > > Copyright 1995-2003 Internet Software Consortium.
>  > > All rights reserved.
>  > > Wrote 0 leases to leases file.
>  > > commit_leases: unable to commit: Function not implemented
>  > > Listening on Socket/en0/192.168.1.0/24
>  > > Sending on Socket/en0/192.168.1.0/24
>  > > DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
>  > > DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
>  > > Can't create new lease file: Not enough memory
>  > > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
>  > > (ursa) via en
>  > > 0: database update failed
>  > > Can't create new lease file: Not enough memory
>  > > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
>  > > (ursa) via en
>  > > 0: database update failed
>  > > Can't create new lease file: Not enough memory
>  > > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
>  > > (ursa) via en
>  > > 0: database update failed
>  > >
>  > >
>  > >
>  > >
>  > >
>  > > _______________________________________________
>  > >
>  > > Technology
>  > > http://community.qnx.com/sf/go/post81558
>  > >
>
>
>
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post81575
>
Re: dhcpd not quite working  
> Does the leases file exist? touch /tmp/dhcpd.leases

Yes it does.  I make sure after each reboot.

> 
> On 11-01-07 04:47 PM, Durwin De La Rue wrote:
> >  > Is /tmp a RAM disk? How big is it?
> >
> > Yes, 19M
> >
> > Even if I run following command I get similar results.
> >
> > # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /mnt/etfs/etc/dhcpd.leases
> > -pf /mnt/etfs/etc/dhcpd.pid
> >
> > # Internet Software Consortium DHCP Server V3.0pl2
> > # Copyright 1995-2003 Internet Software Consortium.
> > # All rights reserved.
> > # Wrote 0 leases to leases file.
> > # Can't backup lease database /mnt/etfs/etc/dhcpd.leases to
> > /mnt/etfs/etc/dhcpd.le
> > # ases~: Improper link
> > # Listening on Socket/en0/192.168.1.0/24
> > # Sending on Socket/en0/192.168.1.0/24
> > # DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
> > # DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
> > # Can't create new lease file: Not enough memory
> > # DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> > (ursa) via en
> > # 0: database update failed
> > # Can't create new lease file: Not enough memory
> > # DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> > (ursa) via en
> > # 0: database update failed
> > #
> >
> >
> >  >
> >  > On 11-01-07 03:09 PM, Durwin De La Rue wrote:
> >  > > I have a issue as you can see below. Can anyone tell me where to start.
> 
> >  > > If this is not enough information to understand the problem, let me
> >  > > know. From one line it says function not implemented. If it can't
> > commit
> >  > > a lease, then it is completely useless is it not?
> >  > >
> >  > > # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /tmp/dhcpd.leases -pf
> >  > > /mnt/etfs/etc/dhcpd.pid
> >  > >
> >  > >
> >  > > Internet Software Consortium DHCP Server V3.0pl2
> >  > > Copyright 1995-2003 Internet Software Consortium.
> >  > > All rights reserved.
> >  > > Wrote 0 leases to leases file.
> >  > > commit_leases: unable to commit: Function not implemented
> >  > > Listening on Socket/en0/192.168.1.0/24
> >  > > Sending on Socket/en0/192.168.1.0/24
> >  > > DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
> >  > > DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
> >  > > Can't create new lease file: Not enough memory
> >  > > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> >  > > (ursa) via en
> >  > > 0: database update failed
> >  > > Can't create new lease file: Not enough memory
> >  > > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> >  > > (ursa) via en
> >  > > 0: database update failed
> >  > > Can't create new lease file: Not enough memory
> >  > > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from 00:26:6c:87:5f:d1
> >  > > (ursa) via en
> >  > > 0: database update failed
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >
> >  > > _______________________________________________
> >  > >
> >  > > Technology
> >  > > http://community.qnx.com/sf/go/post81558
> >  > >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Technology
> > http://community.qnx.com/sf/go/post81575
> >


RE: dhcpd not quite working  
Are you using devb-ram or another file system driver. It may be that the
driver does not support all file system operations. The not enough
memory responses are odd though. 

Dave

> -----Original Message-----
> From: Durwin De La Rue [mailto:community-noreply@qnx.com]
> Sent: January 7, 2011 5:02 PM
> To: technology-networking
> Subject: Re: dhcpd not quite working
> 
> > Does the leases file exist? touch /tmp/dhcpd.leases
> 
> Yes it does.  I make sure after each reboot.
> 
> >
> > On 11-01-07 04:47 PM, Durwin De La Rue wrote:
> > >  > Is /tmp a RAM disk? How big is it?
> > >
> > > Yes, 19M
> > >
> > > Even if I run following command I get similar results.
> > >
> > > # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf
> /mnt/etfs/etc/dhcpd.leases
> > > -pf /mnt/etfs/etc/dhcpd.pid
> > >
> > > # Internet Software Consortium DHCP Server V3.0pl2
> > > # Copyright 1995-2003 Internet Software Consortium.
> > > # All rights reserved.
> > > # Wrote 0 leases to leases file.
> > > # Can't backup lease database /mnt/etfs/etc/dhcpd.leases to
> > > /mnt/etfs/etc/dhcpd.le
> > > # ases~: Improper link
> > > # Listening on Socket/en0/192.168.1.0/24
> > > # Sending on Socket/en0/192.168.1.0/24
> > > # DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
> > > # DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
> > > # Can't create new lease file: Not enough memory
> > > # DHCPREQUEST for 192.168.1.250 (192.168.1.2) from
> 00:26:6c:87:5f:d1
> > > (ursa) via en
> > > # 0: database update failed
> > > # Can't create new lease file: Not enough memory
> > > # DHCPREQUEST for 192.168.1.250 (192.168.1.2) from
> 00:26:6c:87:5f:d1
> > > (ursa) via en
> > > # 0: database update failed
> > > #
> > >
> > >
> > >  >
> > >  > On 11-01-07 03:09 PM, Durwin De La Rue wrote:
> > >  > > I have a issue as you can see below. Can anyone tell me where
> to start.
> >
> > >  > > If this is not enough information to understand the problem,
> let me
> > >  > > know. From one line it says function not implemented. If it
> can't
> > > commit
> > >  > > a lease, then it is completely useless is it not?
> > >  > >
> > >  > > # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /tmp/dhcpd.leases
> -pf
> > >  > > /mnt/etfs/etc/dhcpd.pid
> > >  > >
> > >  > >
> > >  > > Internet Software Consortium DHCP Server V3.0pl2
> > >  > > Copyright 1995-2003 Internet Software Consortium.
> > >  > > All rights reserved.
> > >  > > Wrote 0 leases to leases file.
> > >  > > commit_leases: unable to commit: Function not implemented
> > >  > > Listening on Socket/en0/192.168.1.0/24
> > >  > > Sending on Socket/en0/192.168.1.0/24
> > >  > > DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
> > >  > > DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via
en0
> > >  > > Can't create new lease file: Not enough memory
> > >  > > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from
> 00:26:6c:87:5f:d1
> > >  > > (ursa) via en
> > >  > > 0: database update failed
> > >  > > Can't create new lease file: Not enough memory
> > >  > > DHCPREQUEST for 192.168.1.250 (192.168.1.2) from
> 00:26:6c:87:5f:d1
> > >  > > (ursa) via en
> > >  > > 0: database update...
Re: RE: dhcpd not quite working  
> Are you using devb-ram or another file system driver. It may be that the
> driver does not support all file system operations. The not enough
> memory responses are odd though. 
> 
> Dave
> 

What ever driver is running the shared memory (/tmp) and what ever driver runs the nand flash (/mnt/etfs) fails.  I do 
not know the drivers.  But when we mount the SD card and use it, DHCPD works.  So for now, we will do just that.  Thank 
you for your time.

Durwin

> > -----Original Message-----
> > From: Durwin De La Rue [mailto:community-noreply@qnx.com]
> > Sent: January 7, 2011 5:02 PM
> > To: technology-networking
> > Subject: Re: dhcpd not quite working
> > 
> > > Does the leases file exist? touch /tmp/dhcpd.leases
> > 
> > Yes it does.  I make sure after each reboot.
> > 
> > >
> > > On 11-01-07 04:47 PM, Durwin De La Rue wrote:
> > > >  > Is /tmp a RAM disk? How big is it?
> > > >
> > > > Yes, 19M
> > > >
> > > > Even if I run following command I get similar results.
> > > >
> > > > # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf
> > /mnt/etfs/etc/dhcpd.leases
> > > > -pf /mnt/etfs/etc/dhcpd.pid
> > > >
> > > > # Internet Software Consortium DHCP Server V3.0pl2
> > > > # Copyright 1995-2003 Internet Software Consortium.
> > > > # All rights reserved.
> > > > # Wrote 0 leases to leases file.
> > > > # Can't backup lease database /mnt/etfs/etc/dhcpd.leases to
> > > > /mnt/etfs/etc/dhcpd.le
> > > > # ases~: Improper link
> > > > # Listening on Socket/en0/192.168.1.0/24
> > > > # Sending on Socket/en0/192.168.1.0/24
> > > > # DHCPDISCOVER from 00:26:6c:87:5f:d1 via en0
> > > > # DHCPOFFER on 192.168.1.250 to 00:26:6c:87:5f:d1 (ursa) via en0
> > > > # Can't create new lease file: Not enough memory
> > > > # DHCPREQUEST for 192.168.1.250 (192.168.1.2) from
> > 00:26:6c:87:5f:d1
> > > > (ursa) via en
> > > > # 0: database update failed
> > > > # Can't create new lease file: Not enough memory
> > > > # DHCPREQUEST for 192.168.1.250 (192.168.1.2) from
> > 00:26:6c:87:5f:d1
> > > > (ursa) via en
> > > > # 0: database update failed
> > > > #
> > > >
> > > >
> > > >  >
> > > >  > On 11-01-07 03:09 PM, Durwin De La Rue wrote:
> > > >  > > I have a issue as you can see below. Can anyone tell me where
> > to start.
> > >
> > > >  > > If this is not enough information to understand the problem,
> > let me
> > > >  > > know. From one line it says function not implemented. If it
> > can't
> > > > commit
> > > >  > > a lease, then it is completely useless is it not?
> > > >  > >
> > > >  > > # dhcpd -d -cf /mnt/etfs/etc/dhcpd.conf -lf /tmp/dhcpd.leases
> > -pf
> > > >  > > /mnt/etfs/etc/dhcpd.pid
> > > >  > >
> > > >  > >
> > > >  > > Internet Software Consortium DHCP Server V3.0pl2
> > > >  > > Copyright 1995-2003 Internet Software Consortium.
> > > >  > > All rights reserved.
> > > >  > > Wrote 0 leases to leases file.
> > > >  > > commit_leases: unable to commit: Function not implemented
> > > >  > > Listening on Socket/en0/192.168.1.0/24
> > > >  > > Sending on Socket/en0/192.168.1.0/24
> > > >  > >...
View Full Message
Re: dhcpd not quite working  
Replying as I ran into this problem 8 years later ...

Trying to keep dhcpd.leases in /tmp won't work as it is using the RAM filesystem. Put on any other filesystem however 
will work. Reason is found in the QNX documentation:
"Note that /dev/shmem isn't actually a filesystem. It's a window onto the shared memory names that happens to have some 
filesystem-like characteristics."

I finally got my dhcpd.leases working from RAM using ramdrive formatted as FAT:
    devb-ram ram nodinit,cache=512k disk name=hd@10  
    waitfor /dev/hd10  
    fdisk /dev/hd10 add -t 6  
    mount -e /dev/hd10  
    waitfor /dev/hd10t6  
    mkdosfs /dev/hd10t6
    mount -t dos /dev/hd10t6 /root
    mkdir /root/leasesdb
    touch /root/leasesdb/dhcpd.leases
    chmod a+rw /root/leasesdb/dhcpd.leases
    dhcpd -lf /root/leasesdb/dhcpd.leases ural0 

Hope this saves some time to the next guy
Re: dhcpd not quite working  
Thank you Ivo Kostadinov.  That did help!