Dhcp problem maybe?



  • hello everyone,

    today i logged into my router and was looking around and i found alot of entries of this error im not really sure why this is happening no other pc on the network is trying to use the same ip if i read this currently could this be a bug ?

    hp-fpm[46302]: /services_dhcp.php: The command '/usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid re0' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.2.8 Copyright 2004-2015 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Wrote 0 deleted host decls to leases file. Wrote 0 new dynamic host decls to leases file. Wrote 25 leases to leases file. Listening on BPF/re0/90:2b:34:d5:94:45/10.0.5.0/24 Sending on BPF/re0/90:2b:34:d5:94:45/10.0.5.0/24 Can't bind to dhcp address: Address already in use Please make sure there is no other dhcp server running and that there's no entry for dhcp or bootp in /etc/inetd.conf. Also make sure you are not running HP JetAdmin software, which includes a bootp server. 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
    

  • LAYER 8 Global Moderator

    "Can't bind to dhcp address: Address already in use Please make sure there is no other dhcp server running"

    This is not a PC on your network.. This is something on pfsense saying something is already bound to the dhcp port on that IP..

    Are you trying to run the forwarder and the resolver at the same time?

    Where exactly are you looking in the log?  Why did it post in one long line?  I would stop both resolver and forwarder and then start the one you want to use..  Did it start up correctly.. you should see that in the log where it starts without any errors.  What interfaces are you wanting to run dhcp server on?

    example - just restarted mine
    Jul 11 08:23:11 dhcpd: Internet Systems Consortium DHCP Server 4.2.8
    Jul 11 08:23:11 dhcpd: Copyright 2004-2015 Internet Systems Consortium.
    Jul 11 08:23:11 dhcpd: All rights reserved.
    Jul 11 08:23:11 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
    Jul 11 08:23:11 dhcpd: Internet Systems Consortium DHCP Server 4.2.8
    Jul 11 08:23:11 dhcpd: Copyright 2004-2015 Internet Systems Consortium.
    Jul 11 08:23:11 dhcpd: All rights reserved.
    Jul 11 08:23:11 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
    Jul 11 08:23:11 dhcpd: Wrote 0 deleted host decls to leases file.
    Jul 11 08:23:11 dhcpd: Wrote 0 new dynamic host decls to leases file.
    Jul 11 08:23:11 dhcpd: Wrote 29 leases to leases file.
    Jul 11 08:23:11 dhcpd: Listening on BPF/em2_vlan300/00:50:56:00:00:03/192.168.6.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em2_vlan300/00:50:56:00:00:03/192.168.6.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em2_vlan100/00:50:56:00:00:03/192.168.5.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em2_vlan100/00:50:56:00:00:03/192.168.5.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em2_vlan200/00:50:56:00:00:03/192.168.4.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em2_vlan200/00:50:56:00:00:03/192.168.4.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em3/00:50:56:00:00:04/192.168.3.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em3/00:50:56:00:00:04/192.168.3.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em2/00:50:56:00:00:03/192.168.2.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em2/00:50:56:00:00:03/192.168.2.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em1/00:50:56:00:00:02/192.168.9.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em1/00:50:56:00:00:02/192.168.9.0/24
    Jul 11 08:23:11 dhcpd: Sending on Socket/fallback/fallback-net



  • alright thanks i will look into when i get home im at work right now. you dont think the openVPN could do this do ya because i was trying to config it the other day?

    @johnpoz:

    "Can't bind to dhcp address: Address already in use Please make sure there is no other dhcp server running"

    This is not a PC on your network.. This is something on pfsense saying something is already bound to the dhcp port on that IP..

    Are you trying to run the forwarder and the resolver at the same time?

    Where exactly are you looking in the log?  Why did it post in one long line?  I would stop both resolver and forwarder and then start the one you want to use..  Did it start up correctly.. you should see that in the log where it starts without any errors.  What interfaces are you wanting to run dhcp server on?

    example - just restarted mine
    Jul 11 08:23:11 dhcpd: Internet Systems Consortium DHCP Server 4.2.8
    Jul 11 08:23:11 dhcpd: Copyright 2004-2015 Internet Systems Consortium.
    Jul 11 08:23:11 dhcpd: All rights reserved.
    Jul 11 08:23:11 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
    Jul 11 08:23:11 dhcpd: Internet Systems Consortium DHCP Server 4.2.8
    Jul 11 08:23:11 dhcpd: Copyright 2004-2015 Internet Systems Consortium.
    Jul 11 08:23:11 dhcpd: All rights reserved.
    Jul 11 08:23:11 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
    Jul 11 08:23:11 dhcpd: Wrote 0 deleted host decls to leases file.
    Jul 11 08:23:11 dhcpd: Wrote 0 new dynamic host decls to leases file.
    Jul 11 08:23:11 dhcpd: Wrote 29 leases to leases file.
    Jul 11 08:23:11 dhcpd: Listening on BPF/em2_vlan300/00:50:56:00:00:03/192.168.6.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em2_vlan300/00:50:56:00:00:03/192.168.6.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em2_vlan100/00:50:56:00:00:03/192.168.5.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em2_vlan100/00:50:56:00:00:03/192.168.5.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em2_vlan200/00:50:56:00:00:03/192.168.4.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em2_vlan200/00:50:56:00:00:03/192.168.4.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em3/00:50:56:00:00:04/192.168.3.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em3/00:50:56:00:00:04/192.168.3.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em2/00:50:56:00:00:03/192.168.2.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em2/00:50:56:00:00:03/192.168.2.0/24
    Jul 11 08:23:11 dhcpd: Listening on BPF/em1/00:50:56:00:00:02/192.168.9.0/24
    Jul 11 08:23:11 dhcpd: Sending on BPF/em1/00:50:56:00:00:02/192.168.9.0/24
    Jul 11 08:23:11 dhcpd: Sending on Socket/fallback/fallback-net


  • LAYER 8 Global Moderator

    My BAD, not sure what I was thinking???  Maybe not enough coffee this morning.. dhcp and dns completely different things ;)

    I think the bind threw me ;)  Got me thinking dns..

    I would make sure you fully stop your dhcp service..  you could check if running with netstat or sockstat looking to see if anything listening on dhcp

    [2.2.3-RELEASE][root@pfSense.local.lan]/root: sockstat
    dhcpd    dhcpd      44674 18 udp4  *:67                  :
    dhcpd    dhcpd      44674 20 udp4  *:9083                :
    dhcpd    dhcpd      44674 21 udp6  *:56341              :

    Or just reboot pfsense - what do you see in the log then?



  • your fine lol i will let you know when i get home Thanks!! 8) 8)

    @johnpoz:

    My BAD, not sure what I was thinking???  Maybe not enough coffee this morning.. dhcp and dns completely different things ;)

    I think the bind threw me ;)  Got me thinking dns..

    I would make sure you fully stop your dhcp service..  you could check if running with netstat or sockstat looking to see if anything listening on dhcp

    [2.2.3-RELEASE][root@pfSense.local.lan]/root: sockstat
    dhcpd    dhcpd      44674 18 udp4  *:67                  :
    dhcpd    dhcpd      44674 20 udp4  *:9083                :
    dhcpd    dhcpd      44674 21 udp6  *:56341              :

    Or just reboot pfsense - what do you see in the log then?



  • I have/had same issue as well.  The DHCP server won't run, this was fresh install with DNS resolver enabled.  I disabled resolver and DHCP started working… care to explain?


  • LAYER 8 Global Moderator

    With the amount of info you have given… What do you want us to explain exactly??  I could go into why the moon is not made of cheese if you would like..  I get as much info for that topic from your post than your actual problem.


Log in to reply