Skip to content

Commit

Permalink
Configure all ethernet ports into bridge with dhcp
Browse files Browse the repository at this point in the history
This is to support initial configuration of the device.
  • Loading branch information
nakato committed May 17, 2023
1 parent 66a8011 commit 9924b79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@
({lib, ...}: {
system.stateVersion = lib.mkDefault "22.11";
networking.hostName = "bpir3";

networking.useDHCP = false;
networking.bridges = {
br0 = {
interfaces = [ "wan" "lan0" "lan1" "lan2" "lan3" ];
};
};
networking.interfaces.br0.useDHCP = true;
})
];
};
Expand Down

0 comments on commit 9924b79

Please sign in to comment.