1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/routnerr-2: reserve mgmt{1,2} links

This commit is contained in:
Matt Layher 2022-03-02 20:03:20 -05:00
parent c32ade7b64
commit 1e81ffbd21

View file

@ -95,9 +95,9 @@ in {
};
};
# Physical management LAN.
# Physical management LAN. For physical LANs, we have to make sure to match
# on both Type and MACAddress since VLANs would share the same MAC.
links."15-mgmt0" = {
# Important: match on Ethernet device type because VLANs share this MAC.
matchConfig = {
Type = "ether";
MACAddress = "00:0d:b9:53:ea:cd";
@ -118,6 +118,22 @@ in {
};
};
# Unused physical management LANs.
links."16-mgmt1" = {
matchConfig = {
Type = "ether";
MACAddress = "00:0d:b9:53:ea:ce";
};
linkConfig.Name = "mgmt1";
};
links."17-mgmt2" = {
matchConfig = {
Type = "ether";
MACAddress = "00:0d:b9:53:ea:cf";
};
linkConfig.Name = "mgmt2";
};
# Home VLAN.
netdevs."20-lan0" = {
netdevConfig = {