OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: inetjnky on August 04, 2025, 09:52:25 PM

Title: isc-dhcp: static mapping CSV export
Post by: inetjnky on August 04, 2025, 09:52:25 PM
o isc-dhcp: add static mapping CSV export

Anyone know the steps to actually accomplish this?  Can this be done in the GUI and if so where?  I'm on 25.7.1.

Thank you.
Title: Re: isc-dhcp: static mapping CSV export
Post by: franco on August 05, 2025, 08:25:00 AM
Services: ISC DHCPv4: [YOURINTERFACE]

Bottom table (static mappings) click the icon in front of "DHCP Static Mappings for this interface."
Title: Re: isc-dhcp: static mapping CSV export
Post by: DuraMorte on August 14, 2025, 03:43:46 AM
I tried this, and got a file containing "ip_address,hw_address,hostname,description" in cell A1, and no other data.

I have about 15 static mappings that I'd like to move to Kea, but typing/c&p is so much harder than a quick csv export/import.

Any ideas?
Title: Re: isc-dhcp: static mapping CSV export
Post by: franco on August 14, 2025, 07:36:19 AM
If the data is displayed in the table it should have been extracted fine?
Title: Re: isc-dhcp: static mapping CSV export
Post by: bman on August 14, 2025, 09:44:21 AM
Hit the same problem yesterday when migrating from ISC to dnsmasq.

The output is empty if the DHCP on the interface is not running.
Enable DHCP on that interface, export and then can disable it.

Or maybe just ISC has to be running, not tested. I just enabled it on interfaces.
Title: Re: isc-dhcp: static mapping CSV export
Post by: franco on August 14, 2025, 11:59:20 AM
That makes sense. I've passed this along, but it's a bit tricky considering this is feed from runtime data and exactly why the feed is empty in that case.