From 30e68c80d24a6d0d202a4b8d08fb7fade48d1c77 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 20 Sep 2018 16:02:37 +0200 Subject: [PATCH] testing: Only run DHCPv4 by setting an listening interface explicitly Debian stretch's init script for isc-dhcp-server uses the INTERFACESv4|6 variables to decide whether to start the v4 and/or v6 DHCP server. If they are not empty, the daemon is started for the respective version, however, if both are empty (the default), to listen on all interfaces, the daemon is started for both versions. The latter would require a subnet config for IPv6 as the daemon otherwise exits, letting the init script fail, while keeping the successfully started v4 version running, which, in turn, can't be stopped anymore with the init script because it thinks the daemon is not running. So it's not possible with this init script to start DHCPv4 on all interfaces without having to configure and run DHCPv6 also. --- testing/hosts/venus/etc/default/isc-dhcp-server | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 testing/hosts/venus/etc/default/isc-dhcp-server diff --git a/testing/hosts/venus/etc/default/isc-dhcp-server b/testing/hosts/venus/etc/default/isc-dhcp-server new file mode 100644 index 0000000000..57a5c81f91 --- /dev/null +++ b/testing/hosts/venus/etc/default/isc-dhcp-server @@ -0,0 +1,3 @@ +# explicitly set an interface to avoid having to configure and run DHCPv6 +INTERFACESv4="eth0" +INTERFACESv6="" -- 2.47.3