summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2024-03-27 10:01:51 +0100
committerPÁLI Gábor János <pali.gabor@gmail.com>2024-03-27 10:08:36 +0100
commit2351dfd06e388f2ca57d2d994a50a0c3f9b22525 (patch)
treeedeb614810b857f44b5e30cfc1b9c9c6d08d3caa
parentd79fe2c6a8277c3cf8c774d8ccba9820500591e2 (diff)
downloadfreebsd-wifibox-alpine-2351dfd06e388f2ca57d2d994a50a0c3f9b22525.zip
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.
-rw-r--r--etc/wpa_supplicant/appliance/udhcpd.conf.sample16
1 files 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