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

    DHCP issue

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    40 Posts 6 Posters 11.6k 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
      xbipin
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The post the exact logs from DHCP, without that, nothing can really be determined.

        Also the contents of /var/dhcpd/etc/dhcpd.conf

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • X
          xbipin
          last edited by

          can i give u access to the box rather than posting all mac id here in the forum

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            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.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • X
              xbipin
              last edited by

              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
              
              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                There is no mapping in that config for 0.26, and the DHCP log would be more helpful than the system log.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • X
                  xbipin
                  last edited by

                  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

                  1 Reply Last reply Reply Quote 0
                  • X
                    xbipin
                    last edited by

                    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?

                    1 Reply Last reply Reply Quote 0
                    • X
                      xbipin
                      last edited by

                      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
                      
                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        04:54:53โ€ฆ Is rejecting the IP not the server.

                        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          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.

                          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          1 Reply Last reply Reply Quote 0
                          • X
                            xbipin
                            last edited by

                            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

                            1 Reply Last reply Reply Quote 0
                            • jimpJ
                              jimp Rebel Alliance Developer Netgate
                              last edited by

                              I don't know, but it's definitely the client rejecting the IP.

                              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                              Need help fast? Netgate Global Support!

                              Do not Chat/PM for help!

                              1 Reply Last reply Reply Quote 0
                              • P
                                pierob
                                last edited by

                                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).

                                1 Reply Last reply Reply Quote 0
                                • jimpJ
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by

                                  Yep, most likely it's already in use.

                                  Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                  Need help fast? Netgate Global Support!

                                  Do not Chat/PM for help!

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Metu69salemi
                                    last edited by

                                    Do you happen to have any network printers or accesspoint's (or any other network-using device) which have this address as static?

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

                                      or for that matter .26 setup on another interface on that box that is maybe not connected currently?

                                      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
                                      • X
                                        xbipin
                                        last edited by

                                        there is nothing on 0.26 and never was also

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

                                          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?

                                          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
                                          • jimpJ
                                            jimp Rebel Alliance Developer Netgate
                                            last edited by

                                            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.

                                            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                            Need help fast? Netgate Global Support!

                                            Do not Chat/PM for help!

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