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