• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

DHCP Not Working on LAN

Scheduled Pinned Locked Moved DHCP and DNS
10 Posts 3 Posters 3.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    yakar
    last edited by Mar 4, 2013, 8:19 AM

    pfSense 2.0.2 and configuration:

    LAN: 192.168.2.0
    Netmask: 255.255.255.0
    IP Range: 192.168.2.1 - 192.168.2.254

    dhcpd.conf:

    
    option domain-name "mydomainname";
    option ldap-server code 95 = text;
    option domain-search-list code 119 = text;
    
    default-lease-time 7200;
    max-lease-time 86400;
    log-facility local7;
    ddns-update-style none;
    one-lease-per-client true;
    deny duplicates;
    ping-check true;
    authoritative;
    subnet 192.168.2.0 netmask 255.255.255.0 {
            pool {
                    range 192.168.2.1 192.168.2.250;
            }
            option routers 192.168.2.1;
            option domain-name-servers 192.168.2.1;
    
    }
    host s_lan_0 {
            hardware ethernet 18:28:61:52:00:00;
            fixed-address 192.168.2.251;
    }
    host s_lan_1 {
            hardware ethernet 18:28:61:52:00:00;
            fixed-address 192.168.2.252;
    }
    host s_lan_2 {
            hardware ethernet 18:28:61:57:00:00;
            fixed-address 192.168.2.253;
    }
    
    

    /var/log/dhcpd.log:

    
    Mar  4 10:23:39 firewall dhcpd: Internet Systems Consortium DHCP Server 4.2.4-P1
    Mar  4 10:23:39 firewall dhcpd: Copyright 2004-2012 Internet Systems Consortium.
    Mar  4 10:23:39 firewall dhcpd: All rights reserved.
    Mar  4 10:23:39 firewall dhcpd: For info, please visit https://www.isc.org/software/dhcp/
    Mar  4 10:23:39 firewall dhcpd: Wrote 0 deleted host decls to leases file.
    Mar  4 10:23:39 firewall dhcpd: Wrote 0 new dynamic host decls to leases file.
    Mar  4 10:23:39 firewall dhcpd: Wrote 0 leases to leases file.
    Mar  4 10:23:39 firewall dhcpd: Listening on BPF/re0/54:e6:fc:81:dd:18/192.168.2.0/24
    Mar  4 10:23:39 firewall dhcpd: Sending on   BPF/re0/54:e6:fc:81:dd:18/192.168.2.0/24
    Mar  4 10:23:39 firewall dhcpd: Sending on   Socket/fallback/fallback-net
    Mar  4 10:23:40 firewall dhcpd: There's already a DHCP server running.
    Mar  4 10:23:40 firewall dhcpd:
    Mar  4 10:23:40 firewall dhcpd: If you did not get this software from ftp.isc.org, please
    Mar  4 10:23:40 firewall dhcpd: get the latest from ftp.isc.org and install that before
    Mar  4 10:23:40 firewall dhcpd: requesting help.
    Mar  4 10:23:40 firewall dhcpd:
    Mar  4 10:23:40 firewall dhcpd: If you did get this software from ftp.isc.org and have not
    Mar  4 10:23:40 firewall dhcpd: yet read the README, please read it before requesting help.
    Mar  4 10:23:40 firewall dhcpd: If you intend to request help from the dhcp-server@isc.org
    Mar  4 10:23:40 firewall dhcpd: mailing list, please read the section on the README about
    Mar  4 10:23:40 firewall dhcpd: submitting bug reports and requests for help.
    Mar  4 10:23:40 firewall dhcpd:
    Mar  4 10:23:40 firewall dhcpd: Please do not under any circumstances send requests for
    Mar  4 10:23:40 firewall dhcpd: help directly to the authors of this software - please
    Mar  4 10:23:40 firewall dhcpd: send them to the appropriate mailing list as described in
    Mar  4 10:23:40 firewall dhcpd: the README file.
    Mar  4 10:23:40 firewall dhcpd:
    Mar  4 10:23:40 firewall dhcpd: exiting.
    
    

    dhcpd not work..  :-\

    Bilgi paylaştıkça artar!
    5651 sayılı kanun (güncel)
    pfSense alt yapısı üzerine kurulu iSafe ile işletmelere özel çözümler.

    1 Reply Last reply Reply Quote 0
    • C Offline
      cmb
      last edited by Mar 4, 2013, 9:30 AM

      Sounds like a stale PID got left behind somehow. Diag>Command, run:

      rm /var/run/dhcpd.pid

      Then browse to Status>Services and click Start. Suspect that'll fix it and it's unlikely to recur.

      1 Reply Last reply Reply Quote 0
      • Y Offline
        yakar
        last edited by Mar 4, 2013, 12:34 PM

        rm dhcpd.pid

        not work :'(

        Bilgi paylaştıkça artar!
        5651 sayılı kanun (güncel)
        pfSense alt yapısı üzerine kurulu iSafe ile işletmelere özel çözümler.

        1 Reply Last reply Reply Quote 0
        • Y Offline
          yakar
          last edited by Mar 4, 2013, 12:36 PM

          There is not any error log in syslogs > System or DHCP tab..

          Bilgi paylaştıkça artar!
          5651 sayılı kanun (güncel)
          pfSense alt yapısı üzerine kurulu iSafe ile işletmelere özel çözümler.

          1 Reply Last reply Reply Quote 0
          • W Offline
            wallabybob
            last edited by Mar 4, 2013, 12:44 PM

            @AydinY:

            rm dhcpd.pid

            not work :'(

            Please elaborate: You got an error report on attempting to remove the file? (Did you actually type the full path given?)
            The rm command didn't report anything and dhcpd didn't restart?

            1 Reply Last reply Reply Quote 0
            • Y Offline
              yakar
              last edited by Mar 4, 2013, 12:55 PM

              cd /var/run/; rm dhcpd.pid

              dhcpd.pid is empty and deleted successful. Status > Services > DHCPD  Start..

              
              [2.0.2-RELEASE][root@mydomainname]/var/run(14): ps aux | grep dhcpd
              root   26572  0.0  0.1  4956  2552  ??  Is    9:58AM   0:00.10 /usr/sbin/syslogd -c -c -l /var/dhcpd/var/run/log -f /var/etc/syslog.conf
              root   13791  0.0  0.1  3524  1264   0  S+    3:02PM   0:00.00 grep dhcpd
              
              

              ???

              Bilgi paylaştıkça artar!
              5651 sayılı kanun (güncel)
              pfSense alt yapısı üzerine kurulu iSafe ile işletmelere özel çözümler.

              1 Reply Last reply Reply Quote 0
              • Y Offline
                yakar
                last edited by Mar 4, 2013, 2:01 PM

                im fixed error:

                cat /var/dhcpd/var/run/dhcpd.pid
                  hardwa

                rm /var/dhcpd/var/run/dhcpd.pid

                and Services > Dhcpd > Start..

                why "hardwa" in the pid file? any have a idea?

                Bilgi paylaştıkça artar!
                5651 sayılı kanun (güncel)
                pfSense alt yapısı üzerine kurulu iSafe ile işletmelere özel çözümler.

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  yakar
                  last edited by Mar 4, 2013, 2:12 PM

                  i think this is a bug..

                  Bilgi paylaştıkça artar!
                  5651 sayılı kanun (güncel)
                  pfSense alt yapısı üzerine kurulu iSafe ile işletmelere özel çözümler.

                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    wallabybob
                    last edited by Mar 4, 2013, 8:34 PM

                    @AydinY:

                    i think this is a bug..

                    I agree.

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cmb
                      last edited by Mar 5, 2013, 12:21 AM

                      There have very rarely been issues with stale dhcpd PIDs going back years, maybe happened a handful of times, and good luck replicating it. We don't touch the dhcpd.pid contents at all, whatever ends up in that file is put there by ISC dhcpd.

                      1 Reply Last reply Reply Quote 0
                      10 out of 10
                      • First post
                        10/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received