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

    Possible To Assign Hostnames Through DHCP Option 12 Using DHCP Static Mappings?

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 3 Posters 436 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.
    • A
      alteredstate
      last edited by

      Hello everyone,

      Is it possible to use Option 12 under the "Additional BOOTP/DHCP Options" and assign hostnames to my devices but use what I have listed in the "DHCP Static Mappings for this Interface" on each of my pfSense interfaces? If so, would you please go into more detail on how to achieve this.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Probably not. The clients don't like to set their hostnames based on DHCP. Nothing to do with pfSense.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        A 1 Reply Last reply Reply Quote 0
        • A
          alteredstate @Derelict
          last edited by

          @Derelict said in Possible To Assign Hostnames Through DHCP Option 12 Using DHCP Static Mappings?:

          Probably not. The clients don't like to set their hostnames based on DHCP. Nothing to do with pfSense.

          Thanks for the reply! Am I misunderstanding the use of DHCP Option 12? According to what I've read if Option 12 is received by a client during the time of acquiring an IP address then the hostname sent by Option 12 is used by the client.

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

            Which is completely up to the client to use or not use..

            With linux you could add

            request host-name

            To the dhcp client config, but I am not aware of a way to get windows to ask for option 12 or use if offered.

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