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

    DHCP range has invalid end range value

    DHCP and DNS
    3
    8
    1.5k
    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.
    • S
      seed
      last edited by

      This bug has been around for a few versions. Does anyone know how to get around it?

      The end range is obviously wrong and if I try and set a range 192.168.0.100 - 192.168.0.200, it says it's out of bounds when clearly it shouldn't be.

      1 Reply Last reply Reply Quote 0
      • D
        divsys
        last edited by

        Your subnet mask is wrong, you have 255.255.255.255 giving you a valid range of 192.168.0.2 to 192.168.0.0 or less than nothing.

        Increase your subnet mask to give you the range of addresses you want - typically /24 would be 255.255.255.0 giving you 192.168.0.2 - 192.168.0.254

        -jfp

        1 Reply Last reply Reply Quote 0
        • S
          seed
          last edited by

          @divsys:

          Your subnet mask is wrong, you have 255.255.255.255 giving you a valid range of 192.168.0.2 to 192.168.0.0 or less than nothing.

          Increase your subnet mask to give you the range of addresses you want - typically /24 would be 255.255.255.0 giving you 192.168.0.2 - 192.168.0.254

          Hmm you're right but I don't recall setting this anywhere. I'll have to look to see where this is configured.

          1 Reply Last reply Reply Quote 0
          • S
            seed
            last edited by

            So is there any other way to set this explicitly than to create them either over SSH or console? That was the only way I could set the correct subnet mask where I could tell. I couldn't find it anywhere in the GUI.

            1 Reply Last reply Reply Quote 0
            • D
              divsys
              last edited by

              It's part of the interface definition:

              Interfaces->Lan0->IPv4 Address and chose "24" from the drop down list of CIDR masks.

              It's defaults to /32 on interfaces other than LAN if I remember right, so it's easy to miss.

              -jfp

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                @seed:

                This bug has been around for a few versions. Does anyone know how to get around it?

                Not a bug, your interface is a /32 which means it's in its own world, nothing else on that subnet. It's correct in preventing you from configuring what you're trying to configure, as it's invalid. As divsys noted:

                @divsys:

                Interfaces->Lan0->IPv4 Address and chose "24" from the drop down list of CIDR masks.

                1 Reply Last reply Reply Quote 0
                • S
                  seed
                  last edited by

                  Cool thank you for clarifying divsys.

                  Seed

                  1 Reply Last reply Reply Quote 0
                  • D
                    divsys
                    last edited by

                    No problem, I'm happy to say I learn a little more every day I check through the forums  :)

                    -jfp

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