fixup! nix/os/devices/CFB4ED74: add static ipv6 static address

This commit is contained in:
steveej 2018-11-19 02:03:22 +01:00
parent e6c4a19832
commit 9fae53fac7
2 changed files with 18 additions and 5 deletions

View file

@ -15,12 +15,17 @@ in {
# iperf3 # iperf3
5201 5201
]; ];
networking.useDHCP = true;
networking.usePredictableInterfaceNames = false;
networking.interfaces.eth0 = { networking.interfaces.eth0 = {
useDHCP = true; ipv6.addresses = [
ipv6.addresses = [ { { address = "2a02:c207:3003:2387::1"; prefixLength = 64; }
address = "2a02:c207:3003:2387::1"; ];
prefixLength = 64; };
} ]; networking.defaultGateway6 = {
address = "fe80::1";
interface = "eth0";
}; };
# Kubernetes # Kubernetes
@ -43,4 +48,12 @@ in {
authorizedKeys = keys.users.steveej.openssh; authorizedKeys = keys.users.steveej.openssh;
}; };
}; };
boot.initrd.postMountCommands = ''
for iface in $(cd /sys/class/net && ls); do
echo "Bringing down $iface..."
ip address flush dev $iface
ip link set $iface down
done
'';
} }