Dhcpd does not run on LAGG0 interface



  • I use dhcpd on LAGG0 interface, using LACP -
    the server won't bind

    root@pfSense /u/local# lsof | grep 67 | grep UDP
    dhcpd    43897      dhcpd  21u    IPv6 0xfffff800383fef30                0t0      UDP *:56741
    root@pfSense /u/local# lsof | grep 68 | grep UDP
    unbound  84168    unbound  10u    IPv6 0xfffff801a6a52260                0t0      UDP *:domain
    unbound  84168    unbound  12u    IPv4 0xfffff80038bf38f0                0t0      UDP *:domain
    ntpd      91472      root  24u    IPv6 0xfffff801a6a52ec0                0t0      UDP [2a02:168:dead:beef::cafe:1]:ntp
    ntpd      91472      root  25u    IPv6 0xfffff80038959870                0t0      UDP [2a02:168:dead:beef:cafe::4f63:f920]:ntp
    dhcpd    97175      dhcpd  20u    IPv4 0xfffff80005dd6830                0t0      UDP *:50296

    Nov 23 17:17:52 php-fpm[55562]: /rc.newwanipv6: The command '/usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid lagg0' 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 27 leases to leases file. Listening on BPF/lagg0/00:1b:21:72:9c:fd/10.42.0.0/24 Sending on BPF/lagg0/00:1b:21:72:9c:fd/10.42.0.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 get this software from ftp.isc.org and have not yet read the README, please read it b



  • Not sure where you're getting the output from; lsof isn't installed on pfSense, and the output you're showing can't be grepped with 67 since it is resolving services to names.

    Use netstat -an | grep 67

    
    [2.2.5-RELEASE][admin@pfSense.lab.local]/root: netstat -an | grep 67
    udp4       0      0 *.67                   *.*  
    
    


  • Fact is, dhcpd does not work on LAGG0
    I can't explain why if you need further logfiles feel free to ask

    udp4      0      0 *.67                  .

    [2.2.5-RELEASE][admin@pfSense.local]/root: lsof | grep UDP | grep 67
    dhcpd    43897      dhcpd  21u    IPv6 0xfffff800383fef30                0t0      UDP *:56741

    [2.2.5-RELEASE][admin@pfSense.local]/root: lsof | grep UDP | grep 66
    dhcpd    16646      dhcpd  11u    IPv6 0xfffff80005dd64b0                0t0      UDP *:dhcpv6-server
    dhcpd    16646      dhcpd  20u    IPv4 0xfffff80005dd5f60                0t0      UDP *:10629
    dhcpd    16646      dhcpd  21u    IPv6 0xfffff801a6a2a360                0t0      UDP *:16637
    squid    19966      proxy  14u    IPv6 0xfffff801a6a522d0                0t0      UDP *:46650
    squid    19966      proxy  16u    IPv4 0xfffff801a6a526b0                0t0      UDP *:19079
    dhcpd    61866      dhcpd  11u    IPv6 0xfffff80038bf37c0                0t0      UDP *:dhcpv6-server
    dhcpd    61866      dhcpd  20u    IPv4 0xfffff80038bf3350                0t0      UDP *:16571
    dhcpd    61866      dhcpd  21u    IPv6 0xfffff80005dd6ba0                0t0      UDP *:5832
    [2.2.5-RELEASE][admin@pfSense.local]/root: lsof | grep UDP | grep 66 | grep ipv4

    [2.2.5-RELEASE][admin@pfSense.local]/root: ps auxw | grep dhcpd
    dhcpd        556  0.0  0.2  24848  13232  -  Ss  Fri04AM    0:35.85 /usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid lagg0
    root        2216  0.0  0.0  14668  2452  -  Ss  Fri04AM    1:10.00 /usr/sbin/syslogd -s -c -c -l /var/dhcpd/var/run/log -P /var/run/syslog.pid -f /var/etc/syslog.conf
    dhcpd      16646  0.0  0.1  20880  10988  -  Ss    4:54PM    0:02.46 /usr/local/sbin/dhcpd -6 -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid lagg0
    root      33355  0.0  0.0  8308  1980  -  Is    7:57PM    0:00.00 /usr/local/sbin/dhcpleases6 -c /usr/local/bin/php -f /usr/local/sbin/prefixes.php|/bin/sh -l /var/dhcpd/var/db/dhcpd6.leases
    root      43673  0.0  0.0  12404  2004  -  Is    5:57PM    0:00.01 /usr/local/sbin/dhcpleases6 -c /usr/local/bin/php -f /usr/local/sbin/prefixes.php|/bin/sh -l /var/dhcpd/var/db/dhcpd6.leases
    dhcpd      43897  0.0  0.1  20752  10908  -  Ss  Fri04AM    0:28.32 /usr/local/sbin/dhcpd -6 -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid lagg0
    dhcpd      54276  0.0  0.1  20752  10908  -  Ss  Fri04AM    0:28.14 /usr/local/sbin/dhcpd -6 -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid lagg0
    dhcpd      61866  0.0  0.1  20880  10948  -  Ss    8:37PM    0:00.12 /usr/local/sbin/dhcpd -6 -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid lagg0
    root      62373  0.0  0.0  8308  1976  -  Is    8:37PM    0:00.00 /usr/local/sbin/dhcpleases6 -c /usr/local/bin/php -f /usr/local/sbin/prefixes.php|/bin/sh -l /var/dhcpd/var/db/dhcpd6.leases
    root      63728  0.0  0.0  12404  2016  -  Is  11:57AM    0:00.02 /usr/local/sbin/dhcpleases6 -c /usr/local/bin/php -f /usr/local/sbin/prefixes.php|/bin/sh -l /var/dhcpd/var/db/dhcpd6.leases
    dhcpd      70494  0.0  0.1  20880  10992  -  Ss  Fri04AM    1:05.46 /usr/local/sbin/dhcpd -6 -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid lagg0
    root      72526  0.0  0.0  12404  2004  -  Is    4:57PM    0:00.01 /usr/local/sbin/dhcpleases6 -c /usr/local/bin/php -f /usr/local/sbin/prefixes.php|/bin/sh -l /var/dhcpd/var/db/dhcpd6.leases


  • Banned

    WTH is this lsof nonsense over and over again? And ps auxw? This is not how you check things, as already said above. Also, you have 6 instances of DHCPd running, a bit too much if you ask me.


Log in to reply