DHCP Static Mappings

Started by Esense, October 14, 2021, 11:14:56 PM

Previous topic - Next topic
I'm new to opmsense and setting it up as my local DHCP/DNS server. I want to set static IP to MAC addresses. I have mapped a couple to test. I have found that when I set a static IP address through the web gui it writes to the "host_entries.conf" file. In that file I see the Host_Name and the assigned IP address but I do not see the associated MAC address. Eventually I would like to just edit the correct .conf file and dump my statics in that way.

Am I looking in the correct file (host_entries.conf) ?
if yes, Why are there no MAC addresses listed?
if no, What file should I be looking at?

Thanks

OPNsense keeps its own XML based configuration file and generates all services' configuration from that.
One does not simply edit config files. Doesn't work, will be overwritten at next reboot.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

October 15, 2021, 02:51:56 PM #2 Last Edit: October 15, 2021, 03:30:10 PM by Esense
Understood.

So is there a way to import my statics from a list, through the web gui or command line, so I don't have to drudgingly enter them one at a time through the web gui ?

Found my answer here https://forum.opnsense.org/index.php?topic=9497.0

Thanks