fixup! nix/os/devices/CFB4ED74: add static ipv6 static address
This commit is contained in:
parent
e6c4a19832
commit
9fae53fac7
2 changed files with 18 additions and 5 deletions
|
@ -15,12 +15,17 @@ in {
|
|||
# iperf3
|
||||
5201
|
||||
];
|
||||
|
||||
networking.useDHCP = true;
|
||||
networking.usePredictableInterfaceNames = false;
|
||||
networking.interfaces.eth0 = {
|
||||
useDHCP = true;
|
||||
ipv6.addresses = [ {
|
||||
address = "2a02:c207:3003:2387::1";
|
||||
prefixLength = 64;
|
||||
} ];
|
||||
ipv6.addresses = [
|
||||
{ address = "2a02:c207:3003:2387::1"; prefixLength = 64; }
|
||||
];
|
||||
};
|
||||
networking.defaultGateway6 = {
|
||||
address = "fe80::1";
|
||||
interface = "eth0";
|
||||
};
|
||||
|
||||
# Kubernetes
|
||||
|
@ -43,4 +48,12 @@ in {
|
|||
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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue