Quote from: Sheridan Computers on January 22, 2026, 03:50:49 PMI recently a small CLI tool I wrote for a client migration to help move ISC DHCP static mappings to Kea reservations using the OPNsense config.xml, as there's currently no way to export IPv6 static mappings via web interface.
I've open sourced it on github (should have releases for Linux, Windows, Mac).
It supports both IPv4 and IPv6 static mappings (including DUID, hostname, domain search, description). I originally wrote it mainly to handle DHCPv6 static reservations, since there isn't currently a GUI export/import path for those.
It's safe by default (reads the input config and writes to a new output file so you can review before importing) and only migrates static reservations, not pools or options.
This is very much a v1 community tool, so please test (pref in a lab) first and take a backup/snapshot before importing. If anyone wants to try it and provide feedback or edge cases, I'd really appreciate it.
See the Github README for command line usage.
- Leave kea disabled for now
- Create the relevant IPv4 and IPv6 subnets in kea
- Download the config (from system settings in GUI)
- Use scan option first to see what will change
- Use the convert option to create a new xml config
- Restore the new config from OPNsense gui
- Check the kea settings everything imported
- Disable isc and enable kea
Tested with 25.7.11:
ISC-DHCP to Kea Migration Tool
This does not work for me by the simple fact that one of my WANs has a /29 subnet. I do not know why your script looks at WANs. Why does it?
Anyway, I had a wind storm, and the multiple power outages caused my old installation that still relied on ISC to become too corrupt to boot. I decided to reinstall, and the drive was good enough to get the config from. Much to my chagrin, nothing was getting addressed with the newly booted system, so I added another network connection to my workstation and manually logged in to the OPNsense install by IP and discovered no ISC. I installed them as plugins, then exported my static leases by csv as others pointed out here, thanks for that folks! I learned how to set up KEA, imported my static DHCP mappings from csv, killed ISC, and started KEA, and it works fine now. I had been wanting to try KEA, and I missed that ISC was going away. In essence, I managed to get my system out of the ditch it was in due to my not paying attention to timelines and changes coming, and it's functioning again, and it will be much easier to reinstall now with KEA. I uninstalled the ISC plugins and removed the dhcpd stuff from the config and loaded it.
"