Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@d-goldin
Created January 4, 2020 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d-goldin/a0aa3c4d0be26225b7659613a3674b6c to your computer and use it in GitHub Desktop.
Save d-goldin/a0aa3c4d0be26225b7659613a3674b6c to your computer and use it in GitHub Desktop.
# See https://github.com/systemd/systemd/issues/9252 and https://github.com/systemd/systemd/pull/12794 and
systemd = {
network = {
enable = true;
netdevs = {
"98-bridge" = {
enable = true;
netdevConfig = {
Kind = "bridge";
Name = "br0";
};
};
};
networks = {
"98-bridge" = {
enable = true;
matchConfig = { Name = "br0"; };
networkConfig = {
Address = "192.168.12.1/24";
ConfigureWithoutCarrier= "yes";
};
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment