Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Which alternatives for systemd-networkd or Networkmanager
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 533

PostPosted: Fri Mar 07, 2025 1:03 pm    Post subject: Which alternatives for systemd-networkd or Networkmanager Reply with quote

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.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1921
Location: Germany

PostPosted: Fri Mar 07, 2025 1:46 pm    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 533

PostPosted: Fri Mar 07, 2025 2:38 pm    Post subject: Reply with quote

I read that https://wiki.gentoo.org/wiki/Netifrc
Quote:

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.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2053

PostPosted: Fri Mar 07, 2025 2:58 pm    Post subject: Reply with quote

dalu wrote:
I read that https://wiki.gentoo.org/wiki/Netifrc
Quote:

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.
Back to top
View user's profile Send private message
dalu
Guru
Guru


Joined: 20 Jan 2003
Posts: 533

PostPosted: Sat Mar 08, 2025 8:45 am    Post subject: Reply with quote

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#DHCP_static_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!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum