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

    Client does not get address in specified range

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 1.1k 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.
    • D Offline
      ducasse
      last edited by

      Hi,

      The LAN interface is on 192.168.0.0/24, and I specified the DHCP range as 192.168.0.175-192.168.0.199, but almost all clients have static mappings outside this range. When I now start a new VM (without a static mapping), it gets 192.168.0.12 - why is that? Shouldn't it get an address from the range I specified? Is there something I misunderstand here?

      1 Reply Last reply Reply Quote 0
      • M Offline
        muswellhillbilly
        last edited by

        If you disable the DHCP service on the firewall does your client still receive an address? If so, you probably have another DHCP server operating on your network.

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

          Yeah if your getting ips outside the range that would point to different dhcp server to be honest..  Was the range modified and there might of been an old lease hanging around?  If not then yeah look for another dhcp server..

          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
          • D Offline
            ducasse
            last edited by

            No, sorry, I should have provided a lot more information. There is no other DHCP server on the network, I moved all the gateway functionality off an OpenWRT router to a PC with pfSense, but I've shut down the DHCP server on the OpenWRT box and confirmed that it's not running. Furthermore, when I reboot the VM I get this in the DHCP log on the pfSense gateway:

            dhcpd: DHCPACK on 192.168.0.12 to 52:54:00:xx:xx:xx (vivid-vm) via re0

            This is a fresh install, I just adjusted the DHCP range, added the static leases, restarted the service and booted the VM.

            Any clues on what I can examine, as I'm really lost here?

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

              yeah if your saying you adjusted the range, there is prob an OLD lease the client is asking for…  You need to delete that lease off pfsense, since the client is prob asking for it.. You can sniff the dhcp packets and look for the discover..

              Make sure you look in all the pfsense leases and delete the OLD one..

              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
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.