danboid Posted May 30, 2022 Posted May 30, 2022 Why does Armbian include both include ifupdown AND NetworkManager by default? I'm not aware of anything that ifupdown can do that NM cannot and ifupdown doesn't have a TUI/GUI like NM so as far as I'm concerned ifupdown is just clutter that causes config clashes and boot delays. Isn't it time to strip ifupdown from Armbian? On a related note, I've never got any of the (ifupdown) network config options in armbian-config to work. 0 Quote
danboid Posted May 31, 2022 Author Posted May 31, 2022 I'll give a good example of this causing a problem. I have an Armbian machine that only uses wifi. I set the wifi up using the included nmtui but there is an almost 2 minute boot delay caused by the default Armbian /etc/network/interfaces (ifupdown) config for eth0. Remove or comment this config and Armbian boots almost 2 minutes faster if eth0 isn't connected at boot. 0 Quote
Igor Posted June 1, 2022 Posted June 1, 2022 Agree. This section needs changes. We are finally moving with https://github.com/armbian/configurator (not yet in human understandable format, but welcome to join inspecting the code) and once we get to the network config section, this should be adjusted. I think we should simply remove ifupdown and provide netplan, which can be use either for Network manager or systemd-networkd. 0 Quote
danboid Posted June 1, 2022 Author Posted June 1, 2022 I know Ubuntu uses netplan by default but I prefer NetworkManager. The files are easier to configure by hand than netplans awful yaml plus netplan doesn't have alternatives to nmtui, nmcli and the GUI app. Everything has to be done by hand with netplan. 0 Quote
danboid Posted June 1, 2022 Author Posted June 1, 2022 I wpouldn't want Armbian to do anything because Ubuntu is. I'm moving away from Ubuntu after 22.04 because Canonical are turning more apps into snaps which is destroying performance. I don't care about sandboxing or any other supposed benefit of snaps - having to wait 10x longer for apps to load is not acceptable. 0 Quote
Dennboy Posted June 12, 2022 Posted June 12, 2022 Personally I like the networking service with configuration in /etc/network and /etc/wpa_supplicant much more than NetworkManager, it is much easier to setup and keep working. I have been fighting network-manager on SBCs for quite some time and ditched it on most of them by now. On PCs NetworkManager usually works ok. 0 Quote
Dennboy Posted June 12, 2022 Posted June 12, 2022 some problems I had with network manager on Armbian on SBCs in the field (usually miles away with only a reverse ssh tunnel to reach it): it creates /etc/resolv.conf as textfile instead of linking to the runtime /run/resolvconf/resolv.conf this often results in an SBC that no longer use DNS when the remaining network connection is using another service like Networking it has poor support for multi-homing (having multiple networks like wifi+eth simultaneously to the same or different routers), it sometimes takes away the default route of the other connection (e.g. when pulling the Ethernet cable) the nmtui tool is unsuitable to switch networks over an ssh session, it just freezes since the existing network connection is first dropped. 0 Quote
ericpulvino Posted May 31, 2023 Posted May 31, 2023 I always love ifupdown2 which is in the debian repos. It comes from Cumulus Linux which uses debian devices as routers. Basically a python-based upgrade to ifupdown. Has support for lots of more complex networking configurations like Bridges, VRF, VLANs, VxLANs etc. In Armbian, I uninstall netplan and network-manger and install ifupdown2 (which removes ifupdown). No GUIs or anything but that is irrelevant to me as I run my SBCs headless. 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.