Questions tagged [systemd-networkd]
56 questions
4
votes
2 answers
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 address. This breaks DHCP, and doesn't follow the…

Isvara
- 215
- 2
- 13
4
votes
1 answer
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 default route.
Here is the networking information…

Foxie The Yiffer
- 41
- 2
4
votes
2 answers
Is there a way to automatically add network interfaces to systemd-networkd and/or netplan?
I'm currently building pre-configured disk images for Ubuntu 18.04 servers. While the hardware is mostly the same, there are a few different network interfaces between the devices (and some are virtual machines rather than bare metal). Because of…

RCH
- 43
- 1
- 3
4
votes
0 answers
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 not IPv6.
Apologies for the lengthy post.
My…

RuMAN S
- 51
- 3
4
votes
1 answer
How to configure interface aliases using Systemd-Networkd?
I am trying to port the following alias from /etc/network/interfaces to /etc/systemd/network/eth0.network.
auto eth0:1
iface eth0:1 inet static
address 10.0.2.1/24

sunknudsen
- 701
- 3
- 14
- 28
3
votes
1 answer
Renaming networking interface through systemd-networkd not working in upgraded Ubuntu 18.04
In an Ubuntu 18.04 server, I was not able to rename network interfaces through proven config-management-applied systemd-networkd configuration working on all other servers.
The only difference I see between servers originally set-up by configuration…

Jens Erat
- 1,530
- 2
- 12
- 27
3
votes
1 answer
systemd networkd is restarted after systemctl stop
I have some python code that needs to change the configuration of a linux bond using systemd-networkd. I tried editing the .network and .netdev config files and restarting networkd but it doesn't change the bond configuration.
What I want to do next…

barisdad
- 151
- 1
- 5
2
votes
1 answer
How to set custom settings in resolv.conf when using system-resolvd
I would like to use option values in /etc/resolv.conf.
From reviewing the relevant man page (https://linux.die.net/man/5/resolv.conf) I noticed that I can configure various options.
For example one can set the timeout on dns requests using options…

kfir
- 111
- 4
2
votes
0 answers
What controls the NIC naming convention after fresh Ubuntu 20.04 install?
This is a fresh install Ubuntu server 20.04.04 system. I'm using networkd and netplan to configure networking. I did not do any custom install steps, just loaded the .iso and installed Ubuntu server through the prompts.
When these machines were…

Rino Bino
- 511
- 5
- 21
2
votes
0 answers
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: networkd
ethernets:
eth0:
addresses:
…

burnersk
- 2,056
- 5
- 27
- 39
2
votes
0 answers
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 addresses from this range:
#VLAN…

techwreck
- 21
- 2
2
votes
1 answer
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 is Debian-like and based on Ubuntu.
The container…

Rich Remer
- 205
- 1
- 7
2
votes
1 answer
How to create dummy interface in /etc/systemd/network?
I am trying to create an equivalent to the following for systemd.
auto strongswan0
iface strongswan0 inet static
address 10.0.2.1/24
pre-up ip link add strongswan0 type dummy

sunknudsen
- 701
- 3
- 14
- 28
2
votes
1 answer
Stop Google Compute instance from configuring second network interface
I'm spinning up a VM in Google Compute Engine running Debian Buster, and configuring it with two network interfaces.
The first uses an ephemeral IP config, and is assigned to a publicly routable network, configured via DHCP. I'd like to keep this as…

hunmonk
- 73
- 6
2
votes
2 answers
Failure to configure Wireguard device via systemd-networkd on Google Compute Engine VM
Debian Buster image on a Google Compute Engine VM, and I have this systemd-networkd config placed at /etc/systemd/network/wg0.netdev to configure a Wireguard device:
[NetDev]
Name=wg0
Kind=wireguard
[WireGuard]
PrivateKey = XXXXX
ListenPort =…

hunmonk
- 73
- 6