DHCP issue
-
i think something has gone wrong with dhcp coz what i had done is enabled dhcp on lan, then connected all my devices etc so they go ip from pfsense in range 192.168.0.2 - 0.200, then i created a static map for each mac id to each individual ip and then changed the dhcp dynamic pool to 0.111 - 0.250 but for some reason my ipad i had assigned to 0.26 bu it just wont connect and there is no other device on that ip also, systemlog shows dhcpd declined saying not found when the ipad requests for ip, if i remove the static mapping then dhcp should start giving ip from 0.111 onwards but due to something its giving ips starting from 0.189 onwards (earlier i had set a shorter range 0.189 - 250) which means it has remembered that setting but in spite of the new range i told it to give, its not following that and i cant get it to work on static map 0.26 and it might be its reading from some cache and new settings r not applied coz during earlier setup some device might have got 0.26 and now that might be on a different static map and when assigning 0.26 to ipad, dhcpd might be reading some cache and saying not found to avoid some conflict
-
i get a lot od these also in my system log, all clients r on dhcp and nothing specified manually
the xx:xx:xx i have replaced
Sep 30 15:14:42 kernel: arp: 192.168.0.160 moved from b8:17:c2:xx:xx:xx to 14:da:e9:xx:xx:xx on vr0 Sep 30 15:16:13 kernel: arp: 192.168.0.160 moved from 14:da:e9:xx:xx:xx to b8:17:c2:xx:xx:xx on vr0 Sep 30 15:17:45 kernel: arp: 192.168.0.160 moved from b8:17:c2:xx:xx:xx to 14:da:e9:xx:xx:xx on vr0
-
I split this into its own topic because it's not likely related to the topic you posted it under. Always start a new thread unless you're 100% certain the issue is the same.
The ARP messages mean there is an IP conflict on those IPs. Two things are trying to use the same IP. 14:da:e9 is an Asus device, b8:17:c2 is Apple.
-
but the fact is there r no 2 devices using same as i have made a static map for each device and all devices set to dhcp and even if i set a static map for that ipad to say like 0.29 then it works all fine.
the asus mac might be of a repeater but dont the repeaters have no mac of its own as they simply repeat and they r not even supposed to get an ip at all
-
I don't know anything about your network or the devices on it. From what you've posted, you have an IP conflict of some sort, or the traffic is maybe taking two separate paths. The apple device and the asus device are both trying to use 192.168.0.160. How they both got 192.168.0.160 for an IP, I don't know.
Check the DHCP log, the DHCP lease database, and confirm those MACs are actually the devices you think they are.
-
in the logs i just get this error and dhcp declines saying not found.
pfsense is connected to a netgear and dlink wireless access point set in bridge mode so they dont give out any ip but give coverage on each separate floors and they seem to behave just fine, now this asus repeater repeats the signal from the dlink accesspoint and the iphone connects to this dlink with the repeater helping in signal coverage so i guess the ipad once connected then is fine but if it goes out of coverage or switches off then the repeater takes over and that causes the mac id take over on same ip and when device is back again then iphone takes the same ip.
the above is for 160 but the main issue is ip 0.26 im not able to map to ipad mac id, i mean it gets assigned but when ipad requests the ip, dhcpd declines and says not found and in the logs i dont see this mac id changing error for 0.26 as this ipad connects to dlink directly, nothing in between so the mac id changing issue isnt there in that but just dhcpd wont give 0.26 to this ipad
-
The post the exact logs from DHCP, without that, nothing can really be determined.
Also the contents of /var/dhcpd/etc/dhcpd.conf
-
can i give u access to the box rather than posting all mac id here in the forum
-
No, that is not a service we can do for forum users. If you want that level of service, you can subscribe to commercial support, or post a bounty for someone else to take a look at it.
You can partially obscure the MACs if you like, but you've already posted a couple of them and I doubt posting the remaining relevant ones would really do much in the way of harm. If you obscure them, at least leave the first three positions and the last one readable.
-
dhcpd.conf
option domain-name "domain"; option ldap-server code 95 = text; option domain-search-list code 119 = text; default-lease-time 7200; max-lease-time 86400; log-facility local7; ddns-update-style none; one-lease-per-client true; deny duplicates; ping-check true; authoritative; subnet 192.168.0.0 netmask 255.255.255.0 { pool { range 192.168.0.111 192.168.0.250; } option routers 192.168.0.1; option domain-name-servers 192.168.0.1; default-lease-time 600; max-lease-time 1200; } host s_lan_0 { hardware ethernet 00:22:15:xx:xx:ec; fixed-address 192.168.0.2; } host s_lan_1 { hardware ethernet 00:22:15:xx:xx:b7; fixed-address 192.168.0.3; } host s_lan_2 { hardware ethernet 00:22:15:xx:xx:34; fixed-address 192.168.0.4; } host s_lan_3 { hardware ethernet 00:23:54:xx:xx:2f; fixed-address 192.168.0.5; } host s_lan_4 { hardware ethernet 00:22:15:xx:xx:c1; fixed-address 192.168.0.6; } host s_lan_5 { hardware ethernet 00:22:15:xx:xx:a8; fixed-address 192.168.0.7; } host s_lan_6 { hardware ethernet 00:23:54:xx:xx:26; fixed-address 192.168.0.8; } host s_lan_7 { hardware ethernet 00:22:15:xx:xx:00; fixed-address 192.168.0.9; } host s_lan_8 { hardware ethernet 70:d4:f2:xx:xx:ca; fixed-address 192.168.0.21; } host s_lan_9 { hardware ethernet b8:17:c2:xx:xx:8b; fixed-address 192.168.0.22; } host s_lan_10 { hardware ethernet 24:ab:81:xx:xx:64; fixed-address 192.168.0.23; } host s_lan_11 { hardware ethernet 00:1c:c0:xx:xx:32; fixed-address 192.168.0.24; } host s_lan_12 { hardware ethernet f8:7b:7a:xx:xx:ea; fixed-address 192.168.0.25; } host s_lan_13 { hardware ethernet 00:19:e3:xx:xx:bf; fixed-address 192.168.0.27; } host s_lan_14 { hardware ethernet 00:26:9e:xx:xx:79; fixed-address 192.168.0.28; } host s_lan_15 { hardware ethernet 04:54:53:xx:xx:8e; fixed-address 192.168.0.29; } host s_lan_16 { hardware ethernet 00:0b:82:xx:xx:13; fixed-address 192.168.0.100; } host s_lan_17 { hardware ethernet 00:18:f8:xx:xx:9a; fixed-address 192.168.0.101; } host s_lan_18 { hardware ethernet 00:1b:09:xx:xx:21; fixed-address 192.168.0.102; } host s_lan_19 { hardware ethernet 00:1b:09:xx:xx:a5; fixed-address 192.168.0.103; } host s_lan_20 { hardware ethernet 00:1b:09:xx:xx:c0; fixed-address 192.168.0.104; }
system log
Sep 30 21:14:30 kernel: arp: 192.168.0.160 moved from b8:17:c2:xx:xx:8b to 00:1d:0f:xx:xx:cd on vr0 Sep 30 21:16:21 kernel: arp: 192.168.0.160 moved from 00:1d:0f:xx:xx:cd to b8:17:c2:xx:xx:8b on vr0 Sep 30 21:19:23 kernel: arp: 192.168.0.160 moved from b8:17:c2:xx:xx:8b to 00:1d:0f:xx:xx:cd on vr0 Sep 30 21:23:04 kernel: arp: 192.168.0.23 moved from 14:da:e9:xx:xx:1d to 24:ab:81:xx:xx:64 on vr0 Sep 30 21:25:48 kernel: arp: 192.168.0.23 moved from 24:ab:81:xx:xx:64 to 00:1d:0f:xx:xx:cd on vr0 Sep 30 21:25:57 kernel: arp: 192.168.0.23 moved from 00:1d:0f:xx:xx:cd to 24:ab:81:xx:xx:64 on vr0 Sep 30 21:31:17 kernel: arp: 192.168.0.23 moved from 24:ab:81:xx:xx:64 to 00:1d:0f:xx:xx:cd on vr0 Sep 30 21:31:29 kernel: arp: 192.168.0.160 moved from 00:1d:0f:xx:xx:cd to b8:17:c2:xx:xx:8b on vr0 Sep 30 21:36:02 kernel: arp: 192.168.0.160 moved from b8:17:c2:xx:xx:8b to 00:1d:0f:xx:xx:cd on vr0
-
There is no mapping in that config for 0.26, and the DHCP log would be more helpful than the system log.
-
yes it wasnt working so i made a map to 0.29 to make it work, the person is offline as of now so by tomorrow ill move the static map to 0.26 and get u fresh logs of dhcp.
would it help to delete theย dhcplease files manually and reboot pfsense to make it forget about any cache etc or past leases
-
bytheway r repeaters designed to work such that they move the mac to ip to theirs when device is off then again move device mac to p when its back on again?
-
i delete the dhcplease files manually and also rebooted and still dhcp declines lease on static map 0.26
Sep 30 22:10:14 dhcpd: DHCPDECLINE of 192.168.0.26 from 04:54:53:xx:xx:8e via vr0: not found Sep 30 22:10:24 dhcpd: DHCPDISCOVER from 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:24 dhcpd: DHCPOFFER on 192.168.0.26 to 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:25 dhcpd: DHCPREQUEST for 192.168.0.26 (192.168.0.1) from 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:25 dhcpd: DHCPACK on 192.168.0.26 to 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:26 dhcpd: DHCPDECLINE of 192.168.0.26 from 04:54:53:xx:xx:8e via vr0: not found Sep 30 22:10:36 dhcpd: DHCPDISCOVER from 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:36 dhcpd: DHCPOFFER on 192.168.0.26 to 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:37 dhcpd: DHCPREQUEST for 192.168.0.26 (192.168.0.1) from 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:37 dhcpd: DHCPACK on 192.168.0.26 to 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:39 dhcpd: DHCPDECLINE of 192.168.0.26 from 04:54:53:xx:xx:8e via vr0: not found Sep 30 22:10:49 dhcpd: DHCPDISCOVER from 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:49 dhcpd: DHCPOFFER on 192.168.0.26 to 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:50 dhcpd: DHCPREQUEST for 192.168.0.26 (192.168.0.1) from 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:50 dhcpd: DHCPACK on 192.168.0.26 to 04:54:53:xx:xx:8e via vr0 Sep 30 22:10:51 dhcpd: DHCPDECLINE of 192.168.0.26 from 04:54:53:xx:xx:8e via vr0: not found
-
04:54:53โฆ Is rejecting the IP not the server.
-
What I mean by that is that the server is offering the client 0.26. The client is rejecting 0.26 and then asking for a different IP.
Why the client is rejecting 0.26, I don't know, but it's still something the client is doing, not the server.
As for the repeater changing the MAC, some might do that if they aren't in a true bridged mode. Under normal/desirable circumstances it shouldn't be doing that for client traffic.
-
how is that possible coz its on dhcp and even if i static map to 0.29 then it will accept it and everything works
-
I don't know, but it's definitely the client rejecting the IP.
-
From RFC2131:
"If the server receives a DHCPDECLINE message, the client has discovered through some other means that the suggested network address is already in use. The server MUST mark the network address as not available and SHOULD notify the local system administrator of a possible configuration problem."Maybe you can check on 04:54:53 system logs the reason why it declines the offer (e.g. what these other means are).
-
Yep, most likely it's already in use.
-
Do you happen to have any network printers or accesspoint's (or any other network-using device) which have this address as static?
-
or for that matter .26 setup on another interface on that box that is maybe not connected currently?
-
there is nothing on 0.26 and never was also
-
Well it sure looks like the box is declining the .26 address.ย Why would it do that unless it believes there is something else on the .26?
If you say it accepts .29 โ why not just change your reservation for it to be on .29?
-
Try to assign 0.26 to something that would give you more verbose DHCP logging output - like another pfSense box/vm, a linux box, etc.
If it also rejects 0.26 you'd at least get a better answer about why.
-
there is nothing else on 0.26 because all devices r on dhcp, no static ip assigned to any devoce at all and nor does pfsense show it giving it out to any device because the pool starts and ends in a different range. all my deivces have static mapping in pfsense so there isnt anything magically conencting to it by any chance. i can always just use the 0.29 but if its a bug it needs to be traced and fixed, also if there is any other deivce with same ip then the dhcp gives a different message i guess, like not available or so which i guess any1 can try it out.
ill try to assign 0.26 to some other device and see what the logs show
-
It is not a bug on pfSense. If it is a bug, it's a bug on the DHCP client, not pfSense.
pfSense can't make a client tell pfSense to reject an IP - the client is generating that response - not the firewall. There is nothing to "trace" or fix.
-
i just assigned the same 0.26 to a grandstream voip phone and it seems pfsense gave it out just fine this time and the phone was able to call out also without issues but as soon as i switch my ipad to 0.26, its the same old declining message.
also tried overlapping devices with same ip and it seems dhcpd says unavailable as message but not "not found"
-
There you have it thenโฆ it's a problem with the iPad DHCP client somehow. Why, it's difficult/impossible to say, but it's the client for sure.
-
if its the ipad then y does it work on 0.29?
-
No idea, that's a question for Appleโฆ
-
ok lets just forget it, ill avoid 0.26 for the ipad
-
Clearly a strange issue to be sure, do you have a different ipad you could try an assign the .26 too? ย is it some weird bug in the OS or the dhcpclient on the devices or something specific on that device. ย Could it at one time been assigned .26 as static or from some other dhcp server and now it is rejecting that?
-
i dont have enough money to buy another, mayb some1 can donate 1 :)
ipad is on the latest ios version, all the wireless access points have dhcp disabled so there is nothing else giving out ips
-
And your ipad has never been on any other network?ย Ever??
-
same isp using netgear router earlier before i replaced it with alix and pfsense but its on dhcp ever since i got it
-
so did you give it .26 before when it was on the netgear network?
Maybe if it got .26 from different dhcp server is why it declines .26 from this dhcp server?
-
on netgear it didnt assign any static map, the router used to handle automatically and i guess the range on that was 192.168.1.2-254 and i use 192.168.0.1 as pfsense same subnet
-
Very strange - but as stated its not something related to pfsense, pfsense is clearly making the offer and your client says no for some reason..ย Would need to look on that device dhcpclient log to why it declines it.
-
Reset the network settings on the iPad and see if that helps. Maybe the iPad has been on another network and had the 0.26 address there. Just guessing ;)