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

Problem with DHCP leases status from snapshot 07-01-2007

Scheduled Pinned Locked Moved DHCP and DNS
11 Posts 5 Posters 4.6k 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.
  • B
    Bredys
    last edited by Jan 15, 2007, 6:31 PM

    Greetings,

    i have a problem … i updated to snapshot 07.01.2007 and after this update i dont see any dhcp leases in dhcp leases status (only static adress)
    I tried upgrade to lastest snapshot 13.01.2007 but dhcp leases status had same problem.

    When i downgrade to snapshot 12-28-2006 dhcp status work fine !

    1 Reply Last reply Reply Quote 0
    • S
      Superman
      last edited by Jan 15, 2007, 7:02 PM

      I can confirm the same problem, exactly as stated.

      1 Reply Last reply Reply Quote 0
      • D
        databeestje
        last edited by Jan 15, 2007, 9:24 PM

        Would you mind pasting parts of the dhcpd.leases file from /var/db/dhcpd/var/db/dhcpd.leases

        
        # ls -l /var/dhcpd/var/db/dhcpd.leases
        -rw-r--r--  1 root  _dhcp  466 Jan 15 21:27 /var/dhcpd/var/db/dhcpd.leases
        
        

        and

        
        # more /var/dhcpd/var/db/dhcpd.leases
        # more /var/dhcpd/var/db/dhcpd.leases
        # All times in this file are in UTC (GMT), not your local timezone.   This is
        # not a bug, so please don't ask about it.   There is no portable way to
        
        

        I would very much like to see what it looks like. I have a hunch, but I am not sure. I have rewritten this page because it was very slow and I think I might forgotten a case. But I need a working dhcpd.leases example for this.

        1 Reply Last reply Reply Quote 0
        • D
          databeestje
          last edited by Jan 15, 2007, 10:11 PM

          Fixed in CVS

          1 Reply Last reply Reply Quote 0
          • V
            Vescovo
            last edited by Jan 18, 2007, 8:35 AM

            In case you did not catch all of the problem with the DHCP status page.
            The "hostname" entries for the dynamically allocated IPs are missing from the Status page.

            One of the entries in the DHCPD.leases file for the
            1.0.1-SNAPSHOT-01-13-2007 built on Thu Jan 18 00:33:06 EST 2007

            lease 192.168.1.179 {
              starts 4 2007/01/18 07:09:10;
              ends 4 2007/01/18 09:09:10;
              tstp 4 2007/01/18 09:09:10;
              binding state active;
              next binding state free;
              hardware ethernet 00:07:95:xx:xx:xx;
            }

            The /etc/hosts file does not contain a corresponding IP hostname entry.

            1 Reply Last reply Reply Quote 0
            • D
              databeestje
              last edited by Jan 18, 2007, 9:09 AM

              if the dhcpd.leases file does not contain the client-hostname field I can not show it on the status page either.

              I have a lot of dynamically connected clients here and those hostnames are shown normally.

              1 Reply Last reply Reply Quote 0
              • V
                Vescovo
                last edited by Jan 18, 2007, 9:43 PM Jan 18, 2007, 8:47 PM

                Thanks databeestje,
                It appears that WinXp DHCP Clients send the hostname to the DHCP server an it logs

                lease 192.168.1.176 {
                  starts 4 2007/01/18 17:42:27;
                  ends 4 2007/01/18 19:42:27;
                  binding state active;
                  next binding state free;
                  hardware ethernet 00:0b:xx:xx:xx:xx;
                  uid "\xxx\xxx\xxx\xxx\xxxxx";
                  client-hostname "Calico";
                }

                whereas the Ubuntu 6.10 release dhcp3 client does not send its hostname to the pfsense DHCP server unless;

                send host-name "ServerName"

                is added to the /etc/dhcp3/dhclient.conf file.

                "ServerName" must be specified manually since hostname does not pipe through.

                is there a better way?

                Please note that the "ServerName" does not appear in the Edit static mappings Hostname entry Box

                1 Reply Last reply Reply Quote 0
                • D
                  databeestje
                  last edited by Jan 18, 2007, 9:43 PM

                  There is a dhcp server knob to register dhcp hostnames in the DNS server.

                  But that still requires the client to send the hostname.

                  It's issue with Ubuntu, take it up with them. Knoppix and grml do send (generated) hostnames to the dhcp server.

                  1 Reply Last reply Reply Quote 0
                  • V
                    Vescovo
                    last edited by Jan 18, 2007, 10:09 PM

                    Both
                    Register DHCP leases in DNS forwarder
                    Register DHCP static mappings in DNS forwarder
                    are enabled.

                    Version 1.0.1 transfered the hostname from the dynamic Hostname entry to the
                    Edit static mappings Hostname entry Box. Current version does not. If that is the way it is supposed to work ok.

                    Issues with Ubuntu were just a reference for others with the same problem.
                    Thanks again

                    1 Reply Last reply Reply Quote 0
                    • R
                      rsw686
                      last edited by Jan 23, 2007, 2:07 AM

                      @Vescovo:

                      Both
                      Register DHCP leases in DNS forwarder
                      Register DHCP static mappings in DNS forwarder
                      are enabled.

                      Version 1.0.1 transfered the hostname from the dynamic Hostname entry to the
                      Edit static mappings Hostname entry Box. Current version does not. If that is the way it is supposed to work ok.

                      Issues with Ubuntu were just a reference for others with the same problem.
                      Thanks again

                      I have corrected the issue of the hostname not being transfered to the edit static mappings hostname field. This fix should appear in a snapshot in the next few days.

                      1 Reply Last reply Reply Quote 0
                      • V
                        Vescovo
                        last edited by Jan 23, 2007, 3:33 PM

                        thanks rsw686

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