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

    Problem with dynamic in static allocations in dhcp

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 4 Posters 876 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.
    • G
      g0rck
      last edited by

      Hello, I have the following configuration in my pfsense at home:

      • WAN -> Internet
      • LAN_Guests -> 192.168.1.1
      • LAN_Home -> 192.168.2.1

      In the dhcp server, I have both interfaces with dhcp server active and the idea is to have a pool of ips like 192.168.1.10 to 192.168.1.100 for guest devices that only have internet access.

      On the other hand, I want to have static dhcp reservations for my mobile, tablet, laptop, etc. in the lan_casa.

      What happens to me, but not always, is random, is that I get home, and my mobile connects to the wifi (through an ap) and sometimes it takes the ip from the free pool of ips from the lan_guests and other times from the reserve home_lan static.

      It also happens to me with the rest of the devices, sometimes they take their own reservation in the home_lan and sometimes they take a random ip from the guest_lan pool.

      What could be happening to make it skip the static reservation and take a free IP from the pool?

      No matter how I think about it, I can't understand it.

      Thanks

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @g0rck
        last edited by

        @g0rck
        I'm wondering, how you did that set up.
        On each L2 can reside only one DHCP server. When devices connect to this L2 they will broadcast a DHCP request and only the one server will respond to it.

        However, if using static mappings ensure that you don't have "private MAC" activated on the mobile.

        G 1 Reply Last reply Reply Quote 0
        • G
          g0rck @viragomann
          last edited by

          @viragomann In Services -> DHCP Server, the interfaces that you have configured in pfsense appear.

          I enabled dhcp server on both interfaces (guest_lan and home_lan).

          In LAN_Guests I configured a range 192.168.1.10 to 192.168.1.100 enabling it to allow all clients.
          In LAN_home , it is active for "Allow known clients from only this interface" and here I only have static reservations assigned by mac.

          Well, these static reservations are sometimes assigned correctly and other times the client goes to the free pool of LAN_Guests.

          On the mobile I have configured "Use device mac" not "Use random mac", but it also happens to me on the laptop for example.

          Thanks

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @g0rck
            last edited by

            @g0rck Any chance the two networks are connected together? The device will get an address from the first server responding. Windows Server will stop its DHCP if it sees another on the network but most others do not.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            G 1 Reply Last reply Reply Quote 0
            • G
              g0rck @SteveITS
              last edited by

              @steveits Hello, I only have one dhcp server, which is pfsense but I have dhcp configured on 2 pfsense interfaces, each interface with its ip range. This would be the same as having two dhcps?.

              I understand that I only have one dhcp server, with two ranges of ips, if I have a static reservation made manually, it shouldn't assign an ip from the other range, right?

              thanks

              S johnpozJ 2 Replies Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @g0rck
                last edited by

                @g0rck No it shouldn’t unless the networks are not actually separate. Are other devices crossing over?

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

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

                  @g0rck yeah how exactly are lan_guest and lan_home isolated.. You have 1 as a vlan? You have a vlan switch? You have them plugged into 2 different switches.

                  Making to interfaces with different IP ranges and them into some dumb switch doesn't isolate the networks.

                  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 24.11 | Lab VMs 2.8, 24.11

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