!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

883 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` for interface and routing setup, use systemd-networkd, ifstate or NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org251 Servers

Load older messages


SenderMessageTime
30 Jun 2025
@emilazy:matrix.orgemily but given that useNetworkd is a seamless switch for probably >95% of existing users of the interface I'm also not sure there'll be much desire to keep the scripted code around for too long after flipping the default backend for that stuff 15:09:04
@k900:0upti.meK900Honestly15:09:51
@molly:matrix.flyingcircus.ioMolly Millermy colleagues are a little skeptical of networkd given that in the past the official answer from upstream regarding online reconfiguration has been "just reboot", which is a bit impractical when you have several racks full of servers which each take several minutes to boot, though i'm aware that networkd has grown much better online reconfiguration functionality in recent years15:09:52
@k900:0upti.meK900I don't even know the size of your org15:09:56
@emilazy:matrix.orgemily(Matrix ID is a hint :p)15:10:08
@k900:0upti.meK900But I can promise you porting to networkd will be less pain than maintaining networking.interfaces15:10:12
@molly:matrix.flyingcircus.ioMolly Miller:)15:10:14
@emilazy:matrix.orgemilyI'm unconvinced scripted networking has advantages over networkd in that area in 202515:10:47
@emilazy:matrix.orgemilythere is also IfState15:10:57
@emilazy:matrix.orgemilywe have no integration for that but if you don't like networkd maybe it might be an interesting migration target15:11:10
@molly:matrix.flyingcircus.ioMolly Millerif networkd can handle online interface renaming then it's probably doable15:11:26
@hexa:lossy.networkhexa (clat on linux when)no, that's a udev skill15:11:38
@hexa:lossy.networkhexa (clat on linux when)still requires rebooting15:11:41
@emilazy:matrix.orgemilyand RFC 42 style integration for that seems like something we'd accept in NixOS15:11:43
@emilazy:matrix.orgemilynetworkd can rename interfaces15:11:56
@emilazy:matrix.orgemilybut maybe I misunderstand15:12:21
@hexa:lossy.networkhexa (clat on linux when).links files where interface renaming happens are handled by udev15:12:37
@hexa:lossy.networkhexa (clat on linux when)you would possibly need to retrigger udev to cause the rename to happen15:12:50
@hexa:lossy.networkhexa (clat on linux when)there are more interesting ways to shoot yourself in the foot15:13:06
@molly:matrix.flyingcircus.ioMolly Millerthe last time i looked at this 12-18 months ago, retriggering udev wouldn't rename the interfaces, that codepath was only triggered when they get added to the system for the first time15:13:34
@molly:matrix.flyingcircus.ioMolly Millerthe reasoning behind all of this is that our servers all have 4+ network interface each, so we name interfaces by function, and sometimes the interface assignment does change15:14:48
@k900:0upti.meK900That sounds like you should just use networkd link names for?15:15:41
@emilazy:matrix.orgemily
    links = {
      "10-sfp-lan" = {
        matchConfig.Property = [ "OF_FULLNAME=/soc/ethernet@15100000/mac@1" ];
        linkConfig.Name = "sfp-lan";
      };

      "10-sfp-wan" = {
        matchConfig.Property = [ "OF_FULLNAME=/soc/ethernet@15100000/mac@2" ];
        linkConfig.Name = "sfp-wan";
      };
    };
15:16:00
@emilazy:matrix.orgemilyI don't know if you can change this config and have stuff get re-assigned on the fly though which I guess is the question15:16:11
@molly:matrix.flyingcircus.ioMolly Millerdoes that set the interface name properties or does that rename the kernel device?15:16:14
@k900:0upti.meK900 Neither 15:16:20
@k900:0upti.meK900 It just lets you do networkctl up foo 15:16:28
@k900:0upti.meK900Or whatever15:16:29
@k900:0upti.meK900Which is presumably what you use those for?15:16:36
@emilazy:matrix.orgemily well it also changes their name in ip etc. 15:17:05

Show newer messages


Back to Room ListRoom Version: 6