!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

864 Members
Declaratively manage your switching, routing, wireless, tunneling and more.256 Servers

Load older messages


SenderMessageTime
30 Jun 2025
@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
@emilazy:matrix.orgemilyso I assume it does actually reconfigure something15:17:16
@k900:0upti.meK900 Well yes the linkConfig.Name stuff does 15:17:20
@k900:0upti.meK900Wait15:17:38
@k900:0upti.meK900Am I crazy15:17:41
@k900:0upti.meK900Yes I am sorry15:18:28
@emilazy:matrix.orgemilyit seems like this kind of thing wouldn't be hard to test with networkd anyway?15:18:54
@emilazy:matrix.orgemilyto see if you need to have things poke udev or whatever15:19:01
@molly:matrix.flyingcircus.ioMolly Milleri'll carve out some time at some point (TM) to go and take a look15:19:27
@molly:matrix.flyingcircus.ioMolly Miller the assumption of scripted networking is baked pretty deeply into our codebase, so we'd need to refactor out all the explicit dependencies on network-addresses-ethXXX.service 15:19:57
@emilazy:matrix.orgemilyyou may want to look at ^ too if networkd is really not working out for whatever reason15:20:08
@molly:matrix.flyingcircus.ioMolly Millerreference for ifstate?15:20:25
@emilazy:matrix.orgemilyhttps://ifstate.net/15:20:34
@molly:matrix.flyingcircus.ioMolly Milleroh this reminds me of ifupdown215:20:49
@molly:matrix.flyingcircus.ioMolly Miller(society if ifupdown2 was usable outside of cumulus linux)15:21:09
@hexa:lossy.networkhexayeah, ifupdown2 had ifreload for gradual changes15:22:23
@hexa:lossy.networkhexabut the maintenance situation was wild15:22:28
@hexa:lossy.networkhexaat least ifstate is still hackable, if you need that15:22:47
@hexa:lossy.networkhexait is used at DD-IX I hear15:23:23
@molly:matrix.flyingcircus.ioMolly Millerah, interesting15:23:56

Show newer messages


Back to Room ListRoom Version: 6