aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoachim Tingvold <joachim@tingvold.com>2017-04-02 04:31:31 +0200
committerJoachim Tingvold <joachim@tingvold.com>2017-04-02 04:31:31 +0200
commit6bea366658a912a777be2a3748fe49475f7ce73f (patch)
treebf2afd1d78deb11a7fd08d2cf3b6c95316021cdb
parentadd55267c992aa5cd34718ecc23424556d090661 (diff)
Make DHCP-server listen on all interfaces by-default.
-rwxr-xr-xbootstrap/make-dhcp6-init.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/bootstrap/make-dhcp6-init.sh b/bootstrap/make-dhcp6-init.sh
index 9525cdc..65f18a3 100755
--- a/bootstrap/make-dhcp6-init.sh
+++ b/bootstrap/make-dhcp6-init.sh
@@ -29,8 +29,11 @@ DHCPD_PID=/var/run/dhcpd.pid
OPTIONS="-4"
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
-# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
-INTERFACES="eth0"
+# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
+# If no interface names are specified, dhcpd will identify all network interfaces
+# which are up, eliminating non-broadcast interfaces if possible, and listen
+# for DHCP broadcasts on each interface.
+INTERFACES=""
_EOF
cat > ${DHCP6_DEFAULT}<<'_EOF'
@@ -46,8 +49,11 @@ DHCPD_PID=/var/run/dhcpd6.pid
OPTIONS="-6"
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
-# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
-INTERFACES="eth0"
+# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
+# If no interface names are specified, dhcpd will identify all network interfaces
+# which are up, eliminating non-broadcast interfaces if possible, and listen
+# for DHCP broadcasts on each interface.
+INTERFACES=""
_EOF
set +e