only DHCP Static IP Adress

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
pid
Posts: 1
Joined: Sun May 07, 2023 11:32 am

only DHCP Static IP Adress

Post 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

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: only DHCP Static IP Adress

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply