chore: Use regular network settings instead of bond

This commit is contained in:
ulic-youthlic 2026-01-01 18:57:02 +08:00
parent 367f683bde
commit 299b0621ad
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -20,49 +20,56 @@
}; };
}; };
}; };
netdevs = { # netdevs = {
"20-bond0" = { # "20-bond0" = {
netdevConfig = { # netdevConfig = {
Kind = "bond"; # Kind = "bond";
Name = "bond0"; # Name = "bond0";
}; # };
bondConfig = { # bondConfig = {
Mode = "balance-alb"; # Mode = "balance-alb";
MIIMonitorSec = "1s"; # MIIMonitorSec = "1s";
PrimaryReselectPolicy = "better"; # PrimaryReselectPolicy = "better";
}; # };
}; # };
}; # };
networks = { networks = {
"20-eno2" = { "20-eno2" = {
networkConfig = { networkConfig = {
Bond = "bond0"; # Bond = "bond0";
PrimarySlave = true; # PrimarySlave = true;
};
matchConfig = { DHCP = "ipv4";
Name = "eno2";
};
};
"20-wlan0" = {
networkConfig = {
Bond = "bond0";
};
matchConfig = {
Name = "wlan0";
};
};
"20-bond0" = {
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true; IPv6AcceptRA = true;
}; };
linkConfig = { linkConfig = {
RequiredForOnline = "routable"; RequiredForOnline = "routable";
}; };
matchConfig = { matchConfig = {
Name = "bond0"; Name = "eno2";
}; };
}; };
# "20-wlan0" = {
# networkConfig = {
# # Bond = "bond0";
# };
# matchConfig = {
# Name = "wlan0";
# };
# };
# "20-bond0" = {
# networkConfig = {
# DHCP = "yes";
# IPv6AcceptRA = true;
# };
# linkConfig = {
# RequiredForOnline = "routable";
# };
# matchConfig = {
# Name = "bond0";
# };
# };
}; };
}; };
@ -80,7 +87,8 @@
Enabled = true; Enabled = true;
}; };
General = { General = {
EnableNetworkConfiguration = false; # EnableNetworkConfiguration = false;
EnableNetworkConfiguration = true;
}; };
Settings = { Settings = {
AutoConnect = true; AutoConnect = true;