Skip to content

What's the reason/motivation behind the project netctl?

netctl seems to be an arch project. arch has a reputation of staying simple and mostly just using upstream projects in it's pure form. So, if the Arch team decided there was a need for netctl, I'm curious to understand what the motivations/goals are.

  • Ubuntu/Debian uses ifupdown project (that's basically a collection of scripts) that's configured through /etc/network to accomplish this.
  • RedHat/CentOS/Fedora similarly uses it's own configurations through /etc/sysconfig/ and a combination of nm and systemd suite (naturally).
  • NetworkManager is widely accepted and used in pretty much all desktop distros, and works well on the command line as well with nmcli / nmtui.
  • systemd-networkd / systemd-resolved etc and systemd suite of tools are increasingly managing more and more of the basic networking that's needed.

I'm curious to know why arch decided to add another one here, instead of picking one of the above, or the neutral projects like NetworkManager (or even a slimmed down or derived version of this if it dependency is the only issue) or improving the systemd suite instead of an additional project -- while netctl is nice (I love that they're just simple scripts instead of a new dialect), practically IMO has a limited future linked only to arch based systems.

So, I'm trying to understand what the motivations are behind this, over say, simple raw config based on just iproute2 and udev and similar base level projects that do this and graduating to one of the above for more complex config.

Edited 23 Aug 2019. We only hold this version.

51 points17 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
51 · 100% up
Kind
Text
ID
cuabv3

Author

1
posts
2
comments
0
media
View profile

18 comments

it was the follow-up to netcfg. at the time systemd-networkd didnt exist and the other clients you mentioned were either DE or distro specific i guess.

​

ask on the arch forums if you want a detailed answer

35 points

Also, systemd-networkd was created by Tom Gundersen, a (now former) Arch developer. It's not unreasonable to view netctl as the predecessor to systemd-networkd's networkctl.

21 points
  • ifupdown is debian specific, and also total ass to use.
  • sysconfic is redhat specific, and also total ass to use.
  • NetworkManager used to be total ass to use from command line, nmcli/nmtui didn't get usable until after netctl was already done.
  • systemd-networkd is total ass to use for wifi, and wasn't around when netctl was started.

The better question is why they didn't just integrate connman, it's very lightweight and had good CLIs way before NM did, and fills a similar niche as netctl with actually caring about roaming and wifi workflows (unlike networkd).

29 points

True, intel seems to have done a good job with it. And nice summary, lol.

Some bits though..

  • Ubuntu's netplan seem to be nice solution for 1.
  • I think RedHat has officially put Network Init scripts into maintenance mode. So, it's a combo of NetworkManager and networkd for the future.
  • I think nm, atleast recently solves most problems quite nicely, and I like being able to the take same knowledge across from laptops to servers.
  • I feel the same about networkd, however, I prefer to use it via netplan rather than by itself any day having to fiddle with several files for each config.

Looking at the above though, from today's retrospective standpoint - almost all other pathways sound more future proof due to their transitive nature than netctl to me.

4 points

I think nm, atleast recently solves most problems quite nicely, and I like being able to the take same knowledge across from laptops to servers.

Nowadays, yes, it does. But that wasn't the case for several years, during which you had the choice of either using the GUI, or buying commercial Red Hat support to have them figure out the DBus API for you, because there sure wasn't any useful documentation on it. nmtui/nmcli took way longer than they should have to mature.

Looking at the above though, from today's retrospective standpoint - almost all other pathways sound more future proof due to their transitive nature than netctl to me.

Yes, absolutely. It really was just a crutch.

6 points

Totally agree that netctl just sucks the least compared to the alternatives. With wpa-actiond and ifplugd it works pretty well on laptops.

1 points

I do not even have netctl installed. I use an old favorite; WICD, combo with dhclient, running through home-brewed iptables. KISS.

3 points

I believe netctl pre-date network manager. I have seen Arch developers talking about moving to nm several times, so I expect it will happen at some point.

1 points
unknown author8 hidden

Arch Linux stopped being K.I.S.S. a long time ago, you didn't get the memo? /s

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