Skip to content

Commit

Permalink
Workaround for flannel MAC address changing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
onixie committed Jun 19, 2020
1 parent 84c60e3 commit 24f66ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ in mkMerge
# networking.usePredictableInterfaceNames = false; # work with virtualbox but need to reboot once

services.flannel.iface = theNetIF;
systemd.network = {

This comment has been minimized.

Copy link
@justinas

justinas Oct 15, 2021

Thank you for this! I struggled with this issue for many days, and I finally found the original issue and your fix.

enable = true;
links."10-flannel" = {
matchConfig.OriginalName = "flannel*";
linkConfig.MACAddressPolicy="none";
};
};

networking.nameservers = theNetwork.dns;
networking.extraHosts = ''
Expand Down

0 comments on commit 24f66ea

Please sign in to comment.