From 2351dfd06e388f2ca57d2d994a50a0c3f9b22525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=81LI=20G=C3=A1bor=20J=C3=A1nos?= Date: Wed, 27 Mar 2024 10:01:51 +0100 Subject: Revert 1b300a88. Even if there is a single client, it may happen that the previous lease has not yet expired and on the next occasion, the same IP address is not available. It looks awkward for now, but it is better to let addresses allocated from a pool instead to avoid this problem. --- etc/wpa_supplicant/appliance/udhcpd.conf.sample | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/etc/wpa_supplicant/appliance/udhcpd.conf.sample b/etc/wpa_supplicant/appliance/udhcpd.conf.sample index 03c468e..821b56b 100644 --- a/etc/wpa_supplicant/appliance/udhcpd.conf.sample +++ b/etc/wpa_supplicant/appliance/udhcpd.conf.sample @@ -4,17 +4,19 @@ # The value of `interface` should match with the one defined in the # interfaces.conf file: `interface` should be exactly the same, # `router` should correspond to `address` and `subnet` is the -# `netmask`. According to these settings below, a single IP address -# (10.0.0.2) is handed out, since only one is expected. In the `opt -# dns` line, the `%%DNS%%` variable would be replaced with the IP -# addresses of the DNS servers as provided by the wireless network -# (wifibox extension). +# `netmask`. According to these settings below, IP addresses are +# handed out for the 10.0.0.0/24 network. Even though there is a +# single client expected, on quick restarts, the previously allocated +# address might not be released, so there should be some room left for +# such overlaps. In the `opt dns` line, the `%%DNS%%` variable would +# be replaced with the IP addresses of the DNS servers as provided by +# the wireless network (wifibox extension). # # Change these only if this is not suitable. start 10.0.0.2 -end 10.0.0.2 -max_leases 1 +end 10.0.0.254 +max_leases 64 interface eth0 opt subnet 255.255.255.0 opt router 10.0.0.1 -- cgit v1.2.3