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

    DHCP Static Mappings

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 4 Posters 1.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.
    • R Offline
      rmessina
      last edited by

      We are having a problem with some of our static mappings.  The network design is not ideal as a previous administrator did not have the knowledge to manage our layer 2 switches. Now we are in a precarious position of having a /23 network, distributing addresses from one half of the scope using dhcp and setting reservations for the other half. 172.24.44.0/23 is the network on the interface. DHCP distributes 172.24.44.50-254.  Static reservations are made to place certain PCs that require a particular policy in the 172.24.45.0/23 half of the scope.  This works for some clients but not all.  The static mapping will be placed but the client will still pull the old 172.24.44.x address.  I did just trying listing all the DHCP leases and finding the "expired, offline" lease and deleting it manually.  The client was then able to pull the proper 172.24.45.x address assigned via a static mapping. Why are all of the expired, offline leases staying in the table? I've read some other threads on this issue but I did not get a clear answer.  I have some PCs that are having this issue but the mapping shows as expired, online. Even though the PC is no longer on the network.  Please advise on this strange behavior.

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

        Well if what you want is 2 vlans of /24 each - why don't you just do that??

        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
        SG-4860 25.07.1 | Lab VMs 2.8.1, 25.07.1

        1 Reply Last reply Reply Quote 0
        • awebsterA Offline
          awebster
          last edited by

          @rmessina:

          Why are all of the expired, offline leases staying in the table? I've read some other threads on this issue but I did not get a clear answer.

          That is the behavior of dhcpd. 
          You could also try forcing the client to relinquish its IP before requesting a new one.
          On windows clients:
          ipconfig /release
          followed by
          ipconfig /renew

          –A.

          –A.

          1 Reply Last reply Reply Quote 0
          • E Offline
            Ecnerwal
            last edited by

            Actually, this is a change in behavior. On 2.0 when you selected a DHCP client and reserved it an address, "cleanup" was done (I don't know the details of "how" it was done, but it observably worked) so that the client got the reserved address without further intervention.

            On 2.2.4 you have to manually track and kill the prior in-pool reservation.

            The 2.0 behavior was considerably more intuitive to work with when reserving addresses.

            pfSense on i5 3470/DQ77MK/16GB/500GB

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.