View previous topic :: View next topic |
Author |
Message |
dalu Guru


Joined: 20 Jan 2003 Posts: 533
|
Posted: Fri Mar 07, 2025 1:03 pm Post subject: Which alternatives for systemd-networkd or Networkmanager |
|
|
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 |
|
 |
Banana Moderator


Joined: 21 May 2004 Posts: 1919 Location: Germany
|
|
Back to top |
|
 |
dalu Guru


Joined: 20 Jan 2003 Posts: 533
|
Posted: Fri Mar 07, 2025 2:38 pm Post subject: |
|
|
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 |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2048
|
Posted: Fri Mar 07, 2025 2:58 pm Post subject: |
|
|
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 |
|
 |
dalu Guru


Joined: 20 Jan 2003 Posts: 533
|
|
Back to top |
|
 |
|
|
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
|
|