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

    Static IP - MAC mapping inside DHCP dynamic pool - how to?

    Scheduled Pinned Locked Moved DHCP and DNS
    22 Posts 5 Posters 2.2k 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.
    • JKnottJ
      JKnott @Sergei_Shablovsky
      last edited by

      @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

      For me remembering that in all my datacenters
      .11 mean Environment Monitoring Equipment
      .33 mean PDU/CDU
      .55 mean Cooling Unit
      is much pretty easy.

      You can still do that by having them separate from the DHCP pool. Either way, you have to manually map a MAC to IP address, whether separate from the pool or mixed in.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      Sergei_ShablovskyS 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @Sergei_Shablovsky
        last edited by

        @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

        Because Halt / Reboot ARE NOT FOR TESTING, ITS CORE ACTION ABOUT WHOLE SYSTEM !
        May be this is also logical to You ?

        Since I run Linux and not Windows, "reboot" is not part of my vocabulary. 😉

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        Sergei_ShablovskyS 1 Reply Last reply Reply Quote 0
        • Sergei_ShablovskyS
          Sergei_Shablovsky @JKnott
          last edited by

          @jknott said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

          @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

          Because Halt / Reboot ARE NOT FOR TESTING, ITS CORE ACTION ABOUT WHOLE SYSTEM !
          May be this is also logical to You ?

          Since I run Linux and not Windows, "reboot" is not part of my vocabulary. 😉

          I understand You joke. BTW personally I not using Win for work around 25y.

          What about be serious and answering about my question regarding right place Reboot / Halt menu item ? :)

          —
          CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
          Help Ukraine to resist, save civilians people’s lives !
          (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

          JKnottJ 1 Reply Last reply Reply Quote 0
          • Sergei_ShablovskyS
            Sergei_Shablovsky @JKnott
            last edited by

            @jknott said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

            @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

            For me remembering that in all my datacenters
            .11 mean Environment Monitoring Equipment
            .33 mean PDU/CDU
            .55 mean Cooling Unit
            is much pretty easy.

            You can still do that by having them separate from the DHCP pool. Either way, you have to manually map a MAC to IP address, whether separate from the pool or mixed in.

            So, You just repeat the @johnpos answer. No any new info.

            —
            CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
            Help Ukraine to resist, save civilians people’s lives !
            (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

            JKnottJ 1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @Sergei_Shablovsky
              last edited by

              @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

              What about be serious and answering about my question regarding right place Reboot / Halt menu item ? :)

              You mean this question?

              "Why Reboot and Halt System commands are still in Diagnostics but no in System pfSense WebGUI?"

              Rebooting & halting are not something you normally do with routers. You just let them run 24/7. As far as I can tell, you normally reboot pfSense with an update and not much else. When needed, instead of rebooting, you can just restart some service, just like with Linux. So, you don't need them right up front, as they are in Windows. I suppose Diagnostics was the most logical place for them.

              From my pfSense:

              /root: uptime
              2:42PM up 87 days, 23:34, 3 users, load averages: 0.01, 0.04, 0.00

              It was powered down only because I was moving stuff around here.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              1 Reply Last reply Reply Quote 0
              • JKnottJ
                JKnott @Sergei_Shablovsky
                last edited by

                @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

                So, You just repeat the @johnpos answer. No any new info.

                I think the point we're both making is we don't understand your reason for doing what you want. It doesn't make sense.

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

                Sergei_ShablovskyS 1 Reply Last reply Reply Quote 0
                • Sergei_ShablovskyS
                  Sergei_Shablovsky
                  last edited by Sergei_Shablovsky

                  @johnpoz said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

                  @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

                  fact that all double digits IPs .99, .88, .77 etc are my equipment

                  Which is nonsense - makes no sense at all to do something like that... Can say that 2-30 is your equipment, or 221-254 is your equipment.

                  Do what you want - just offering up how you can do what you ask, which is different pools...You don't like that solution - and you think its overcomplicated because you think your devices should be 88, 99, 77 etc.. Really?? Verse in all of them being in adjacency 10-20 for example.. Sorry that just makes zero sense to anybody but you.

                  I have a bunch of light bulbs on my iot network.. What makes more sense I should make the light bulbs IPs 11, 22, 33 or just say hey 2-30 are light bulbs.. If I get more lightbulbs I can easy just move the pool from being .31-254 to 41-254, and now can have 10 more light bulbs, etc.. Shotgunning IPs throughout your scope makes no sense.

                  Also have the switches on this iot network, so lightbulbs can be 2-30, and the little switches that turn on say the xmas tree or the lamp can be say 240-254 out of the /24

                  Now I know just from an IP what a device type, etc.. without having to shotgun assignments out of the 1-254 scope.

                  This is easy to adjust... You could use say .2-20 out of your scope for reservations, and 240-254 for Ips you assign statically on the device for example.

                  Another simple solution would be to just put these devices on their own vlan, and assign a small dhcp scope say .250-254, and then you have .2-249 for use in reservations for your equipment, etc. This way you can bring a device easy onto this vlan where it gets a dhcp address in the .250-254 range, and then you reserve its IP and it changes to something in the .2-249 range.

                  I am sorry but 11,22,33,44 for your devices you want to have a specific IP via reservation or static makes no sense at all..

                  If you don't want your devices to be on the ends of your scope.. Then create 2 scopes... where say .2-49 are dhcp, and .61-254 is another pool, and now you can use 50-60 for your devices, etc..

                  Now with your multiple pools and some mac defining, maybe all your phones are from same company and their macs start with aa:bb:cc so you can have them use the first pool, and get ips from 2-49, and your other user devices get Ips out of hte 61-254 pool, etc..

                  I carefully read again one time Your answer. So another one idea come to my head:

                  Switching DHCP off on interface for local lans that have once-installed (and rarely changed) set of equipment ?

                  For example CDU/PDU installed inside racks once and added/changed 1 time / 5 year or less. (Ok, sometimes we need something to repair and put off shelf some hot-spare unit for temporarily replace).
                  The same situation for Cooling, Environment Monitoring devices, Security Cameras & Recorders, rack doors locks, movie & sound sensors...

                  Sounds reasonably. Even the table MAC-IP would be 150-200 rows.

                  What You say about this?

                  —
                  CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                  Help Ukraine to resist, save civilians people’s lives !
                  (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                  JKnottJ johnpozJ 2 Replies Last reply Reply Quote 0
                  • Sergei_ShablovskyS
                    Sergei_Shablovsky @JKnott
                    last edited by Sergei_Shablovsky

                    @jknott said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

                    @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

                    So, You just repeat the @johnpos answer. No any new info.

                    I think the point we're both making is we don't understand your reason for doing what you want. It doesn't make sense.

                    May be You are right. please see my last reply to @johnpoz

                    —
                    CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                    Help Ukraine to resist, save civilians people’s lives !
                    (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                    1 Reply Last reply Reply Quote 0
                    • JKnottJ
                      JKnott @Sergei_Shablovsky
                      last edited by

                      @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

                      What You say about this?

                      If you expect something to work without DHCP, you must use static configuration. Again, there's no reason it has to be mixed in with the DHCP pool. Here, in addition to the DHCP pool and static mappings, I have two devices with static configuration. One is my main desktop system and the other is pfSense.

                      PfSense running on Qotom mini PC
                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                      UniFi AC-Lite access point

                      I haven't lost my mind. It's around here...somewhere...

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

                        @sergei_shablovsky said in Static IP - MAC mapping inside DHCP dynamic pool - how to?:

                        What You say about this?

                        Say about what - Not sure what your freaking asking.. And what does it have to do with some nonsense .66, .77, .88 plan - I don't care if you have 200 IPs.. So use a /23 and make the first /24 your your devices and the 2nd /24 your dhcp.

                        You can come up with whatever you want to come up with - .66, .77, .88, .99 makes no sense.. You will never convince of such nonsense.. I have had to go into a lot of customer networks, never seen such nonsense - and I have seen a lot of nonsense..

                        I gave you a way to do what you want be it that plan or whatever - now you say its too much work, well yeah because it makes no sense.. There is zero reason why anyone would do such a thing when I can just say .x-.y is either reservations or static..

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

                        1 Reply Last reply Reply Quote 0
                        • Sergei_ShablovskyS Sergei_Shablovsky referenced this topic on
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.