Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
DHCP Static Mappings
« previous
next »
Print
Pages: [
1
]
Author
Topic: DHCP Static Mappings (Read 2976 times)
Esense
Newbie
Posts: 2
Karma: 0
DHCP Static Mappings
«
on:
October 14, 2021, 11:14:56 pm »
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
Logged
Patrick M. Hausen
Hero Member
Posts: 6797
Karma: 571
Re: DHCP Static Mappings
«
Reply #1 on:
October 14, 2021, 11:34:04 pm »
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.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Esense
Newbie
Posts: 2
Karma: 0
Re: DHCP Static Mappings
«
Reply #2 on:
October 15, 2021, 02:51:56 pm »
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
«
Last Edit: October 15, 2021, 03:30:10 pm by Esense
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
DHCP Static Mappings