Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Adding DHCP hosts from the CLI
« previous
next »
Print
Pages: [
1
]
Author
Topic: Adding DHCP hosts from the CLI (Read 453 times)
talmage
Newbie
Posts: 8
Karma: 0
Adding DHCP hosts from the CLI
«
on:
July 16, 2024, 07:35:22 pm »
What's the way to add another host to isc-dhcp using the CLI?
My guess is that I can add a <staticmap> stanza for the new host to the <lan> section of <dhcp> in /conf/config.xml .
How do I tell Opnsense to re-read /conf/config.xml and reconfigure dhcpd?
Is this the right way? Is there a better way via the CLI?
Logged
talmage
Newbie
Posts: 8
Karma: 0
Re: Adding DHCP hosts from the CLI
«
Reply #1 on:
July 16, 2024, 11:45:58 pm »
Stipulating that editing /conf/config.xml is the right thing to do,
https://www.reddit.com/r/opnsense/comments/16g5z62/how_to_update_config_via_cli/
says that
configctl dhcpd restart
will tell dhcp about my changes.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Adding DHCP hosts from the CLI