Questions tagged [systemd-networkd]

The tag has no usage guidance.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
870 views

Setting up multiple IPv6 routes over a single interface on Linux

tldr; A LAN device is able to get 2 separate internet connection (1 NATted from ISP Router, 1 from manual PPP connection). Able to separate ISP-WAN and PPP-WAN IPv4 into 2 routes using ip rules but ...
RuMAN S's user avatar
  • 61
4 votes
2 answers
3k views

Why is networkd changing the MAC addresses of my bonded interfaces?

When I add the config files below into /etc/systemd/network and restart systemd-networkd, I find that the MAC addresses of bond0, eth0 and eth2 have all been changed to a single, locally administered ...
Isvara's user avatar
  • 215
4 votes
1 answer
2k views

Systemd's Networkd: Unable to add ipv6 default route

I am having a hell of a time getting IPv6 address connectivity set up on my new VPS. I thought I knew what I was doing but apparently networkd disagrees, I keep getting issues when trying to add a ...
Foxie The Yiffer's user avatar
2 votes
0 answers
2k views

Why is my systemd-networkd not aquiring an IP address via DHCP?

On my notebook running Gentoo, I set up the following things: Kernel with all necessary settings and modules WPA_Supplicant Systemd Systemd-Networkd Almost everything works as expected, the ...
ahuemmer's user avatar
  • 121
2 votes
0 answers
1k views

OpenSSH server on Ubuntu Impish fails to start after reboot, only manual restart works

Preface and issue I have an Ubuntu 21.10 (Impish) server, which network is managed by netplan and systemd-networkd. My /etc/netplan/01-netcfg.yaml looks like this: network: version: 2 renderer: ...
burnersk's user avatar
  • 2,096
2 votes
0 answers
563 views

Route untagged vlan to a tagged vlan with nftables

I have played around a lot with nftables, but I am stuck on this problem for the entire day. I have a wifi ssid that gets tagged vlan20. This part works, and I can see that dnsmasq is assigning ip ...
techwreck's user avatar
2 votes
1 answer
2k views

systemd-nspawn container DNS not working

I'm trying to launch a container with systemd-nspawn (from the systemd-container package, version 241), but the container is not able to resolve host names. The host environment is PureOS 9.0, which ...
Rich Remer's user avatar
2 votes
0 answers
625 views

systemd-networkd: Set DNS via CLI for managed link

I want to set the DNS for an interface managed by systemd-networkd via cli. The file system is mounted read-only, so is there way to achieve this without manipulating any files? I tried e.g.: ...
Malte's user avatar
  • 21
1 vote
0 answers
10 views

How to retrieve DHCP information when using systemd-networkd?

Our Ubuntu 22 machines have networking configured using netplan and systemd-networkd. Network manager (and therefore nmcli & co.) are not installed. In a bash script, I am looking to extract ...
Ale's user avatar
  • 1,733
1 vote
0 answers
575 views

Contents of /etc/systemd/network/10-eth0.network gets overwritten on reboot

I am using a VMware photon OS VM. I want to configure a secondary IP address for my eth0 interface. And following the lead in : How to configure interface aliases using Systemd-Networkd? I added an ...
gkns's user avatar
  • 111
1 vote
1 answer
574 views

untagged traffic must become tagged traffic after passing through the bridge

I'm trying to achieve something simple. I have a machine which has a single physical port enp89s0. this is connected to the native VLAN (VLAN=1). I need to create VMs and place them on a separate VLAN=...
Mazzy's user avatar
  • 247
1 vote
0 answers
233 views

systemd-nspawn can't auto login

I'm trying to config auto login for my nspawn container and I created /etc/systemd/system/[email protected]/autologin.conf and inside of that I wrote this config: [Service] ExecStart= ...
Jessica's user avatar
  • 11
1 vote
1 answer
2k views

Bridge on a bonded interface with systemd-networkd

So I recently changed my server from a Debian based distribution that used the old ifupdown style configs over to systemd-networkd. What I want is, my two primary interfaces, bonded, and then a bridge ...
dogman's user avatar
  • 31
1 vote
0 answers
288 views

Systemd-networkd fails IPv6 autoconfig where ifupdown succeeds

Title is a bit vague, since I do not know what is going on. I want to switch to systemd-networkd, and I want it to autoconfigure both IPv4 and IPv6. I come from ifupdown, with the following config: # ...
Cheiron's user avatar
  • 458
1 vote
1 answer
3k views

Netplan - Configure two interfaces on same network

I have a set of Ubuntu 18.04.5 LTS servers with two interfaces each. eno1 - 1g management interface eno5 - 10g data interface Both interfaces are in the same L2 subnet (10.98.16.0/22). My issue is ...
Apatt's user avatar
  • 21
1 vote
1 answer
3k views

Configuring DHCP lease when using systemd-networkd on Ubuntu 18.04 Server

we have an Ubuntu 18.04 dedicated server hosted by IONOS (1&1) and want to use one IPv4 and 2 IPv6 addresses. Recently we decided to switch from networking.service to systemd-networkd.service to ...
Artur's user avatar
  • 11
1 vote
0 answers
398 views

KVM: centos get no bridged ip on fedora

I've installed on my fedora machine centos as vm over kvm. My vm does not get an ip-address from my dhcp server over the bridge interface. When I want to active the interface via nmtui on my centos ...
Volker Raschek's user avatar
1 vote
0 answers
202 views

