!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
2 Jun 2025
@k900:0upti.meK900It just overrides08:25:38
@k900:0upti.meK900Stackoverflow says it should work though08:27:39
@k900:0upti.meK900I wonder if I just need to bonk it harder08:27:45
@k900:0upti.meK900 OK yeah for some reason networkctl reconfigure fucks it up 08:28:48
@k900:0upti.meK900 But networkctl down followed by networkctl up does the right thing 08:28:53
@uep:matrix.orguepoof08:29:19
@uep:matrix.orguepat least the macvlan hack is available in case having it as a separate interface is helpfu08:30:38
@uep:matrix.orguep* at least the macvlan hack is available in case having it as a separate interface is helpful08:30:41
@uep:matrix.orguep(for this or other reasons)08:31:18
@k900:0upti.meK900I guess08:31:54
@k900:0upti.meK900Anyway time to grafanize that shit08:31:58
@elvishjerricco:matrix.orgElvishJerriccoyea only one network file applies to each interface. Any other that would match it is just completely irrelevant08:42:44
@elvishjerricco:matrix.orgElvishJerriccoI forget if it's the first or last when sorting the network files by name that applies08:43:13
@elvishjerricco:matrix.orgElvishJerricco the way to have separate files apply to the same interface is to use drop-ins for the same foo.network name 08:43:44
@elvishjerricco:matrix.orgElvishJerriccocourse that's not super relevant for nixos08:44:03
@emilazy:matrix.orgemily for a router that needs to do PPPoE to get a WAN link, which is likely to be less painful, systemd-networkd and orchestrating pppd as a separate service, or just using NetworkManager which supports it natively? 11:29:15
@k900:0upti.meK900I don't know how well it works with networkd11:29:49
@k900:0upti.meK900But I know pppd standalone is CURSED11:29:53
@hexa:lossy.networkhexa (clat on linux when)
      "60-ppp0" = {
        matchConfig.Type = "ppp";
        networkConfig = {
          IPv6AcceptRA = true;
          DHCP = "ipv6";
          KeepConfiguration = true;
        };
        dhcpV6Config = {
          WithoutRA = "solicit";
          PrefixDelegationHint = "::/56";
        };
        ipv6SendRAConfig = {
          Managed = true;
        };
        linkConfig.RequiredForOnline = "routable";
11:32:43
@hexa:lossy.networkhexa (clat on linux when) *
      "60-ppp0" = {
        matchConfig.Type = "ppp";
        networkConfig = {
          IPv6AcceptRA = true;
          DHCP = "ipv6";
          KeepConfiguration = true;
        };
        dhcpV6Config = {
          WithoutRA = "solicit";
          PrefixDelegationHint = "::/56";
        };
        ipv6SendRAConfig = {
          Managed = true;
        };
        linkConfig.RequiredForOnline = "routable";
      };

11:32:55
@emilazy:matrix.orgemilywait systemd-networkd supports it natively? everything I saw implied no11:33:21
@hexa:lossy.networkhexa (clat on linux when) I think the important bit is KeepConfiguration, since the PPP tunnel configures IPv4 by itself 11:33:22
@emilazy:matrix.orgemily or is this just separate to the glue to make pppd run at the right time? 11:33:28
@hexa:lossy.networkhexa (clat on linux when)no, it just adds config on top of the ppp interface that pppd creates11:33:36
@emilazy:matrix.orgemilyright11:33:45
@hexa:lossy.networkhexa (clat on linux when)networkd reacts to interface creation11:33:49
@emilazy:matrix.orgemily I guess you just need that + making the pppd service run whenever the underlying link comes up 11:34:06
@emilazy:matrix.orgemilywas just wondering if NM might be better-integrated somehow11:34:16
@hexa:lossy.networkhexa (clat on linux when) *
      "60-ppp0" = {
        matchConfig.Type = "ppp";
        networkConfig = {
          IPv6AcceptRA = true;
          DHCP = "ipv6";
          KeepConfiguration = true;
        };
        dhcpV6Config = {
          WithoutRA = "solicit";
          PrefixDelegationHint = "::/56";
        };
        ipv6SendRAConfig = {
          Managed = true;
        };
        linkConfig.RequiredForOnline = "routable";
      };
11:34:20
@hexa:lossy.networkhexa (clat on linux when)certainly not11:34:24

Show newer messages


Back to Room ListRoom Version: 6