• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 381 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 Feb 14, 2024, 3:52 PM

    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!

    G 1 Reply Last reply Feb 14, 2024, 5:28 PM Reply Quote 0
    • G
      Gertjan @Gwen29
      last edited by Feb 14, 2024, 5:28 PM

      @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 Feb 15, 2024, 7:59 AM Reply Quote 0
      • G
        Gwen29 @Gertjan
        last edited by Feb 15, 2024, 7:59 AM

        @Gertjan

        Merci pour la réponse rapide!

        P 1 Reply Last reply Feb 26, 2024, 3:05 AM Reply Quote 0
        • P
          patrick0525 @Gwen29
          last edited by Feb 26, 2024, 3:05 AM

          @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.
            This community forum collects and processes your personal information.
            consent.not_received