My stupid question of the day NetworkManager vs systemd-networkd
Ever since I made the switch to Arch few years ago...I just followed the wiki and never really looked at systemd-networkd. Is there any reason why i should use it over the other etc? or just personal preference?
About this post
- Posted
- Archived
- Score
- 1 Β· 100% up
- Kind
- Text
- ID
- vbemef
16 comments
A couple of years ago I asked a similar question, to which none-other than Foxboron set me straight with this heuristic: if it's a computer which will be expected to make multiple different wifi access points (let's say a laptop), then: NetworkManager; otherwise: systemd-networkd. It's advice which I've enjoyed ever since.
thank you this is me then!!!!
It's personal preference, with systemd-networkd you don't have to install extra packages and you don't get a sys tray icon for connections, it also takes a couple of extra steps(create a file for the network that you are using,enable systemd-resolved for DNS).
While with NetworkManager you enable one service and that's it, i personally use networkd and resolved just because i have a simple desktop connection that never changes, if i was like on a laptop i would probably use networkmanager just to get the system tray icon/applet.
do you use wifi-menu to connect or which is the appropriate front end to connect to the networks?
yes is the same way for me just my desktop for gaming nothing to crazy!
I just connect through iwd but then again, it's a desktop so after connecting the first time i don't need to connect it ever again.
You only ever use wifi-menu if you are using netctl i think, which i'm not even sure people use anymore since the live ISO just comes with iwd now.
Is there no other way to get sys tray icon with systemd-netword used for networking?? I am banging my head to find one at the moment. I do have NetworkManager too, but I have disabled it at the moment just for the sake of testing systemd-networkd. I have no other complaints with it if not for sys tray icon.
There might be some third-party applet or a custom widget from a window manager but nothing that i'm aware of, or even in xfce it's possible there's some network widget for the system tray that's independent from networkmanager.
If you run iwd, apparently there's iwgtk but i never tried this:
https://wiki.archlinux.org/title/Iwd#iwgtk
"Don't fix what ain't broke"
Is a consideration... π
It's mostly personal preference but also depends on your use case.
Is this a mobile device where you often switch networks and like to use the full set of features and a GUI
NetworkManagerprovides? Or is this your fixed machine at home? Then a simple config file containing just a handful of lines forsystemd-networkdor your own script configuring your network connection viaipcommands will do the job perfectly well while using up far less ressources.I use systemd-networkd on my non-portable computer, so I can configure bridged networking for qemu/libvirt; I use NetworkManager on laptops, since it provides easier interfacing to the various wifi networks encountered while portable.
The coolest part about this is that I get to learn and use both (thanks, archwiki).
I am on the same boat, pal. Did you in any circumstances manage to get a systray icon for networking? Help me, if so.
Deleted before we saved it.
I use network-manager on laptops, for the convenience where the IP/network changes as you move around, and systemd on servers/desktops that don't move. Works for me.
I use NetworkManager on my laptop because I use GNOME. On my servers I use
systemd-networkdbecause it's light weight, simple to manage and eliminates an extra package.Both work well but, IMO, unless I specifically need NetworkManager for some reason I'll stick with
systemd-networkd.Donβt be like me and have both enabled, and spend hours trying to figure out why I keep getting two IP addresses from dhcp
Netifrc or bash script.