From 1f3c9fd0ef36319f0cb8db7ef62580467a660224 Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Wed, 10 Feb 2021 19:53:35 +0100 Subject: [PATCH] nixos/tests/networking: fix DHCP range Exclude static 192.168.*.2 addresses from the dynamic address range to prevent different interfaces from getting the same address. Seems like configuring a fixed IPv4 address does not automatically exclude it from the dynamic address range. Should fix occasional failures of nixos.tests.networking.scripted.macvlan and possibly other networking tests relying on DHCP. --- nixos/tests/networking.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix index 4fc5d48e0e17..58adab9d40a7 100644 --- a/nixos/tests/networking.nix +++ b/nixos/tests/networking.nix @@ -35,7 +35,7 @@ let extraConfig = flip concatMapStrings vlanIfs (n: '' subnet 192.168.${toString n}.0 netmask 255.255.255.0 { option routers 192.168.${toString n}.1; - range 192.168.${toString n}.2 192.168.${toString n}.254; + range 192.168.${toString n}.3 192.168.${toString n}.254; } '') ;