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

    Clarification of DHCP and Static IPs?

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 2 Posters 995 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.
    • X
      XrayDoc88
      last edited by

      I have a device that I'd like it to always have the same IP address. Currently, I'm not certain if I can set a static IP address in the device. I understand that DHCP IP "reservations" aren't guaranteed, but are only a preference. If the device is turned off, it could lose that specific IP. There is an option to specify an IP address outside of the DHCP pool, however.

      My DHCP pool is currently set for .101-.200. Does this mean that if I specify an IP address for the device of .210 in pfSense, that the DHCP server will actually assign that device .210, using it's MAC address? I've not encountered this type of behavior before, where a specific IP outside of the DHCP range can still be assigned automatically. Perhaps I'm misunderstanding how this works? Thanks!

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @XrayDoc88
        last edited by

        @xraydoc88

        If you want a "static" address via DHCP, you make a static mapping of the MAC to the desired IP address. This is done at the bottom of the DHCP server page. Any static mapped addresses must be outside of the DHCP pool.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        X 1 Reply Last reply Reply Quote 1
        • X
          XrayDoc88 @JKnott
          last edited by

          @jknott

          Thanks for that clarification. I thought that might be the case, but simply wasn't sure that pfSense would actually assign that static IP to the device.

          I noticed that you're using a Qotom mini PC for pfSense. I have "built" two of those myself. They seem to work great. Much smaller and nicer to use than my previously repurposed full tower machine. :)

          JKnottJ 1 Reply Last reply Reply Quote 0
          • JKnottJ
            JKnott @XrayDoc88
            last edited by

            @xraydoc88

            Yes, I am quite happy with the Qotom. I had previously used a HP compact desktop computer, but it died.

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

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