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

    getting out of IP-addresses

    Scheduled Pinned Locked Moved DHCP and DNS
    12 Posts 5 Posters 1.1k 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.
    • B
      Brian Smit
      last edited by

      Hello everyone,

      i have quite a lot of devices connected behind my rock solid Pfsense and i wonder if working with VLANs would be the only solution to solve this "problem"

      johnpozJ JKnottJ B 3 Replies Last reply Reply Quote 0
      • AndyRHA
        AndyRH
        last edited by

        The description is a little thin. VLANs would give you more subnets or change the subnet mask to /23 instead of /24 and pickup another 255 addresses.
        250 devices on one network is frequently considered plenty, but there are reasons to go with bigger networks.
        I would tend to a 2nd VLAN, but with rules and such it is more work. Changing subnet masks is a fair amount of work, but it is a 1 time thing.

        o||||o
        7100-1u

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

          @brian-smit so your in the 200+ range for devices? This is company I take it then?

          While segmentation does have advantages, there is a bit of learning curve and requirements that your other infrastructure support them, switches and access points. And work in configuring all of that on your switches and AP, etc.

          While moving to a /23 or even a /22 would provide many more address. And if your devices are all dhcp or reservations switching to larger network via just changing the mask could be quite simple..

          Now if your all static devices, then changing the mask could be painful..

          But lets say you were on 192.168.0/24, moving to 192.168.0/22 would give you 1000 some address to work with, and really nothing to do but change the mask on pfsense. Pfsense IP could still be 192.168.0.1 and your dhcp scope would just need to be adjust to start handing out address in 192.168.1 and .2 and .3, etc..

          I personally wouldn't suggest going past /22 if at some future date you plan on having that many IPs.. As you put more and more devices on the same network - broadcast and multicast traffic by chatty devices can get problematic.

          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.7.2, 24.11

          1 Reply Last reply Reply Quote 1
          • JKnottJ
            JKnott @Brian Smit
            last edited by

            @brian-smit
            What problem?

            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...

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

              @jknott running out of IP on his mask, yeah it is not worded great. Subject is the problem ;)

              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.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • B
                Brian Smit @Brian Smit
                last edited by Brian Smit

                Thx all for the help and ideas !
                I wondered how to handle IF i run out of "free" IP-addresses in the 192.168.0.x range.
                The IP-address of my PFsense machine is indeed still 192.168.0.1

                I think i will solve it by running the DHCP scope in the 192.168.1.x range and my static addresses are in the 192.168.0.x range

                @johnpoz Thank you for the great help!

                johnpozJ JKnottJ 2 Replies Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @Brian Smit
                  last edited by

                  @brian-smit changing the mask on your pfsense interface would update clients as they renew their lease, or do a dhcp inform, etc.

                  Where you could run into a bit of an issue, is when you first turn it on.. And say a client gets a 192.168.1.X/23 IP from dhcp, talking between that device that has not yet updated to this /23 mask is prob not going to work..

                  While the new client 192.168.1.x/23 would know that 192.168.0.x is on its network - the 192.168.0.x device if still on the /24 mask would think that device is on a different network and send its answer to pfsense. This would be asymmetrical and problematic.

                  But once your old clients have updated to the /23 mask - you would be fine. Or once you have updated any static devices on your /24 to the new /23 they will all be fine.

                  Once you have made the change - prob best to let everyone know to just reboot. Now if your devices don't actually talk to each other, or you don't have servers they need to talk to - not going to be a problem.. And all of your dhcp clients should be on the new /23 within say 50% of your lease time - which is default of 2 hours. So like in an hour all your clients should really be on the new /23 mask.

                  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.7.2, 24.11

                  1 Reply Last reply Reply Quote 1
                  • bingo600B
                    bingo600
                    last edited by bingo600

                    Another trick is to lower the DNS DHCP lease time to like 5..10min , a few hours before doing the change (more than the current lease time).
                    Do the subnet expansion , and the clients should learn within the new short dhcp lease time.

                    After that , restore the desired (old) lease time again.

                    Used to do that when changing DNS'es in the "Enterprise"

                    /Bingo

                    If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                    pfSense+ 23.05.1 (ZFS)

                    QOTOM-Q355G4 Quad Lan.
                    CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                    LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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

                      @bingo600 think you got some mixup of dns and dhcp -- but sure you could lower the lease of your dhcp.. So clients would renew faster after you have changed the mask.

                      And yeah the same trick goes for TTL records on dns, before you change a record, etc.

                      I get what your saying.. And its a good point..

                      And yeah that trick can work for any options you want to hand out via dhcp, be it their gateway, their dns, their ntp, domain search, etc. Before your going to make such changes lower the lease to something really low.. And then after you have made the change and your sure everyone has updated change the lease time to what you normally like to run.

                      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.7.2, 24.11

                      bingo600B 1 Reply Last reply Reply Quote 2
                      • bingo600B
                        bingo600 @johnpoz
                        last edited by bingo600

                        @johnpoz said in getting out of IP-addresses:

                        @bingo600 think you got some mixup of dns and dhcp

                        Yepp -- corrected above.

                        Offcause i meant DHCP lease šŸ¤•

                        /Bingo

                        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                        pfSense+ 23.05.1 (ZFS)

                        QOTOM-Q355G4 Quad Lan.
                        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                        JKnottJ 1 Reply Last reply Reply Quote 1
                        • JKnottJ
                          JKnott @Brian Smit
                          last edited by

                          @brian-smit

                          You don't have to do that, just expand your subnet. After the devices have had time to adjust to the new subnet size, you can start adding addresses in the new range. If you don't want to reboot the devices individually, you can just turn the switch off & on, which should cause all the connections to restart. Or you can just let the leases expire & renew.

                          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 1
                          • JKnottJ
                            JKnott @bingo600
                            last edited by

                            @bingo600 said in getting out of IP-addresses:

                            Offcause i meant DHCP lease

                            Yeah, right. šŸ˜‰

                            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 1
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.