6 ms·
Yep agreed - solid assessment. Apart from networking. That’s an f*ing mess without systemd.
by kresten 7y ago
Yep agreed - solid assessment.
Apart from networking. That’s an f*ing mess without systemd.
- isodude 7y agoBeen trying out systemd-networkd for a couple of years now and it is a mess. Especially when you want to do something like ipsec/vpn/vxlan. Also, no possible way to reload a specific interface?
- brmgb 7y ago> Especially when you want to do something like ipsec/vpn/vxlan. I have a wireguard tunnel setup by networkd with custom rules to only send traffic from a slice through it. It works fine. Take a look at the netdev documentation [1]. What are you trying to do exactly ? [1] https://www.freedesktop.org/software/systemd/man/systemd.netdev.html https://www.freedesktop.org/software/systemd/man/systemd.net...
- isodude 7y agoThe problem is rather how the troubleshooting works. You don't know how the network will be parsed or which statements that works with your version. Very difficult to debug when it doesn't behave as it should. After a lot of fiddling with source routing on e.g. Debian Strech I was able to something working. But only half of the times I restarted networkd. I would like some better tooling to assist with more difficult setups.
- pas 7y agoHm, Stretch has an old version, no? Or do you use a backport repo? But, yes, turning on debug mode is harder than it should be, and it's usually not the right level. (I usually just go for strace first, but with netdev I guess it's using netlink to talk to the kernel, so that'll not help much :/ )
- isodude 7y agoBackport, because all the needed statements are not there. I use strace etc (and debug level in networkd), but then you realise that this should make it easier not tougher. I did learn about ifup -v though which gave me all I needed. But both tools silently ignores flags that is wrong. I'm writing my own tool now that is more strict in that sense instead. Sorry about the rant but it's at least three trips to get everything working flawless in systemd-networkd now..
- pas 7y agoWhen it comes to Linux networking I find that tooling is very, very, veery bad, compared to what it should/could be. Of course it's free and open source, so we can at least try to make it better besides complaining, but that part is harder than it should be (otherwise the whole problem would have been "solved" by now).
- isodude 7y agoTotally agree. I find network management bad wherever you go. Systemd-networkd is fine layout wise, it's just the tooling that could be improved upon. Also here you see the problem with systemd-networkd being shipped together with systemd deb, if it were to be standalone it would be so easy to backport just that.
- isodude 7y agoAnd I just realised that it should not be that hard to control the interface via dbus to networkd. Coreos even made a complete systemctl dbus integration.
- noodlesUK 7y agoFunnily enough I found it much easier setting up networking in weird configurations using Gentoo... For simple DHCP stuff yeah but iirc you can use NetworkManager without systemd.
- justinclift 7y agoFor servers which get set up once and are expected to be left alone from then on, that's not the case. With anything dynamic though - laptops, VMs - the various solutions can be pretty hit and miss. NetworkManager was terrible for many years, but seems relatively ok these days.