updated network config for defiant

This commit is contained in:
Leyla Becker 2025-03-06 13:09:38 -06:00
parent 4dc7fa293c
commit c4a7c711fb
2 changed files with 9 additions and 32 deletions

View file

@ -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"
];
};