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:
parent
c32ade7b64
commit
1e81ffbd21
1 changed files with 18 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue