Page 1 of 1

only DHCP Static IP Adress

Posted: Sun May 07, 2023 11:49 am
by pid
Hallo,

i have the following Question to my Gargoyle Router config:

Is it possible to set the DHCP server in Gargoyle so that it only assigns static IP addresses ?

I have to activate the DHCP server in the DHCP mask so that it assigns stored static IP addresses.

But that only works if I also enter a DHCP lease
(minimum 1 IP -Adress: e.g. from .120, to .120)

But I don't want to assign IP addresses from a lease, only the registered static IP addresses

How can I ensure that the DHCP server only assigns static IP addresses based on stored MAC addresses

thanks in advance
PID

Re: only DHCP Static IP Adress

Posted: Tue May 09, 2023 12:21 am
by Lantis
It looks like setting the dynamicdhcp flag to 0 would do this
https://openwrt.org/docs/guide-user/bas ... dhcp_pools

uci set dhcp.lan.dynamicdhcp=0
uci commit dhcp
Then trigger a reboot of the router.

This hasn’t been tested, your mileage may vary.