diff --git a/hosts/router/default.nix b/hosts/router/default.nix index fe41291..cdcb715 100644 --- a/hosts/router/default.nix +++ b/hosts/router/default.nix @@ -46,6 +46,24 @@ ]; }; }; + interfaces = { + "wan" = { + useDHCP = true; + tempAddresses = "disabled"; + }; + "lan" = { + ipv4.addresses = [ + { + address = "192.168.0.1"; + prefixLength = 16; + } + ]; + useDHCP = false; + # macAddress = "AA:BB:CC:DD:EE:FF"; + # ^ This is the MAC address of the bridge. It's important to set this + # so that the bridge has a predictable MAC address. + }; + }; nat = { enable = true; externalInterface = "wan";