Skip to content

Commit

Permalink
fix: iproute syntax for macvtap mode
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickDaG authored and astro committed Dec 4, 2024
1 parent 700ca19 commit 0ab757d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos-modules/microvm/interfaces.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ab757d

Please sign in to comment.