pin NIC names to MAC + limit 7DTD restart loops
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e7222b566b
commit
94d5b6a2a1
2 changed files with 32 additions and 0 deletions
|
|
@ -75,6 +75,21 @@ in
|
|||
# --- Interface configuration ---
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
|
||||
# Pin interface names to MAC addresses so they never swap across boots.
|
||||
# Without this, "eth0" is an unpredictable kernel name that depends on
|
||||
# device probe order — if the NICs swap, the entire LAN/WAN config breaks.
|
||||
links = {
|
||||
"10-wan" = {
|
||||
matchConfig.MACAddress = "6c:0b:84:0c:4c:59";
|
||||
linkConfig.Name = "eno1";
|
||||
};
|
||||
"20-lan" = {
|
||||
matchConfig.MACAddress = "6c:0b:84:0c:4c:58";
|
||||
linkConfig.Name = "eth0";
|
||||
};
|
||||
};
|
||||
|
||||
networks = {
|
||||
"10-wan" = {
|
||||
matchConfig.Name = "eno1";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue