From 0ab757d2d3e3214b0034b00f9cc3dcdba0b8c563 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 3 Dec 2024 23:34:03 +0100 Subject: [PATCH] fix: iproute syntax for macvtap mode --- nixos-modules/microvm/interfaces.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-modules/microvm/interfaces.nix b/nixos-modules/microvm/interfaces.nix index 35842c06..a54fcaa7 100644 --- a/nixos-modules/microvm/interfaces.nix +++ b/nixos-modules/microvm/interfaces.nix @@ -46,7 +46,7 @@ in if [ -e /sys/class/net/${id} ]; then ${pkgs.iproute2}/bin/ip link delete '${id}' fi - ${pkgs.iproute2}/bin/ip link add link '${macvtap.link}' name '${id}' address '${mac}' type macvtap '${macvtap.mode}' + ${pkgs.iproute2}/bin/ip link add link '${macvtap.link}' name '${id}' address '${mac}' type macvtap mode '${macvtap.mode}' ${pkgs.iproute2}/bin/ip link set '${id}' allmulticast on echo 1 > "/proc/sys/net/ipv6/conf/${id}/disable_ipv6" ${pkgs.iproute2}/bin/ip link set '${id}' up