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

    DHCP: static mapping

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

      Hi,

      is it possible to inject a list of static entries without using the GUI? Which file is concerned?
      I didn't find anything on this forum...

      Thanks in advance!

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Gwen29
        last edited by

        @Gwen29 said in DHCP: static mapping:

        Which file is concerned?

        The one and only file you already often backup ..... 😊
        That's the one to edit.

        To make live easy : add one static DHCP MAC lease in the GUI and save Apply.
        Then export the pfSense config.
        Now you can see, what was created in the pfSense config file.
        Your mission : respect the XML syntax.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        G 1 Reply Last reply Reply Quote 0
        • G
          Gwen29 @Gertjan
          last edited by

          @Gertjan

          Merci pour la réponse rapide!

          P 1 Reply Last reply Reply Quote 0
          • P
            patrick0525 @Gwen29
            last edited by

            @Gwen29
            I wrote a python script that reads an isc dhcp static map and moves it into the kea reservations. I create a merge.xml and it does not touch the original config file. Unfortunately this use case is for opnsense and not pfsense.

            U can look at my repo.
            https://github.com/patrick0525/Python-Opn-isc-kea

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