by arcfour · 1w ago · 0 comments
> I usually prefer using systemd utilities wherever possible.
Ah. There's your problem. When something promises it can do anything and everything, rarely can it do much of it well, I find...
The type of issue you encountered is a pervasive failure mode you will encounter the more and more systemd utilities you rely on. For something like a router, systemd is wholly unnecessary. Try it! You'll agree.
…except when they don't and then issues like this are the result. I guess they don't consider themselves viable for a CPE device and don't "feel" like following CPE requirements.
(In itself, good to know that systemd does consider some things out of scope, maybe?)
> Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior.
The parent poster's suggestion to use Alpine is amusing in the context of your problem because musl libc is notorious for sticking to the spec when compared to glibc.
[1] https://artixlinux.org/ [*] https://systemd-free.artixlinux.org/
I literally run alpine in prod and home but I think the recent exploits in musl should give us pause if this is a fact or if it's a heuristic.
auto lo
iface lo inet loopback
# WAN - Cable
auto eth0
iface eth0
pre-up ethtool --set-eee $IFACE eee off || true
pre-up ethtool -A $IFACE rx off tx off || true
# Apply CAKE traffic shaping
post-up /usr/local/sbin/wan-cake start
pre-down /usr/local/sbin/wan-cake stop
# LAN Physical Ports enslaved to br0
auto eth1
iface eth1
pre-up ethtool --set-eee $IFACE eee off || true
pre-up ethtool -A $IFACE rx off tx off || true
auto eth2
iface eth2
pre-up ethtool --set-eee $IFACE eee off || true
pre-up ethtool -A $IFACE rx off tx off || true
auto eth3
iface eth3
pre-up ethtool --set-eee $IFACE eee off || true
pre-up ethtool -A $IFACE rx off tx off || true
auto br0
iface br0 inet static
address 10.0.0.1/24
bridge-ports eth1 eth2 eth3
bridge-stp off
bridge-fd 0
Holy moly. ONE SINGLE FILE called /etc/network/interfaces (+ a setup script for CAKE, to keep separation of concerns clean and modular) - not 30 disparate configs in whatever the networkd du jour is??!?Well surely DHCP configuration must be a nightmare:
duid
persistent
option rapid_commit
option classless_static_routes
option interface_mtu
require dhcp_server_identifier
slaac private
noipv6rs
noipv4ll
# Do not block OpenRC boot waiting for the cable modem to lock
background
# Keep ISP DHCP and RA DNS out of the system resolver configuration.
nohook resolv.conf
# Only touch eth0 and br0 (for IPv6 PD assignment)
allowinterfaces eth0 br0
interface br0
noipv4
noipv6rs
interface eth0
ipv6rs
ia_na 1
ia_pd 2/::/56 br0/0/64
Nobody could EVER understand that.