DHCP: static mapping
-
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!
-
@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. -
Merci pour la réponse rapide!
-
@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