nixos/home/routing-common: Put lan-core on a 1500 byte MACVLAN
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 17m13s
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 17m13s
This commit is contained in:
parent
e6ad150865
commit
0e115544e4
@ -168,6 +168,11 @@ in
|
|||||||
STP=true
|
STP=true
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
"30-lan-core".netdevConfig = {
|
||||||
|
Name = "lan-core";
|
||||||
|
Kind = "macvlan";
|
||||||
|
MTUBytes = "1500";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkVLAN "lan-hi" vlans.hi)
|
(mkVLAN "lan-hi" vlans.hi)
|
||||||
@ -245,11 +250,21 @@ in
|
|||||||
matchConfig.Name = "lan-dave";
|
matchConfig.Name = "lan-dave";
|
||||||
networkConfig.Bridge = "lan";
|
networkConfig.Bridge = "lan";
|
||||||
};
|
};
|
||||||
"55-lan" = mkMerge [
|
"55-lan" = {
|
||||||
(networkdAssignment "lan" assignments.core)
|
|
||||||
{
|
|
||||||
matchConfig.Name = "lan";
|
matchConfig.Name = "lan";
|
||||||
vlan = [ "lan-hi" "lan-lo" "lan-untrusted" "wan-tunnel" ];
|
vlan = [ "lan-hi" "lan-lo" "lan-untrusted" "wan-tunnel" ];
|
||||||
|
macvlan = [ "lan-core" ];
|
||||||
|
networkConfig = {
|
||||||
|
LinkLocalAddressing = "no";
|
||||||
|
IPv6AcceptRA = false;
|
||||||
|
LLDP = false;
|
||||||
|
EmitLLDP = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"60-lan-core" = mkMerge [
|
||||||
|
(networkdAssignment "lan-core" assignments.core)
|
||||||
|
{
|
||||||
|
matchConfig.Name = "lan-core";
|
||||||
networkConfig.IPv6AcceptRA = mkForce false;
|
networkConfig.IPv6AcceptRA = mkForce false;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user