Navigation

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

    Static mappings are being ignored

    DHCP and DNS
    4
    5
    1314
    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.
    • S
      shapeshifter910 last edited by

      Hi,
      I have pfsense 2.2.6 serving as a dhcp server to a few computers (about 10) and about 5 voip phones
      I've noticed that one computer (Windows 7 pro) and one voip phone (Cisco 504) kept getting same dhcp address even though I've specifically mapped static ip for their MACs.
      It took me a long time and many reboots to get it to finally map to the assigned ip.
      Anybody else had this problem?
      This started around pfsense 2.2.x (maybe 2.2.4?), never had this kind of problem before.

      1 Reply Last reply Reply Quote 0
      • chpalmer
        chpalmer last edited by

        Delete the original address from the status page.

        Triggering snowflakes one by one..

        1 Reply Last reply Reply Quote 0
        • S
          shapeshifter910 last edited by

          @chpalmer:

          Delete the original address from the status page.

          I would but the delete option is not there. Not for online devices anyway.
          I suppose I could turn off the computer or voip phone and then delete the dhcp lease.
          But why are mappings being ignored?
          If I map a MAC address to a specific IP, why would the dhcp server happily renew the same dynamic address and ignore my mapping?

          1 Reply Last reply Reply Quote 0
          • H
            hameno last edited by

            Same problem here, static should have preference over any old dynamic lease.

            1 Reply Last reply Reply Quote 0
            • johnpoz
              johnpoz LAYER 8 Global Moderator last edited by

              ^ that is not how it works..  The client requests his old lease, his lease is still there so sure the dhcp server will give it out.

              You can get with the writer of the dhcp server if you feel it should be smart enough to say oh you have a reservation I can not give you the old lease you had with me, I can only give you this new reservation.  That sort of code is not a pfsense thing but a dhcp server thing.

              but guess you could put in feature request to allow pfsense gui to delete what it sees is a live.  But a simple solution is to just stop dhcp server, edit the lease file to remove your specific lease or just delete the lease file and let it rebuild.

              rm /var/dhcpd/var/db/dhcpd.leases

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              2440 2.4.5p1 | 2x 3100 2.4.4p3 | 2x 3100 22.01 | 4860 22.05

              1 Reply Last reply Reply Quote 0
              • First post
                Last post