Systemd host-only bridge

I'm trying to create a bridge device for host to virtual machine only communication with systemd networking. Currently I have a netdev and a network file. The bridge is created after a restart of ...
Fionn's user avatar
  • 475
1 vote
0 answers
464 views

netplan apply breaks bonding

Whenever I change my Network configuration on my Ubuntu 18.04 Server and apply it using netplan apply command, the bonding interface is no longer usable. While the IPs are correct, there is simply no ...
Flole's user avatar
  • 31
1 vote
0 answers
2k views

Issue with bond + vlan + bridge on top of systemd-network

We are using two switches (let's call them A and B), and each host (running debian 9) has 2 nics (eno1 and eno2), connected to A and B. Those interfaces are bonded together (bond0) in active-backup ...
aif's user avatar
  • 381
0 votes
0 answers
31 views

Setting the same secondary public IP on multiple servers

The question concerns floating public IP's. I'm trying to set up a failover mechanism in the simplest way possible. Are there any hidden downsides to configuring the same secondary static public IP on ...
Blackness's user avatar
  • 101
0 votes
0 answers
43 views

Netplan persistency

I have a script that modified a lot of routes by using ip route and it also edits the netplan config in /etc/netplan. However I've noticed that when a ip link goes down temporarily and then up again ...
Andrew's user avatar
  • 21
0 votes
0 answers
52 views

One-shot DHCP request with systemd-networkd

How to/is it possible to make a one-shot DHCP request without writing/modifying a .network file for the interface? With dhclient, you could just run dhclient enp23s0f4 to obtain an IP address. I am ...
Marandil's user avatar
  • 111
0 votes
1 answer
102 views

systemd-networkd: add second gateway for the second public ip

What is the recipe for adding a second gateway/route for the second public ip that the machine has for systemd-networkd (on the single interface that is used)? This is Alma9/systemd-252 L.E. to ...
Adrian Sevcenco's user avatar
0 votes
0 answers
133 views

Using systemd-networkd inside a Podman container

The end goal is to have a macvlan interface set up within a Podman container. I have the following Dockerfile FROM docker.io/library/debian:bookworm-slim RUN apt-get --yes install systemd RUN ...
jezza's user avatar
  • 101
0 votes
0 answers
180 views

Issue when switching from networkd to NetworkManager

On an Ubuntu 22.04 instance on Google Cloud, I can switch from networkd to NetworkManager like this: $ sudo apt install network-manager $ sudo nano /etc/netplan/50-cloud-init.yaml # add: network: ...
triatic's user avatar
  • 35
0 votes
0 answers
750 views

How to overwrite an interface config with match option in netplan?

I am using an Ubuntu 18 on a virtualbox machine and I am trying to overwrite a netplan config related to an interface. There are two config files located in /etc/netplan/. 50-cloud-init.yaml: network: ...
Sobhan Safdariyan's user avatar
0 votes
0 answers
1k views

IPv6 forwarding enabled but not working. How to get it to work?

My system is running Debian GNU/Linux 11 (bullseye) My network is configured with two interfaces, one to my ISP and one to my lan. I am using systemd-networkd to manage the interfaces. The problem is ...
Jeremy Ardley's user avatar
0 votes
0 answers
3k views

Force DHCP client to use only IPv4

I have Linux client (running systemd-networkd, version 244), and I want to configure it's network only with IPv4. However, the DHCP server offers both v4 and v6. Is it possible to limit the client to ...
user951769's user avatar
0 votes
1 answer
735 views

lost network interface to systemd-networkd. What is going on?

I have a systemd host with 4 ethernet ports. one port is reserved for isolated containers. It is set as: # /etc/systemd/network/20-eth3-reserved.network [Match] Name=eth3 [Link] Unmanaged=yes I also ...
gcb's user avatar
  • 72
0 votes
1 answer
602 views

systemd-networkd: how to elegantly switch between creating a wireless access point and connecting to a wifi network

I'm working on a headless IoT device that creates its own access point so that the user can access its web UI and do necessary configuration. The system uses networkd but I'm not very attached to it ...
Zbigh1's user avatar
  • 101
0 votes
1 answer
838 views

WireGuard via systemd-networkd but with /etc/wireguard/wg0.conf

Is there any solution to use /etc/wireguard/wg0.conf for both, wg-quick and systemd-networkd. Following this example I have to duplicate configuration, but I want to store config in one place. How to ...
kAldown's user avatar
  • 161
0 votes
0 answers
1k views

Add DNS options to systemd-resolved /etc/resolv.conf

I am using systemd-networkd and systemd-resolved. I have /etc/resolv.conf being a symlink to /run/systemd/resolve/stub-resolv.conf as recommended. I guess that /run/systemd/resolve/stub-resolv.conf ...
Vicente Olivert Riera's user avatar
0 votes
1 answer
2k views

systemd: Why "ens3: Could not set route: Network is unreachable" when default route is valid?

Recently my VPS hosted at OVH abrutly lost connectivity. Upon further inspection, systemd-networkd was failing to set default route: ens3: Could not set route: Network is unreachable. It isn't clear ...
bugzbunny's user avatar
0 votes
0 answers
498 views

What does interface state "configuring" mean?

My systemd-networkd-wait-online.service fails. When I take a look: % networkctl IDX LINK TYPE OPERATIONAL SETUP 1 lo loopback carrier ...
Johannes Ernst's user avatar