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

    Invalid DHCP pool - for LAN subnet 192.168.xx.0/23 detected. Please correct the settings in Services, DHCP Server

    Scheduled Pinned Locked Moved DHCP and DNS
    24 Posts 4 Posters 5.5k Views 4 Watching
    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.
    • johnpozJ Online
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz

      So shouldn't error have gone away after he changed it to /24, etc.. ?

      Good trackdown! I didn't think to look there ;)

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

      1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan
        last edited by Gertjan

        An error like this

        Dec 23 08:47:35 firewall php-fpm[28463]: /services_unbound.php: New alert found: Invalid DHCP pool  -  for LAN subnet 192.168.14.0/23 detected. Please correct the settings in Services, DHCP Server
        

        misses nearly half the information - and that why it's triggered.

        Compare this to the actual error text string :

        $error_msg = sprintf(gettext('Invalid DHCP pool %1$s - %2$s for %3$s subnet %4$s/%5$s detected. Please correct the settings in Services, DHCP Server'), $poolconf['range']['from'], $poolconf['range']['to'], convert_real_interface_to_friendly_descr($dhcpif), $subnet, $ifcfgsn);
        

        Only variables %3$s - %4$s %5$ = 3, 4 and 5 print useful text, which are convert_real_interface_to_friendly_descr($dhcpif), $subnet and $ifcfgsn

        These become 'LAN', '192.168.14.0' and '23' in your case.

        Variable 1 and 2, in that pool, $poolconf['range']['from'] and $poolconf['range']['to'] are probably not defined and/or empty.
        That triggers the error.

        @pyrodex : check you config.xml and compare good relation between :

        	<interfaces>
        ....		<lan>
        			<if>fxp0</if>
        ....
        			<enable></enable>
        ....
        			<ipaddr>192.168.1.1</ipaddr>
        			<subnet>24</subnet>
        

        and

        	<dhcpd>
        		<lan>
        			<range>
        				<from>192.168.1.70</from>
        				<to>192.168.1.253</to>
        			</range>
        ....
        

        Also, are there any 'sub' <pool> in :

        	<dhcpd>
        		<lan>
        ....
        			<pool>
        				<range>
        					<from>192.168.1.210</from>
        					<to>192.168.1.220</to>
        				</range>
        

        ?

        Probably not related :
        Take also a look at this :

        @pyrodex said in Invalid DHCP pool - for LAN subnet 192.168.xx.0/23 detected. Please correct the settings in Services, DHCP Server:

        Dec 23 14:18:16 firewall dhcpleases: Sending HUP signal to dns daemon(46048)

        one second later :

        Dec 23 14:18:17 firewall dhcpleases: Sending HUP signal to dns daemon(46048)
        Dec 23 14:18:17 firewall dhcpleases: Sending HUP signal to dns daemon(46048)

        Check your syslog for more "Sending HUP signal to dns daemon".
        Unbound being restarted many times per minute is not good at all.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          pyrodex @Gertjan
          last edited by

          @Gertjan

          <lan>
                                  <descr><![CDATA[LAN]]></descr>
                                  <if>vmx1</if>
                                  <enable></enable>
                                  <spoofmac></spoofmac>
                                  <ipaddr>192.168.14.1</ipaddr>
                                  <subnet>23</subnet>
                                  <ipaddrv6>track6</ipaddrv6>
                                  <track6-interface>wan</track6-interface>
                                  <track6-prefix-id>1</track6-prefix-id>
                          </lan>
          
           <lan>
                                  <range>
                                          <from>192.168.15.220</from>
                                          <to>192.168.15.240</to>
                                  </range>
                                  <enable></enable>
                                  <failover_peerip></failover_peerip>
                                  <defaultleasetime>86400</defaultleasetime>
                                  <maxleasetime></maxleasetime>                                                                                                      
                                  <netmask></netmask>
                                  <gateway></gateway>                                                                                                                          
                                  <domain>lan</domain>                                                                                                                         
                                  <domainsearchlist>lan;iot;dmz</domainsearchlist>                                                                                             
                                  <ddnsdomain></ddnsdomain>                                                                                                                    
                                  <ddnsdomainprimary></ddnsdomainprimary>                                                                                                      
                                  <ddnsdomainkeyname></ddnsdomainkeyname>                                                                                                      
                                  <ddnsdomainkeyalgorithm>hmac-md5</ddnsdomainkeyalgorithm>                                                                                    
                                  <ddnsdomainkey></ddnsdomainkey>                                                                                                              
                                  <mac_allow></mac_allow>                                                                                                                      
                                  <mac_deny></mac_deny>                                                                                                                        
                                  <ddnsclientupdates>allow</ddnsclientupdates>                                                                                                 
                                  <tftp>192.168.14.31</tftp>                                                                                                                   
                                  <ldap></ldap>                                                                                                                                
                                  <nextserver>192.168.14.31</nextserver>                                                                                                       
                                  <filename>pxelinux.0</filename>                                                                                                              
                                  <filename32>syslinux32.efi</filename32>                                                                                                      
                                  <filename64>syslinux64.efi</filename64>                                                                                                      
                                  <rootpath></rootpath>                                                                                                                        
                                  <numberoptions></numberoptions>  
          

          I fixed it myself by removing all my static maps and re-adding...

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

            So what what wrong with the statics? I looked through them I didn't see anything that was out of scope..

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

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