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

    Other subnet on dhcp

    DHCP and DNS
    4
    6
    3.4k
    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
      Bredys
      last edited by

      Greetings,

      i have /16 subnet on lan interface, but i need to DHCP assign subnet with /24 netmask.
      It is possible in pfsense ?
      I try change config.xml from
      <lan><enable><range><from>10.128.5.101</from>
      <to>10.128.5.199</to></range>
      <defaultleasetime>7200</defaultleasetime>
      <maxleasetime><netmask><failover_peerip><gateway>10.128.5.254</gateway>
      <winsserver>10.128.5.50</winsserver></failover_peerip></netmask></maxleasetime></enable></lan>

      to

      <lan><enable><range><from>10.128.5.101</from>
      <to>10.128.5.199</to></range>
      <defaultleasetime>7200</defaultleasetime>
      <maxleasetime><netmask>255.255.255.0 <netmask><failover_peerip><gateway>10.128.5.254</gateway>
      <winsserver>10.128.5.50</winsserver></failover_peerip></netmask></netmask></maxleasetime></enable></lan>

      but everytime when i upload this new config, pfsense show unknown error and dont boot again… :(

      Can someone help me ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • J
        jeroen234
        last edited by

        the mask of the subnet that dhcpd is giving to clients have to be the same as that of the interface that the dhcpd server is running on
        if not then the clients will not be aeble to use that interface

        1 Reply Last reply Reply Quote 0
        • B
          Bredys
          last edited by

          jeroen234:  i have a little bit complicated network and i need this configuration.

          My question is that this is possible with pfsense and how…

          1 Reply Last reply Reply Quote 0
          • Y
            yelt
            last edited by

            I've got the same problem here :

            I want to use PfSense DHCP Server instead of the one included in another router connected directly to opt1 (not enough enhanced).
            So, only clients from this router are able to use PfSense DHCP Server and I would like to split my default range from /16 to a subnet /24.
            In this configuration, clients from my router are isolated from the lan.

            Is it possible ?

            Thanks in advance :)

            1 Reply Last reply Reply Quote 0
            • H
              hoba
              last edited by

              There is no way that I can think of. Sorry.

              1 Reply Last reply Reply Quote 0
              • Y
                yelt
                last edited by

                Ok! Thanks a lot ;)
                I will find an other way (hoping its possible ^^')

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.