change networking
This commit is contained in:
@@ -3,20 +3,20 @@
|
||||
matchConfig.PermanentMACAddress = "a8:b8:e0:00:43:c1";
|
||||
linkConfig.Name = "wan";
|
||||
};
|
||||
systemd.network.links."20-lan" = {
|
||||
matchConfig.PermanentMACAddress = "a8:b8:e0:00:43:c2";
|
||||
linkConfig.Name = "lan";
|
||||
};
|
||||
systemd.network.links."30-server" = {
|
||||
matchConfig.PermanentMACAddress = "a8:b8:e0:00:43:c3;
|
||||
linkConfig.Name = "server";
|
||||
};
|
||||
|
||||
networking = {
|
||||
useDHCP = false;
|
||||
nameservers = [ "9.9.9.9" "149.112.112.112" ];
|
||||
# Define VLANS
|
||||
vlans = {
|
||||
lan = {
|
||||
id = 1;
|
||||
interface = "enp3s0";
|
||||
};
|
||||
server = {
|
||||
id = 2;
|
||||
interface = "enp4s0";
|
||||
};
|
||||
multimedia = {
|
||||
id = 3;
|
||||
interface = "enp5s0";
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
interfaces = {
|
||||
# Don't request DHCP on the physical interfaces
|
||||
enp3s0.useDHCP = false;
|
||||
enp4s0.useDHCP = false;
|
||||
lan.useDHCP = false;
|
||||
server.useDHCP = false;
|
||||
enp5s0.useDHCP = false;
|
||||
|
||||
# Handle the VLANs
|
||||
|
||||
Reference in New Issue
Block a user