summaryrefslogtreecommitdiff
path: root/hosts/microwave/network.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2022-07-12 17:17:53 +0200
committerGrigory Shipunov2022-07-12 17:17:53 +0200
commita42ec3247a8b5f3a9cfe15c71990de2bbaf21fca (patch)
tree3a63d615e98ac822d81ff96ac8f27f226790e160 /hosts/microwave/network.nix
parentfb7d59f0b94f6951f82ddbc5b7eef09602369b3d (diff)
microwave: create "james" bond network
Diffstat (limited to 'hosts/microwave/network.nix')
-rw-r--r--hosts/microwave/network.nix26
1 files changed, 21 insertions, 5 deletions
diff --git a/hosts/microwave/network.nix b/hosts/microwave/network.nix
index 4efbae0..c4a0021 100644
--- a/hosts/microwave/network.nix
+++ b/hosts/microwave/network.nix
@@ -28,19 +28,35 @@ systemd.network = {
# wait-online.ignoredInterfaces = [ "wlan0" "enp53s0" ];
# Interfaces on the machine
- networks."10-ether" = {
+ netdevs."10-james" = {
+ netdevConfig = {
+ Name = "james";
+ Kind = "bond";
+ };
+ bondConfig = {
+ Mode = "active-backup";
+ PrimaryReselectPolicy = "always";
+ MIIMonitorSec = "1s";
+ };
+ };
+ networks."10-ether-bond" = {
matchConfig = { Name = "enp53s0"; };
networkConfig = {
- DHCP = "yes";
- IPv6AcceptRA = true;
+ Bond = "james";
+ PrimarySlave = true;
};
};
- networks."10-wlan" = {
+ networks."10-wlan-bond" = {
matchConfig = { Name = "wlan0"; };
networkConfig = {
+ Bond = "james";
+ };
+ };
+ networks."10-james-bond" = {
+ matchConfig = { Name = "james"; };
+ networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
- IgnoreCarrierLoss = true;
};
};