Hacker News new | ask | show | jobs
by miladyincontrol 17 days ago
Is systemd required? No. But it certainly makes sane system configuration easier and more reliable. Try it!
1 comments

Yup. This is so impossibly complicated and insane:

    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.