Skip to main content

Questions tagged [systemd-networkd]

For questions pertaining to systemd-networkd, a system deamon that manages network configurations. Use this tag for questions about systemd-networkd itself, using systemd-networkd, or questions about issues arising from network configurations managed by systemd-networkd.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

How to fix netplan error on Rocky 9.4 FileNotFoundError

I am running Rocky 9.4 and installed netplan by: sudo dnf install netplan Before making any changes, the ip address via dhcp is 192.168.0.102 and the ethernet name is enp0s3. I created file /etc/...
arcomber's user avatar
  • 274
5 votes
2 answers
697 views

Binding to an IP address on an interface that comes and goes

I have an ap0 interface configured for systemd-networkd which is designed to be enabled/disabled dynamically by an application. I would like this same application to bind to an IP address associated ...
Christopher Hunt's user avatar
0 votes
1 answer
65 views

Linux won't send multicast packets to interface

I have a server on VPN configured as a TAP device (as opposed to TUN, since it is joining to a wider network). I can send unicast traffic of that network, as well as receive multicast packets (and ...
Charles Lohr's user avatar
0 votes
1 answer
44 views

Bypassing DHCP DNS with systemd-resolved

The issue Changing the DNS option in resolv.conf from the VM's gateway to 8.8.8.8 will result in no DNS resolution. resolvectl query google.com succeeds if I set DNS to my gateway. The set-up /etc/...
Centaro's user avatar
  • 23
0 votes
0 answers
21 views

Static and dynamic IP configuration with .network files using systemd

I can see 2 conf files(59-wlan0sta.network and 99-wlan0sta.network) related to wifi interface wlan0sta here is the content of the files: # cat /etc/systemd/network/59-wlan0sta.network [Match] Name=...
ashok449's user avatar
0 votes
1 answer
58 views

Can systemd networkd be configured for netboot, PXE boot, if yes, how?

If I understand this "issue" (systemd-networkd DHCP Server ignores SendOptions #15780), SystemD can be configured to handle network booting. However, I am unable to find more information ...
user212827's user avatar
0 votes
0 answers
37 views

systemd-networkd: Start service after network device is up

Based on ubuntu, I built a home router/access point. Network configuration is done completely with systemd-networkd (NetworkManager is disabled). For the local network I have a bridge (bridge0) that ...
IanH's user avatar
  • 101
1 vote
2 answers
188 views

Compile a script, add it to system so it runs before (or during) system boot

I really don't know how to go about this so I'm asking you guys here for help Long story short with some background details I have a USB3 2.5gb NIC attached to my Raspberry Pi 5 (this SBC also has its ...
Arelius's user avatar
  • 73
1 vote
1 answer
274 views

Configure two network cards persistently

I have two NICs and want to set the system up so the second one is the main/default one. First one is a 1Gb unit and its built into. The second one which is a 2.5gb NIC is attached over USB3, this ...
Arelius's user avatar
  • 73
0 votes
0 answers
16 views

KVM/libvirt VMs layer 2 looks good but layer 3 isn't working

This looks like it's similar to this question but my setup (kvm/libvirt) looks closer to the answer than the question. Host is running Debian 12 (bookworm) and is up-to-date with upgrades, nothing ...
Jarad Downing's user avatar
0 votes
1 answer
263 views

systemd-networkd-wait-online service timing out during boot

I been having this issue for quite a while so today I have tried a suggestion I found online and running systemd-analyze plot and checking the output. I'm attaching the SVG file here because unless I ...
Jay Croghan's user avatar
0 votes
0 answers
98 views

systemd-networkd client-identifier DHCP Server and client DUID assignment with B.A.T.M.A.N mesh

I have 3 Linux boxes running kernel 5.15 and systemd version 250.5+. I have one of the boxes running as a B.A.T.M.A.N mesh master, with a DHCP Server managed by SystemD, and the other two are mesh ...
PhilBot's user avatar
  • 29
0 votes
0 answers
174 views

Docker bridges have no-carrier with sytemd-networkd

My docker containers connected to a bridge network aren't able make outbound connections. I found out that two of the bridge networks had no carrier. I believe, I am currently running systemd-networkd ...
CodeCraft's user avatar
0 votes
0 answers
115 views

Debian 12 VM (on Hyper-V) has eth0/eth1 interface names instead of expected Predictable Network Interface Names?

I've just installed a brand new Debian 12.4.0 VM on a Hyper-V host, using the typical Debian debian-12.4.0-amd64-netinst.iso image. Logging in to complete the network setup, I'm surprised to find that ...
Hydrargyrum's user avatar
0 votes
0 answers
167 views

Troubles setting up fixed IP on Debian 12 VM

I've got Debian 12 VM running on an Macbook (M2) using Lima. I have added a 2nd network to it which created a lima0 network interface in the the Debian VM. By default it tries to get its address from ...
MLu's user avatar
  • 2,130
1 vote
1 answer
116 views

Why doesn't systemd-networkd add address and peer to the tun interface?

I'm trying to create tun interface and to add address and peer to it via .netdev and .network files of systemd-networkd. I'm using Ubuntu 22.04.3 LTS and systemd 249. I have two following ...
Andrei's user avatar
  • 13
1 vote
2 answers
61 views

Trying to configure an ubuntu machine with networkd to have a bridge but cannot see the internet

My goal is to configure the machine so that I can have multiple nspawn containers that can talk out to the Internet, the host must be able to talk out to the Internet, and from the host I must be able ...
Duke Dougal's user avatar
  • 1,065
0 votes
0 answers
15 views

PC refuses to respond after lid down for a few hours

The pc doesn't go to sleep because I have that disabled and works with the lid down, but after some time the system drops off the network and physically accessing the device results in the screen ...
Arnav Mishra's user avatar
0 votes
1 answer
159 views

systemd-networkd bridge does not work with VLAN

I am trying to configure one bridge per VLAN (without VLAN filtering) with systemd-networkd for easy configuration of libvirt VMs on Debian 12. This does work as expected without VLAN and it does work ...
Hauke Laging's user avatar
  • 90.4k
0 votes
1 answer
130 views

systemd-networkd DHCPServer works when client is directly connected but not through unmanaged switch

I have a Linux machine running kernel version 5.15. I have systemd version 250.5+ installed and I have it configured to run a DHCP server on a physical ethernet port. I have a raspberry pi running the ...
PhilBot's user avatar
  • 29
1 vote
1 answer
327 views

linux bonding active-backup mode set priority for multiple interfaces?

Is there is any way to set up priority order for multiple interfaces (more than two) for a network bond in active-backup mode? I have 3 interfaces (I know for two interfaces I can address this problem ...
ratanpreet's user avatar
1 vote
0 answers
299 views

systemd-networkd does not create vxlan interface on Ubuntu 22.04

I want to define a VXLAN interface using systemd-networkd on an Ubuntu 22.04. Therefore, I've created the following 2 files and ran systemctl restart systemd-networkd. # /etc/systemd/network/my-vxlan....
muffel's user avatar
  • 2,908
0 votes
0 answers
140 views

dependency issue at wpa_supplicant service startup

I have an issue during the bootup sequence of our toradex board (more info here) with wpa_supplicant service failing on "dependency" reason. I am using pure systemd network setup, with this ...
Pier's user avatar
  • 286
0 votes
0 answers
51 views

How to pause WLAN interface in linux?

I am working on a project with a Wi-Fi router (TP-Link) installed with dd-wrt firmware. A latop is directly connected over eth port with the router (as an adminsitrator who controls the router over ...
SAM's user avatar
  • 1
0 votes
0 answers
101 views

Specific external IP not reachable

I have an ubuntu machine(22.04 LTS) with multiple network interfaces and firewall disabled. When I ping /traceroute any external IP address it works as expected, with a single exception: 178.x.x.x. If ...
r.m.ghimis's user avatar
0 votes
0 answers
233 views

systemd-networkd-wait-online.service won't finish successfully even after drop-in patch

I've noticed that systemd-networkd-wait-online.service is always down on my laptop. Using the advice on this Arch Linux Wiki page, I edited the service file: systemctl edit systemd-networkd-wait-...
dandan13's user avatar
0 votes
0 answers
254 views

Issue with systemd-networkd not assigning a static IP if network device is not plugged in at boot time

I have a linux embedded system built using Buildroot, it has systemd v250. On a previous builtroot version, it was using systemd v232. I have the following network file defined: /etc/systemd/network/...
Azsde's user avatar
  • 1
1 vote
0 answers
353 views

networkd leaves bridged main interface in "configuring"

I'm using netplan with systemd-networkd to configure a KVM bridge on an Ubuntu 22.04 server. The bridge works, but networkctl shows the main interface in status configuring. Amongst other things, this ...
emmenlau's user avatar
  • 111
1 vote
1 answer
1k views

Is it possible to use systemd-networkd and have a GUI configuration tool when using GNOME?

After reading the Archlinux guide and completed a successful installation, I would like to use networkd with GNOME if possible. To my understanding (From the archlinux wiki) to have GUI support to ...
Notbad's user avatar
  • 115
0 votes
0 answers
179 views

How to stop cloud-init setting "Domains=" in networkd config?

I am using cloud-init on Debian with networkd for renderer and activator tasks. Is there a way to stop cloud-init adding Domains= to the generated systemd-networkd config file ? i.e. cloud-init ...
Little Code's user avatar
0 votes
1 answer
25 views

override FE0.network by conf no working

systemd version 241 cat /etc/systemd/network/FE0.network [Match] Name=FE0 [Network] Address=192.168.2.180/24 Gateway=192.168.2.1 cat /etc/systemd/network/FE0.network.d/xx.conf [Network] Address=192....
lanxue's user avatar
  • 3
0 votes
0 answers
39 views

Find where systemd unit dependency comes from

Actual question I have a target (network-online.target) which is waiting for a service. The service is an instance of a template which has Before=network-online.target but I think I removed that from ...
Daniel H's user avatar
  • 200
0 votes
1 answer
2k views

Assign IP to interface in every state (DOWN, NO CARRIER)

I have a service that depends on the host's primary IP address, and that service fails to start if that address is not configured on the host. Is there a way to have systemd-networkd bring a ...
Andrea Romano's user avatar
0 votes
0 answers
290 views

cannot allocate memory service systemd-networkd

I encountered an issue with systemd-networkd where it failed to start the device monitor and could not create the manager due to a "Cannot allocate memory" error. I have tried restarting ...
mahou's user avatar
  • 1
0 votes
0 answers
348 views

Sharing Ethernet connection with Wifi and USB ethernet using systemd-networkd

Context: I am running raspbian 11 on a raspberry pi 4 and have connected a usb ethernet nic. My goal is to allow clients to connect to wifi (wlan0) or via the usb ethernet (eth1), then have the pi ...
Jim Cortez's user avatar
0 votes
1 answer
355 views

Uplink-less Bridge with systemd-networkd

I am trying to configure several Linux bridges, all without physical uplinks, for use as isolated virtual networks with KVM/QEMU. I am running Archlinux, which uses systemd-networkd to configure ...
MamboDee's user avatar
3 votes
1 answer
3k views

systemd.network DUID, IAID and DHCPv4 clientIdentifier

I've set my NixOS to use: systemd-networkd: systemd.network.enable = true; and I have my interfaces configured something like that: networking { interfaces.enp5s0f0np0.useDHCP = true; ...
Mathieu Legrand's user avatar
0 votes
0 answers
70 views

Systemd bridge has self assigned IP on reboot

Running Ubuntu 22.04 with a TrendNet 2.5Gbe PCIe card I'm binding my NIC enp3s0 to a bridge br0 to use with a KVM that I'd like to have access to my local network. Configuring the bridge with systemd-...
dmstanley's user avatar
0 votes
0 answers
758 views

How to correctly configure systemd-networkd-wait-online.service to exit when an interface reaches a certain operational state?

I am trying to optimise my boot time for systemd, which currently stands at over 2 minutes. systemd-analyze shows the culprit for this to be systemd-networkd-wait-online.service, which - according to ...
Ozmydis's user avatar
1 vote
1 answer
256 views

systemd networkd and/or resolved blocking receiving (raw) packets on virtual network interface?

While working on some unit test code that basically sends raw Ethernet packets from one MACVLAN to another MACVLAN (virtual) network interface I noticed that most of the time the test code fails to ...
TheDiveO's user avatar
  • 1,337
0 votes
1 answer
326 views

How do I set option 119 in systemd-network [DHCPServer]?

I've tried, among other things: SendOption=119:string:example.com tcpdump says "malformed packet" 0000 64 4b f0 1a 05 9a 00 e0 67 26 5b 13 08 00 45 c0 dK......g&[...E. 0010 01 50 ...
sea chub's user avatar
  • 205
0 votes
1 answer
797 views

understanding dns under systemd/networkmanager

I am not understanding why my pc wasn't able to resolve names until I manually deleted a stale nmcli device entry. Description/steps: ubuntu 22.04 desktop, which uses network-manager and systemd-...
some bits flipped's user avatar
1 vote
0 answers
163 views

How to add a negated list of names to match in a .network configuration file in /etc/systemd/network/

How can I add a negated list of names to match? I want to match all interfaces that do not start with veth or vir. Is the below correct? [Match] Name=!veth* !vir* [DHCPv4] UseDNS=no Thanks!
Soren G.'s user avatar
0 votes
3 answers
2k views

Both systemd-networkd and NetworkManager starts by itself

This is ubuntu 20.04. I stopped and disabled systemd-networkd. Then enabled NetworkManager. But after reboot both services come up. Keeps happening like that. I want to manage my server using nmcli, ...
rajeev's user avatar
  • 245
2 votes
1 answer
1k views

systemd-networkd-wait-online configuration: confusion about --any

uname -a Linux meer 6.1.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 04 Jan 2023 16:28:15 +0000 x86_64 GNU/Linux But this is not a recent issue. It's been like this "for a while" - sorry. I ...
Stephen Boston's user avatar
1 vote
1 answer
449 views

Link flapping when MTU is set by DHCP server

I'm facing a peculiar networking issue with an Ubuntu 18.04 system. One of my Ethernet interfaces exhibits link flapping only with one particular brand of router (Sierra Wireless MP70) and only when ...
rgov's user avatar
  • 253
0 votes
0 answers
205 views

ifconfig and systemd-networkd are not synced and behaving differently

I have two questions if someone can help: I have a linux based system. I configured the /etc/systemd/network/00-eth0.network file with IP, Gateway, and MAC addresses. After I restart the systemd-...
Alex's user avatar
  • 1
0 votes
0 answers
598 views

How to start my service file after network is configured?

I want my service to only start when network is completely configured (ip address, interfaces, etc.), and restart my service whenever network restarts(because configuration may change). To achieve ...
user41965's user avatar
  • 200
3 votes
1 answer
2k views

Systemd unit auto restart when network changes

I am using a Python script to make some connection to a remote server. This is my unit: [Unit] Description=... After=network.target [Service] ExecStart=/usr/bin/python... WorkingDirectory=/home/matej/...
Matthai's user avatar
  • 75
0 votes
1 answer
219 views

Why does pgrep not find systemd-resolved?

#!/usr/bin/env bash echo "pgrep not finding systemd-resolved has bitten many times." if [ -z $(pgrep systemd-resolved) ]; then echo -e "systemd-resolved not found by pgrep, trying ...
rjt's user avatar
  • 387

1
2 3 4 5