updated network config for defiant
This commit is contained in:
parent
4dc7fa293c
commit
c4a7c711fb
2 changed files with 9 additions and 32 deletions
|
@ -87,13 +87,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
# podman = {
|
||||
# macvlan = {
|
||||
# subnet = "192.168.1.0/24";
|
||||
# gateway = "192.168.1.1";
|
||||
# networkInterface = "bond0";
|
||||
# };
|
||||
# };
|
||||
jellyfin = {
|
||||
enable = true;
|
||||
subdomain = "media";
|
||||
|
@ -113,7 +106,6 @@
|
|||
};
|
||||
pihole = {
|
||||
enable = true;
|
||||
# ip = "192.168.1.201";
|
||||
};
|
||||
nextcloud = {
|
||||
enable = true;
|
||||
|
|
|
@ -35,12 +35,6 @@
|
|||
networking = {
|
||||
hostName = "defiant"; # Define your hostname.
|
||||
useNetworkd = true;
|
||||
interfaces = {
|
||||
bond0.useDHCP = lib.mkDefault true;
|
||||
bonding_masters.useDHCP = lib.mkDefault true;
|
||||
enol.useDHCP = lib.mkDefault true;
|
||||
eno2.useDHCP = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
|
@ -60,33 +54,24 @@
|
|||
};
|
||||
|
||||
networks = {
|
||||
"30-enp4s0" = {
|
||||
matchConfig.Name = "enp4s0";
|
||||
"30-eno1" = {
|
||||
matchConfig.Name = "eno1";
|
||||
networkConfig.Bond = "bond0";
|
||||
|
||||
address = [
|
||||
# configure addresses including subnet mask
|
||||
"192.168.2.1/24"
|
||||
];
|
||||
};
|
||||
"30-enp5s0" = {
|
||||
matchConfig.Name = "enp5s0";
|
||||
"30-eno2" = {
|
||||
matchConfig.Name = "eno2";
|
||||
networkConfig.Bond = "bond0";
|
||||
|
||||
address = [
|
||||
# configure addresses including subnet mask
|
||||
"192.168.2.2/24"
|
||||
];
|
||||
};
|
||||
|
||||
"40-bond0" = {
|
||||
matchConfig.Name = "bond0";
|
||||
linkConfig.RequiredForOnline = "carrier";
|
||||
networkConfig.LinkLocalAddressing = "no";
|
||||
DHCP = "ipv4";
|
||||
linkConfig = {
|
||||
RequiredForOnline = "degraded-carrier";
|
||||
RequiredFamilyForOnline = "any";
|
||||
};
|
||||
networkConfig.DHCP = "yes";
|
||||
|
||||
address = [
|
||||
# configure addresses including subnet mask
|
||||
"192.168.1.10/24"
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue