Mike McClain composed on 2025-12-20 00:35 (UTC-0600):

>     After installing trixie without a desktop, configuring it to my
> tastes, installing my prefered tools I rebooted to see if I'd broken
> something. Let me point out that I removed nothing, only added
> packages I normally use like gpm, jed, lynx and localc.
>     Upon reboot I have no internet connection though the cable is
> still hooked to my ISPs modem.
>     I've spent several hours reading man pages about systemctl,
> networkctl, systemd.network, systemd-networkd.service, ad nauseum.
> Most of those man pages gave a little sketch and said 'See Also:'.
>     I have a simple system with static IP addressing of my computer, a
> router, printer and Windows computer that is seldom on.
>     It has worked well through several versions of Debian but this
> upgrade has me stumped.
>     I read a post a while back relating a conversation from DebCon
> where professional system managers pushed NetworkManager to be the
> default in Debian. While I don't mind that it should be included this
> added complexity does me no good at all and I'd be very surprised
> if the professional network managers aren't a very small minority of
> Debian users.
>     More and more Debian is looking like Windows and less like the
> unix of old, a collection of small tools that do one thing and do
> it well.
>     Pardon the rant, but if someone could tell me how to get the
> network back up in trixie I'd appreciate it.

Static IP setup can be pretty simple:
# dpkg -S systemd | grep workd | grep lib
systemd: /usr/lib/systemd/system/systemd-networkd.socket
systemd: /usr/lib/systemd/system/systemd-networkd.service
systemd: /usr/lib/systemd/systemd-networkd
systemd: /usr/lib/systemd/systemd-networkd-wait-online
systemd: /usr/lib/systemd/system/systemd-networkd-wait-online.service
systemd: /usr/lib/systemd/system/[email protected]
systemd: /usr/lib/systemd/system/systemd-networkd-persistent-storage.service
# cat /etc/systemd/network/eth0.network
[Match]
PermanentMACAddress=<MAC address>

[Network]
Address=<IP/IP>
DNS=<IP> [<IP>]...
Gateway=<IP>
IPv6AcceptRA=no
LinkLocalAddressing=no
# systemctl list-unit-files | grep netw
systemd-network-generator.service        disabled        disabled
systemd-networkd-wait-online.service     disabled        disabled
[email protected]    disabled        disabled
systemd-networkd.service                 disabled        disabled
systemd-networkd.socket                  enabled         disabled
network-online.target                    static          -
network-pre.target                       static          -
network.target                           static          -
# cat /etc/resolv.conf
search <domain>
nameserver <IP>
#
I have several hundred installations setup using systemd-network this way across
multiple distros, IIRC at least as far back as Stretch. NetworkMangler is not
installed, and neither ifupdown nor *solv*.
-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Reply via email to