router(*): Use unicast rather than multicast
Due to an unfathomable issue where I would need to recompile with full debug keepalived, keepalived seems to be not seeing the multicast packets on the vrrp-router and thus we need to fallback to the disgusting unicast solution. Well, let's move on.
This commit is contained in:
parent
683555e4eb
commit
bcbfc91a11
3 changed files with 10 additions and 2 deletions
|
@ -4,10 +4,11 @@
|
|||
enable = true;
|
||||
enablePrimary = true;
|
||||
routerId = 1;
|
||||
virtualRouterId = 1;
|
||||
virtualRouterId = 51;
|
||||
vip = "129.199.146.230";
|
||||
rip = "129.199.146.231";
|
||||
trunkPort.macAddress = "92:E3:9C:CE:EF:14";
|
||||
virtualNeighbors = [ 2 ];
|
||||
};
|
||||
|
||||
# systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
|
||||
|
|
|
@ -4,10 +4,11 @@
|
|||
enable = true;
|
||||
enablePrimary = false;
|
||||
routerId = 2;
|
||||
virtualRouterId = 1;
|
||||
virtualRouterId = 51;
|
||||
vip = "129.199.146.230";
|
||||
rip = "129.199.146.232";
|
||||
trunkPort.macAddress = "92:E3:9C:CE:EF:15";
|
||||
virtualNeighbors = [ 1 ];
|
||||
};
|
||||
|
||||
# systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
|
||||
|
|
|
@ -56,6 +56,11 @@ in
|
|||
# As recommended per RFC.
|
||||
default = if cfg.enablePrimary then 100 else 50;
|
||||
};
|
||||
virtualNeighbors = mkOption {
|
||||
type = types.listOf types.int;
|
||||
description = "Virtual router neighbors in terms of router IDs";
|
||||
default = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -353,6 +358,7 @@ in
|
|||
virtualIps = [{ addr = "${cfg.vip}/24"; dev = "swp"; scope = "global"; }];
|
||||
inherit (cfg) virtualRouterId;
|
||||
noPreempt = !cfg.enablePrimary;
|
||||
unicastPeers = map (n: "10.0.0.${toString n}") cfg.virtualNeighbors;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue