!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

914 Members
Declaratively manage your switching, routing, wireless, tunneling and more.266 Servers

Load older messages


SenderMessageTime
13 Jan 2026
@nazarewk:matrix.orgkdnhmm... I think it might require link to be configured before the network17:44:57
@nazarewk:matrix.orgkdnnope, not it17:51:05
@nazarewk:matrix.orgkdn * nope, not it, this is my config if somebody wanted to take a look, linked to the bond definition and configuration variables are at the top of the file 17:53:06
@nazarewk:matrix.orgkdn * nope, not it, this is my config if somebody wanted to take a look while I'm away, linked to the bond definition and configuration variables are at the top of the file 17:53:18
@nazarewk:matrix.orgkdn *

nope, not it, this is my config if somebody wanted to take a look while I'm away, linked to the bond definition and configuration variables are at the top of the file:

  1. I'm renaming interfaces to custom altnames by their permanent MAC address
  2. I'm forming them all into a bond (by the aliased name)
17:53:58
@xavierlauzon:matrix.org@xavierlauzon:matrix.org left the room.18:36:39
@solidhal:matrix.orgsolideva (now @ev4:ev4.me) changed their display name from solideva to solideva (now @ev4:ev4.me).18:38:10
@adam:robins.wtfadamcstephensconfiguring means it's waiting on IP information, no?19:58:22
@adam:robins.wtfadamcstephensyou could try disabling RequiredForOnline and/or ipv619:59:20
@adam:robins.wtfadamcstephens* you could try disabling RequiredForOnline and/or ipv6 LinkLocalAddressing19:59:56
@nazarewk:matrix.orgkdnisn't LinkLocalAddressing auto-generated? I need it to be online, it'll be the only connection to my LAN20:18:48
@nazarewk:matrix.orgkdn* isn't LinkLocalAddressing auto-generated locally? I need it to be online, it'll be the only connection to my LAN20:19:01
@nazarewk:matrix.orgkdnoh. unless LLA requires some forwarding on switches?20:19:13
@adam:robins.wtfadamcstephensno. maybe i'm misreading this config generation.20:28:35
@adam:robins.wtfadamcstephensmaybe it would be easier if you shared a generated network unit file20:31:30
@adam:robins.wtfadamcstephensand the networkctl status output20:31:46
@hexa:lossy.networkhexaRedacted or Malformed Event23:17:23
@hexa:lossy.networkhexa
networkConfig.LinkLocalAddressing = "no";
linkConfig.RequiredForOnline = "carrier";
23:25:35
14 Jan 2026
@nazarewk:matrix.orgkdn

those:

# /etc/systemd/network/40-kdn-eth0.link -> /nix/store/mf70gsqvh5wl8cwh1p3xsqxv9y1ibm12-unit-40-kdn-eth0.link/40-kdn-eth0.link
[Match]
PermanentMACAddress=a8:b8:e0:04:10:b5

[Link]
AlternativeName=kdn-eth0


# /etc/systemd/network/40-kdn-eth1.link -> /nix/store/q1k4c8f4qb7mc1sm8km2hz2nbbxddvfm-unit-40-kdn-eth1.link/40-kdn-eth1.link
[Match]
PermanentMACAddress=a8:b8:e0:04:10:b6

[Link]
AlternativeName=kdn-eth1


# /etc/systemd/network/40-kdn-eth2.link -> /nix/store/im6yiqnpvhm38c8d5m8yh7bgdv8nnwh2-unit-40-kdn-eth2.link/40-kdn-eth2.link
[Match]
PermanentMACAddress=a8:b8:e0:04:10:b7

[Link]
AlternativeName=kdn-eth2


# /etc/systemd/network/40-kdn-eth3.link -> /nix/store/x5y7jci9c398zrgqmgkdjp41vk9ph196-unit-40-kdn-eth3.link/40-kdn-eth3.link
[Match]
PermanentMACAddress=a8:b8:e0:04:10:b8

[Link]
AlternativeName=kdn-eth3


# /etc/systemd/network/50-lan.netdev -> /nix/store/g7cf6rwsxspmvzff0a0hmgkcz1jhxv6x-unit-50-lan.netdev/50-lan.netdev
[NetDev]
Kind=bond
Name=lan

[Bond]
LACPTransmitRate=fast
MIIMonitorSec=100ms
Mode=802.3ad
TransmitHashPolicy=layer2+3


# /etc/systemd/network/50-kdn-eth0.network -> /nix/store/83zl1q7nad1g0bvd8aa0zis4nf2dnakc-unit-50-kdn-eth0.network/50-kdn-eth0.network
[Match]
Name=kdn-eth0

[Network]
Bond=lan


# /etc/systemd/network/50-kdn-eth1.network -> /nix/store/fhj39fmf5j0k8y0g0innkvpf1r43md7v-unit-50-kdn-eth1.network/50-kdn-eth1.network
[Match]
Name=kdn-eth1

[Network]
Bond=lan


# /etc/systemd/network/50-kdn-eth2.network -> /nix/store/xd5k24s4lgp8a2qc5dzh4mpgmlv9x9xs-unit-50-kdn-eth2.network/50-kdn-eth2.network
[Match]
Name=kdn-eth2

[Network]
Bond=lan


# /etc/systemd/network/50-kdn-eth3.network -> /nix/store/npn6c8c57m81svayxxck343m1gvykhz3-unit-50-kdn-eth3.network/50-kdn-eth3.network
[Match]
Name=kdn-eth3

[Network]
Bond=lan


# /etc/systemd/network/50-lan.network -> /nix/store/z2jg1xs6z9fgb64367dynnhyqffwmvm0-unit-50-lan.network/50-lan.network
[Match]
Name=lan

[Link]
RequiredForOnline=yes

[Network]
BindCarrier=kdn-eth0 kdn-eth1 kdn-eth2 kdn-eth3
DHCP=true
IPv6AcceptRA=true
IPv6LinkLocalAddressGenerationMode=stable-privacy
IPv6PrivacyExtensions=true
LinkLocalAddressing=ipv6
UseDomains=true

[DHCPv4]
RouteMetric=100

[DHCPv6]
RouteMetric=100
00:47:50
@nazarewk:matrix.orgkdn *

those:

kdn@brys ~/d/g/n/nix-configs> ssh pwet sudo networkctl cat 40-kdn-eth{0,1,2,3}.link 50-lan.netdev 50-{kdn-eth{0,1,2,3},lan}.network
# /etc/systemd/network/40-kdn-eth0.link -> /nix/store/mf70gsqvh5wl8cwh1p3xsqxv9y1ibm12-unit-40-kdn-eth0.link/40-kdn-eth0.link
[Match]
PermanentMACAddress=a8:b8:e0:04:10:b5

[Link]
AlternativeName=kdn-eth0


# /etc/systemd/network/40-kdn-eth1.link -> /nix/store/q1k4c8f4qb7mc1sm8km2hz2nbbxddvfm-unit-40-kdn-eth1.link/40-kdn-eth1.link
[Match]
PermanentMACAddress=a8:b8:e0:04:10:b6

[Link]
AlternativeName=kdn-eth1


# /etc/systemd/network/40-kdn-eth2.link -> /nix/store/im6yiqnpvhm38c8d5m8yh7bgdv8nnwh2-unit-40-kdn-eth2.link/40-kdn-eth2.link
[Match]
PermanentMACAddress=a8:b8:e0:04:10:b7

[Link]
AlternativeName=kdn-eth2


# /etc/systemd/network/40-kdn-eth3.link -> /nix/store/x5y7jci9c398zrgqmgkdjp41vk9ph196-unit-40-kdn-eth3.link/40-kdn-eth3.link
[Match]
PermanentMACAddress=a8:b8:e0:04:10:b8

[Link]
AlternativeName=kdn-eth3


# /etc/systemd/network/50-lan.netdev -> /nix/store/g7cf6rwsxspmvzff0a0hmgkcz1jhxv6x-unit-50-lan.netdev/50-lan.netdev
[NetDev]
Kind=bond
Name=lan

[Bond]
LACPTransmitRate=fast
MIIMonitorSec=100ms
Mode=802.3ad
TransmitHashPolicy=layer2+3


# /etc/systemd/network/50-kdn-eth0.network -> /nix/store/83zl1q7nad1g0bvd8aa0zis4nf2dnakc-unit-50-kdn-eth0.network/50-kdn-eth0.network
[Match]
Name=kdn-eth0

[Network]
Bond=lan


# /etc/systemd/network/50-kdn-eth1.network -> /nix/store/fhj39fmf5j0k8y0g0innkvpf1r43md7v-unit-50-kdn-eth1.network/50-kdn-eth1.network
[Match]
Name=kdn-eth1

[Network]
Bond=lan


# /etc/systemd/network/50-kdn-eth2.network -> /nix/store/xd5k24s4lgp8a2qc5dzh4mpgmlv9x9xs-unit-50-kdn-eth2.network/50-kdn-eth2.network
[Match]
Name=kdn-eth2

[Network]
Bond=lan


# /etc/systemd/network/50-kdn-eth3.network -> /nix/store/npn6c8c57m81svayxxck343m1gvykhz3-unit-50-kdn-eth3.network/50-kdn-eth3.network
[Match]
Name=kdn-eth3

[Network]
Bond=lan


# /etc/systemd/network/50-lan.network -> /nix/store/z2jg1xs6z9fgb64367dynnhyqffwmvm0-unit-50-lan.network/50-lan.network
[Match]
Name=lan

[Link]
RequiredForOnline=yes

[Network]
BindCarrier=kdn-eth0 kdn-eth1 kdn-eth2 kdn-eth3
DHCP=true
IPv6AcceptRA=true
IPv6LinkLocalAddressGenerationMode=stable-privacy
IPv6PrivacyExtensions=true
LinkLocalAddressing=ipv6
UseDomains=true

[DHCPv4]
RouteMetric=100

[DHCPv6]
RouteMetric=100
00:49:44
@hexa:lossy.networkhexaany .network file for the bond interface?00:50:32
@hexa:lossy.networkhexaah, the bond interface is lan00:51:00
@hexa:lossy.networkhexaso no vlans on top or anything00:51:12
@hexa:lossy.networkhexaDHCP=true means DHCPv4 and DHCPv600:51:30
@hexa:lossy.networkhexayou likely only want DHCP=ipv400:51:53
@hexa:lossy.networkhexa

LinkLocalAddressing=ipv6

is probably redundant

00:52:12
@hexa:lossy.networkhexabecause networkd will not generally set up "link-local" IPv4 addresses (APIPA)00:52:40
@nazarewk:matrix.orgkdnriight, I don't have DHCPv6 server set up yet on the lan00:53:43
@hexa:lossy.networkhexaand you probably don't want or need one00:53:58
@nazarewk:matrix.orgkdnshouldn't I still get a DHCPv4 lease even if the DHCPv4 failed?00:55:25

Show newer messages


Back to Room ListRoom Version: 6