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

    DHCP/DNS servers on IP other than x.x.x.1

    Scheduled Pinned Locked Moved DHCP and DNS
    5 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.
    • M Offline
      markn62
      last edited by

      Simple questions this time. I have a LAN subnet x.x.5.0/23. This sets the DHCP and DNS servers at 5.1 with a useable IP range of 4.1-5.254. Using Proxy Arp VIP and 1:1 Nat. Have primary lease pool from 4.1-4.254 & 2nd pool from 5.2-5.62. I would rather start the 2nd pool at 5.1 otherwise I loose a public IP. Is there a way to have the servers on something other than 5.1, say 5.254 perhaps? Could this create a problem with other router functions?

      1 Reply Last reply Reply Quote 0
      • D Offline
        doktornotor Banned
        last edited by

        And where exactly did you find this requirement that DHCP/DNS servers must run on IP like x.x.x.1?  ??? :o

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

          Huh? Not a clue to where you heard any such thing about .1 ??  Can tell for sure I run pfsense on .253 because soho devices normally have .1 or .254 so I never try and put anything on those address no matter my network.

          I have dns running on box with a .10 address as well.. etc. etc. There is no rule or best practice about any specific IP.  Its just common that .1 when you bring up a router you normally use the first or last address on network.. But there is nothing saying that has to be done.

          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 25.07.1 | Lab VMs 2.8.1, 25.07.1

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

            This sets the DHCP and DNS servers at 5.1

            While consumer router/NAT/firewall/DHCP server boxes are commonly on .1, there should be a setting somewhere that you can change from that default.

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel 1 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
            • K Offline
              kpa
              last edited by

              It's just an adopted convention that everyone seems to take as a "standard". There's nothing in the TCP/IP networking itself that requires you to use a specific addresses from subnet for DNS and/or default gateway or any other function such as NTP or NIS server addresses. You could for example use 192.168.1.128 as the default gateway out of 192.168.1.0/24 and it wouldn't be any different than using the usual 192.168.1.1.

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