Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Which alternatives for systemd-networkd or Networkmanager

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
dalu
Guru
Guru
User avatar
Posts: 536
Joined: Mon Jan 20, 2003 9:55 pm

Which alternatives for systemd-networkd or Networkmanager

  • Quote

Post by dalu » Fri Mar 07, 2025 1:03 pm

Ok, i have this old Gentoo server at Hetzner.
It's using systemd.
In the past I have used systemd-networkd to configure the network,
which was a bridge with eth0 and a libvirt VM with public dedicated IPv4 and IPv6 address.
Over the course of years I removed that VM.
Hetzner changed something in their setup and now I have to use a routed setup for IPV6 connectivity in the VMs.
But...
1. Usually systemd renames the interfaces to something like enp5s0,
but my eth0 is named p5p1, just p5p1.
2. When using systemd-networkd, when I remove the bridge and just configure p5p1,
it fails to assign either ipv4 or ipv6 address. It simply fails.
I then when to rescue system and emerged Networkmanager.
3. With Networkmanager, the routed setup, which requires very specific configuration, isn't possible to do.
But at least with Networkmanager, I'm able to assign the public ipv4 and ipv6 address.

So neither systemd-networkd or Networkmanager are able to configure my network properly.
And then I have a few docker containers running.

What are some other configuration options for networking with systemd?
I can't use openrc anymore, right?
Can I maybe run a custom configuration script with shell commands?
ip a add 1.2.3.4 dev p5p1
ip r add default via
Etc

How would I have proper interface names like enp5s0 instead of p5p1?
I have never encountered this kind of thing.
I have tried disabling predicable interface names, which just named the face eth0.

And every change is one big gamble, which requires a remote kvm console, which I can't use infinitely.
So I can't just experiment, and the kvm console also is awful to use at that.
Top
Banana
Administrator
Administrator
User avatar
Posts: 2397
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Fri Mar 07, 2025 1:46 pm

I can't use openrc anymore, right?
You still can. But I don't know this will solve your problems.

https://wiki.gentoo.org/wiki/Comparison_of_init_systems
https://wiki.gentoo.org/wiki/OpenRC
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
dalu
Guru
Guru
User avatar
Posts: 536
Joined: Mon Jan 20, 2003 9:55 pm

  • Quote

Post by dalu » Fri Mar 07, 2025 2:38 pm

I read that https://wiki.gentoo.org/wiki/Netifrc
possible run netifrc on systemd but at current, this requires deep knowledge (disable sysv-utils USE on systemd, adjust bootloader etc).
I'd like to know which "deep knowledge" specifically that is.
I found nothing, just a 10 year old gsoc netifrc systemd repo on github.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Fri Mar 07, 2025 2:58 pm

dalu wrote:I read that https://wiki.gentoo.org/wiki/Netifrc
possible run netifrc on systemd but at current, this requires deep knowledge (disable sysv-utils USE on systemd, adjust bootloader etc).
I'd like to know which "deep knowledge" specifically that is.
I found nothing, just a 10 year old gsoc netifrc systemd repo on github.
Netifrc's current systemd implementation will just call OpenRC. To get OpenRC installed, systemd has to be disabled as the default implementation of /sbin/init as a file (the sysv-utils flag). This, in turn, requires a new kernel parameter of init=[/path/to/systemd-init] to get systemd to start normally. (Or the corresponding kernel config option)

Maybe also look at dhcpcd, which, ironically, can configure static addresses. It has some of the best IPv6 support I've seen yet.
Top
dalu
Guru
Guru
User avatar
Posts: 536
Joined: Mon Jan 20, 2003 9:55 pm

  • Quote

Post by dalu » Sat Mar 08, 2025 8:45 am

dhcpcd seems to be an interesting option, thank you for suggesting that.

https://wiki.archlinux.org/title/Dhcpcd#Static_profile

It can also set static routes

https://wiki.archlinux.org/title/Dhcpcd ... c_route(s)

I'll not quite mark it as solved, might have some questions, but will do when I've migrated to dhcpcd.
Thanks again!
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic