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

DHCP pools with IP Aliases

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
6 Posts 4 Posters 3.4k 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.
  • J Offline
    jnorell
    last edited by Jun 2, 2010, 10:00 PM

    I have configured multiple ip aliases on an interface (6 aliases + 1) and would like to serve DHCP clients out of all those ip addr ranges, but the user interface only supports the base ip address, and doesn't allow entering multiple pools or even a single pool from one of the other ranges.  This is with the latest snapshot (2010/06/01).

    Thank you, whomever added ip alias support!  This is a long-awaited feature.

    1 Reply Last reply Reply Quote 0
    • C Offline
      cmb
      last edited by Jun 2, 2010, 11:45 PM

      DHCP for such scenarios won't be supported in 2.0, maybe in the future. When you have multiple IP subnets like that you should use VLANs or multiple physical interfaces, not throw a bunch of subnets on one interface. Sometimes it's unavoidable, but it's generally a bad practice. Doing DHCP that way would be difficult at best, not sure how it could differentiate between subnets unless you had reservations for everything, even at that I'm not sure if dhcpd could handle such scenarios.

      1 Reply Last reply Reply Quote 0
      • E Offline
        Efonnes
        last edited by Jun 3, 2010, 12:15 AM

        I seem to recall reading that someone did it by passing the options for it in the custom options field.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jimp Rebel Alliance Developer Netgate
          last edited by Jun 3, 2010, 1:31 PM

          Multiple interfaces or VLANs is definitely the way to go there. You really need each subnet to be in its own separate layer 2 broadcast domain, not just a subnet, if you want to use multiple DHCP subnets.

          That said, it looks like ISC DHCPD supports this somewhat, though it does not work like the OP wants it to work (emphasis mine):

          The  shared-network  statement  is  used to inform the DHCP server that
          some IP subnets actually share the same physical network.  Any  subnets
          in  a  shared network should be declared within a shared-network state-
          ment.  Parameters specified in the  shared-network  statement  will  be
          used  when  booting clients on those subnets unless parameters provided
          at the subnet or host level override them.  If any subnet in  a  shared
          network has addresses available for dynamic allocation, those addresses
          are collected into a common pool for that shared network  and  assigned
          to  clients  as needed.  There is no way to distinguish on which subnet
          of a shared network a client should boot.

          Name should be the name of the shared network.  This name is used when
          printing debugging messages, so it should be descriptive for the shared
          network.  The name  may  have  the  syntax  of  a  valid  domain  name
          (although  it  will  never be used as such), or it may be any arbitrary
          name, enclosed in quotes.

          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
          • J Offline
            jnorell
            last edited by Jun 4, 2010, 3:11 PM

            We do use ISC dhcpd for that now.  I'd disagree with that quote saying there's "no way" to put a client on a subnet, we accomplish that by assigning specific clients (based on hardware addr) to a class and limitting what classes can be assigned out of specific pools.  We don't need that for the current setup, but it is possible.

            So given the one-pool-per-interface limitation, it does seem like you should still be able to pick an addr pool from one of the alias subnets.  I'll just stick to dhcp relay for our needs, thanks for the pointers/info.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jimp Rebel Alliance Developer Netgate
              last edited by Jun 4, 2010, 3:40 PM

              Yes, if you go through the trouble of setting up MAC addresses into certain classes you can do that, but it's far from automatic. At that point you may as well assign them static IPs in the other subnet.

              (I don't think static IP/MAC settings have a gateway field, but it would not be difficult to add…)

              Multiple pools in the same subnet would be nice, not sure how much effort that would take.

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