Skip to content

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?

1 points11 comments
Open on Reddit
About this post
Posted
Archived
Score
1 Β· 100% up
Kind
Text
ID
vbemef

Author

41
posts
71
comments
2
media
View profile

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.

15 points

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.

4 points

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!

2 points

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.

3 points

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.

2 points

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

1 points

"Don't fix what ain't broke"

Is a consideration... πŸ˜€

2 points

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 NetworkManager provides? Or is this your fixed machine at home? Then a simple config file containing just a handful of lines for systemd-networkd or your own script configuring your network connection via ip commands will do the job perfectly well while using up far less ressources.

2 points

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).

1 points

I am on the same boat, pal. Did you in any circumstances manage to get a systray icon for networking? Help me, if so.

1 points
unknown author

Deleted before we saved it.

1 points

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.

1 points

I use NetworkManager on my laptop because I use GNOME. On my servers I use systemd-networkd because 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.

1 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←orβ†’
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.