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

DHCP range has invalid end range value

Scheduled Pinned Locked Moved DHCP and DNS
8 Posts 3 Posters 1.5k 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.
  • S
    seed
    last edited by Jul 6, 2014, 10:59 PM

    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 Jul 6, 2014, 11:29 PM

      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 Jul 6, 2014, 11:34 PM

        @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 Jul 7, 2014, 12:02 AM

          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 Jul 7, 2014, 12:16 AM

            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 Jul 7, 2014, 1:30 AM

              @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 Jul 7, 2014, 2:48 AM

                Cool thank you for clarifying divsys.

                Seed

                1 Reply Last reply Reply Quote 0
                • D
                  divsys
                  last edited by Jul 7, 2014, 8:02 AM

                  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
                  6 out of 8
                  • First post
                    6/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received