Problem with dynamic in static allocations in dhcp
-
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
-
@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.
-
@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
-
@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.
-
@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
-
@g0rck No it shouldn’t unless the networks are not actually separate. Are other devices crossing over?
-
@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.