From af93c48666b117f785a3a50e86f7ca270348f941 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 28 Jan 2023 21:24:46 +0100 Subject: [PATCH] hosts: use static mac for vswitch --- hosts/desktop/hardware-configuration.nix | 21 +++++++++------------ hosts/nas/hardware-configuration.nix | 14 ++++++-------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index 3d75e4e..3033c91 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -116,23 +116,18 @@ lo1 = { type = "internal"; }; - enp34s0iot = { - type = "internal"; - vlan = 100; - }; + #enp34s0iot = { + # type = "internal"; + # vlan = 100; + #}; }; - # extraOvsctlCmds = '' - # set port enp34s0 vlan_mode=native-tagged - # set port enp34s0 trunks=1,100 - # set port enp34s0 tag=1 - # ''; }; }; useDHCP = false; # Deprecated hostName = "hades"; domain = "home.opel-online.de"; networkmanager = { - enable = true; + enable = false; }; timeServers = [ "192.168.2.1" @@ -146,12 +141,14 @@ # #} ]; #}; #enp34s0iot.useDHCP = true; - lo1.useDHCP = true; + lo1 = { + useDHCP = true; + macAddress = "1a:20:e9:ce:9c:1a"; + }; }; #defaultGateway = "192.168.0.1"; defaultGateway6 = { address = "fe80::1"; - #interface = "enp34s0"; interface = "lo1"; }; #nameservers = [ "192.168.0.4" ]; diff --git a/hosts/nas/hardware-configuration.nix b/hosts/nas/hardware-configuration.nix index 358e9bf..825714d 100644 --- a/hosts/nas/hardware-configuration.nix +++ b/hosts/nas/hardware-configuration.nix @@ -185,6 +185,8 @@ vlan = 100; }; }; + }; + }; useDHCP = false; # Deprecated hostName = "nas"; domain = "home.opel-online.de"; @@ -194,12 +196,6 @@ timeServers = [ "192.168.2.1" ]; - vlans = { - vlan100 = { - id = 100; - interface = "enp0s31f6"; - }; - }; interfaces = { # enp0s31f6 = { # useDHCP = true; # For versatility sake, manually edit IP on nm-applet. @@ -212,12 +208,14 @@ # prefixLength = 64; # } ]; }; - lo1.useDHCP = true; + lo1 = { + useDHCP = true; + #macAddress = ""; + }; }; # defaultGateway = "45.142.114.1"; defaultGateway6 = { address = "fe80::1"; - #interface = "enp0s31f6"; interface = "lo1"; }; # nameservers = [ "9.9.9.9" "2620:fe::fe" ];