Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Untangler
    Join Date
    Sep 2008
    Posts
    73

    Default Multiple DHCP ranges/pools?

    Any way to set a DHCP to serve from two ranges/pools on a single interface?

    My network is 192.168.2.0/23.

    Right now my DHCP range is 192.168.3.0/24.

    I'm using 192.168.2.0/24 for some static assignments right now. But I would love to have part of 192.168.2.0/24 available in my DHCP pool.

  2. #2
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    9,096

    Default

    192.168.2.0/23 would cover 192.168.2.1 -> 192.168.3.254
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  3. #3
    Untangler
    Join Date
    Sep 2008
    Posts
    73

    Default

    Quote Originally Posted by jcoffin View Post
    192.168.2.0/23 would cover 192.168.2.1 -> 192.168.3.254
    Yeah but I don't want to use all of 192.168.2.1-254, I've got about 100 addresses in 192.168.2.0/24 I'd like to combine into the current range of 3.1 - 3.254.

  4. #4
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    9,096

    Default

    Set those used 192.168.2.X addresses in the static DHCP Entries list. DHCP will not use those.
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  5. #5
    Untangler
    Join Date
    Sep 2008
    Posts
    73

    Default

    Quote Originally Posted by jcoffin View Post
    Set those used 192.168.2.X addresses in the static DHCP Entries list. DHCP will not use those.
    I might end up having to do something like that. It is actually a very elegant solution that only fails when third-party vendors stard adding stuff to a network w/o any heads-up.

    Another alternative might be to move my wireless clients to their own network.

    It is official, though, this is a feature request: Can we have multiple pools or pools w/ multiple networks for DHCP someday maybe please?

  6. #6
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    25,056

    Default

    Or just adjust your range to start sooner. Untangle already supports multiple pools, but what you're talking about isn't a pool. You're trying to divide a single pool on a single network into two different DHCP assignment sets, and that's bonkers. You have 1 IP pool per broadcast domain.

    192.168.2.0/23 Means 192.168.2.0 - 192.168.3.255. That doesn't mean you have 192.168.2.0/24 and 192.168.3./24, it defines a network of 192.168.2.0/23, with 512 addresses in it.

    Now, you can tell DHCP to hand out 192.168.3.0-254, and that'll work just fine, and it'll never touch 192.168.2.1-255. But you'll note that 192.168.2.255 and 192.168.3.0 are BOTH VALID ADDRESSES FOR USE! That's because you're using 192.168.2.0/23, so the unusable first address is 192.168.2.0, and the broadcast address for the entire scope is 192.168.3.255.

    So if you want to split that 512 address block up for management, just tell DHCP to hand out what you want it to hand out. Reserve what you'd like to reserve. But there's nothing that says you're required to hand the whole thing out. Just hand out the range you want to hand out.

    So what I'm trying to say is, just change your starting IP address in your DHCP range to be in the .2 section somewhere and off it goes. But you need to shatter the idea that you're magically limited by that 3rd octet, that's a human limitation not a technological one.
    Last edited by sky-knight; 07-30-2018 at 12:44 PM.
    jcoffin likes this.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  7. #7
    Untangler
    Join Date
    Sep 2008
    Posts
    73

    Default

    Quote Originally Posted by sky-knight View Post
    Or just adjust your range to start sooner. Untangle already supports multiple pools, but what you're talking about isn't a pool. You're trying to divide a single pool on a single network into two different DHCP assignment sets, and that's bonkers. You have 1 IP pool per broadcast domain.
    I want 192.168.3.1 - 254 and I want 192.168.2.50 - 192.168.2.200. I can setup two pools on my Mikrotik units and accomplish this, it doesn't seem so bonkers?

    Quote Originally Posted by sky-knight View Post
    192.168.2.0/23 Means 192.168.2.0 - 192.168.3.255. That doesn't mean you have 192.168.2.0/24 and 192.168.3./24, it defines a network of 192.168.2.0/23, with 512 addresses in it.

    Now, you can tell DHCP to hand out 192.168.3.0-254, and that'll work just fine, and it'll never touch 192.168.2.1-255. But you'll note that 192.168.2.255 and 192.168.3.0 are BOTH VALID ADDRESSES FOR USE! That's because you're using 192.168.2.0/23, so the unusable first address is 192.168.2.0, and the broadcast address for the entire scope is 192.168.3.255.

    So if you want to split that 512 address block up for management, just tell DHCP to hand out what you want it to hand out. Reserve what you'd like to reserve. But there's nothing that says you're required to hand the whole thing out. Just hand out the range you want to hand out.

    So what I'm trying to say is, just change your starting IP address in your DHCP range to be in the .2 section somewhere and off it goes. But you need to shatter the idea that you're magically limited by that 3rd octet, that's a human limitation not a technological one.
    That doesn't help me if I have a bunch of statics at the top of .2 that I can't easily move w/o calling vendors back.

    I think this would be a helpful feature.

  8. #8
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    9,096

    Default

    Quote Originally Posted by cgallery View Post
    I want 192.168.3.1 - 254 and I want 192.168.2.50 - 192.168.2.200. I can setup two pools on my Mikrotik units and accomplish this, it doesn't seem so bonkers?
    Where is this in the product as I don't see how this is possible unless they are just creating a full width broadcast behind the scenes.
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  9. #9
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    25,056

    Default

    Ahh you need an exclusion range. Because some things use static addresses?

    You'll be happy to know that dnsmasq attempts a ping on every address before it hands it out. If there is a static device there, it won't hand it out.

    So while you cannot as far as I know explicitly say, hey don't use these addresses. As long as the devices in question respond to ICMP echos properly, it doesn't matter those addresses are automatically excluded!

    You could also insert bogus IP reservations in config -> network -> DHCP server -> Static DHCP Entries. This would have the benefit of providing a description field you can use to mark each IP address. It'd be nice if you had proper MAC addresses too, but they aren't required. Statically configured devices won't use the configuration anyway.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  10. #10
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    25,056

    Default

    Oh even better...

    So I assume that 1.) your internal interface is eth1 and 2.) that you've configured its DHCP range to start at 192.168.3.1 and end at 192.168.3.254. And that you'd like to add the second range of 192.168.2.50 - 192.168.2.200.

    If these assumptions are correct, what you need to do is add this line to config -> networking -> advanced -> DNS & DHCP
    Code:
    dhcp-range=tag:eth1,192.168.2.50,192.168.2.200,3600
    Once this is added make sure DNS still resolves on Untangle, because if you screw this line up the service will crash! dnsmasq being offline means no DHCP or DNS for Untangle! So double check that internal is indeed eth1, but if it is this line can be copy/pasted and give you the two separate ranges you want on eth1.

    If you manage to crash dnsmasq, you'll need to SSH into your untangle and issue:

    Code:
    service dnsmasq start
    If you wish to see the configuration file for yourself, it's in /etc/dnsmasq.conf. So for example cat /etc/dnsmasq.conf will show the entire text output, and you can see the dhcp-range directive on any interface so you can duplicate the syntax, but with an additional range.

    dnsmasq can do as many ranges as you want. Untangle's GUI just doesn't do that.
    Last edited by sky-knight; 07-30-2018 at 03:25 PM.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2