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
11 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
0 answers
27 views

Cannot setup 2 Wireguard interfaces using SystemD

I have a Linux machine running Linux Kernel 5.15 with SystemD. I want to setup 2 Wireguard interfaces using the standard [email protected] SystemD service files. I have 2 wgX.conf ( wg0.conf and ...
PhilBot's user avatar
  • 69
0 votes
1 answer
20 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
20 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
158 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
89 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
60 views

Ideal laptop power user network setup - Systemd-networkd bridge versus libvirt bridge

Under linux we have several ways to configure a network card. Since I'm a simple advanced user with virtual machine needs, and for reasons of homogeneity, I try to simplify and use systemd as much as ...
hallebardes's user avatar
0 votes
0 answers
110 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
0 answers
125 views

Cloud-Init systemd-networkd bridge configuration incomplete/incorrect

When using Cloud-Init on ArchLinux, which uses systemd-networkd to configure network interfaces, for bridge interfaces, the configuration files generated are incomplete/incorrect. After a very long ...
MamboDee's user avatar
0 votes
0 answers
74 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
2 votes
1 answer
713 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
41 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
355 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
105 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,217
0 votes
0 answers
103 views

Mount smb/cifs shares only after openvpn client has been established

I'm trying to accomplish almost exactly what was asked here: mount smb share after wireguard with fstab or systemd The only difference is that I'm using openvpn rather than wireguard. I'm attempting ...
dutsnekcirf's user avatar
0 votes
0 answers
96 views

Systemd-network: set up bridge with more than one interface name

I have created a somewhat complicated network configuration using systemd-network (Debian bullseye), and it is mostly working. But I have one last hurdle to get past. Basically (keep in mind some of ...
nomen's user avatar
  • 121
0 votes
1 answer
145 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
  • 195
0 votes
1 answer
320 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
74 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
720 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
  • 225
2 votes
1 answer
589 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
199 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
  • 173
0 votes
0 answers
438 views

Static IP addresses in /etc/systemd/network do not get set

I have Ubuntu 22.04 running with two interfaces. I have set their static IP Addresses thru three files: File: 10-debug.conf [Service] Environment=SYSTEMD_LOG_LEVEL=debug File:85-static.network [...
Sunny's user avatar
  • 119
0 votes
0 answers
121 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
187 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
  • 190
3 votes
1 answer
873 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
  • 35
0 votes
1 answer
136 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
  • 377
0 votes
0 answers
49 views

Can a simultaneously connect via ssh to a linux server running two network adapters each on a different vLAN?

I'm not new to linux but I'm not well versed in networking. I have one single host (server) which uses systemd-networkd to assign interface names and static IP addresses. Attached to the VM are two ...
KevDog's user avatar
  • 51
0 votes
0 answers
187 views

NIC `bonding` in active backup mode is not working as expected with `systemd-netoworkd`

I can connect to internet using both the Ethernet connection and the WiFi connection. ❯ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default ...
Finch's user avatar
  • 135
0 votes
1 answer
495 views

systemd does not rename the interface of my USB wifi adapter after replug

I have a WiFi adapter ASUS USB-AC53 Nano with rtl88x2bu driver compiled by myself. When I boot my computer, because of the feature predictable interface names by systemd, I always get an interface ...
Andy Pan's user avatar
2 votes
0 answers
203 views

How do I give my container a static ip address (systemd-nspawn)

My container changes its ip address extremely often, almost every boot. I tried giving it a static ip address so my script knows how to ssh into it but nothing I did seemed to work. So I tried looking ...
Andrew Benor's user avatar
0 votes
0 answers
69 views

mininet access to services on host VM

Scenario / Background: So, I am trying to simulate couple of hosts in mininet. I want to run network service (NFS - Network File System - running on port 2049) on one of the host in mininet topology, ...
JAHANZAIB MALIK's user avatar
0 votes
0 answers
69 views

How to reliably map physical ethernet port location to eth0/1

I'm using Debian 9 (stretch). I have a motherboard with four ethernet interfaces stacked two on top, two on bottom. For my use-case, I'm only using two of them. Here's my question: how do I make the ...
kyrofa's user avatar
  • 345
0 votes
0 answers
994 views

systemd network issues, ' code=exited, status=1/FAILURE'

I have an application that fails to connect with networking (that's what I assume) and throws a code=exited, status=1/FAILURE error if I start it using systemd.  However, if I start that application ...
felix's user avatar
  • 1
2 votes
1 answer
178 views

systemd-networkd-wait-online failing with SocketCAN interface

I have configured a SocketCAN interface, can0 (confirmed working using can-utils). I have the below .network config file, so that systemd-networkd brings up the interface on boot. #/etc/systemd/...
Joshua Voskamp's user avatar
0 votes
1 answer
547 views

Ubuntu 22.04 netns with veth connected to bridge unable to ping gateway

Hey guys this is probably just something stupid I'm missing, but I'm having trouble setting up a net namespace to use for my VPN. The weird part is that this script/setup was working, and has suddenly ...
samikool's user avatar
1 vote
1 answer
615 views

In networkd, what is the relationship between Network.DHCP, DHCPv6.WithoutRA, and IPv6AcceptRA.DHCPv6Client?

The networkd documentation describes the following network configuration options: Network.DHCP. Possible values yes, ipv4, ipv6, and no. Default no. DHCPv6 will by default be triggered by Router ...
Alex Henrie's user avatar
2 votes
2 answers
890 views

How to retrieve a DHCP address for a VLAN?

Context: my French ISP (Orange fibre) provides crappy routers and I replaced it with a Ubiquity ER-4 a few years back. I now would like to use a small PC running Debian 10 and systemd-networkd. In ...
WoJ's user avatar
  • 1,455
0 votes
1 answer
119 views

trouble with onboard wifi, usb wifi okay

Trouble with onboard wifi. As this output shows, the Comet Lake wifi is recognized but not assigned a logical name and is not assigned an IP -- although it is configured through systemd-network and ...
Stephen Boston's user avatar
1 vote
2 answers
2k views

systemd-networkd-wait-online.service consistently overwritten by updates

Arch 5.18.12 I have multiple network interfaces and sometimes it takes a few minutes for all of them to connect. However for system startup I need only one -- which one depends on my geographic ...
Stephen Boston's user avatar
0 votes
0 answers
2k views

firewall-cmd: You most likely need to use --zone=trusted option

With Fedora 36, I noticed a new firewall-cmd warning I didn't notice before (when setting things up in the same way): # firewall-cmd --list-all You're performing an operation over default zone ...
maxschlepzig's user avatar
  • 56.4k
1 vote
1 answer
142 views

how can I prevent networkd from raising interface while still allowing dhcp configuration

I am trying to use systemd-networkd to configure my network. I would like to have a dhcp setting but I must keep the interface from being up. The step scenario would be Machine boot up Network ...
user3817810's user avatar
1 vote
1 answer
210 views

systemd-networkd match for LAN

I want static LAN IP addresses for my devices (an ethernet and wifi ) but in my usual week I connect to two LANs: two gateways, two IP ranges: a 10.0... network and a 192.168.. network. I have been ...
Stephen Boston's user avatar
3 votes
2 answers
2k views

Rename ether interface with systemd-networkd without reboot

I have a virtual Debian 11 server configured to be a router. On the router I use systemd-networkd to configure all of the network interfaces. When I add a (virtual) interface to the router the ...
Mr. Diba's user avatar
  • 380
1 vote
1 answer
671 views

How to stop a service when a network interface goes down?

I have a service which I want to start and stop my service when a specific network interface (eth0 in my case) goes up and down. Reading through documentation, and posts, I have come to the unit below,...
jaskij's user avatar
  • 170
0 votes
0 answers
149 views

Networking.service active failed

I am using Kali Linux. My NetworkManager is enabled. But randomly my NetworkManager or networking.service goes down. Most of the time it's networking.service and my wifi is gone. And Then I'm unable ...
Zeshan Ahmed Nobin's user avatar
1 vote
1 answer
331 views

Get MAC address before network is ready

I created a script to set a bunch of computer hostnames to the last 8 digits of the MAC address. The MAC address is a unique number baked into every computer, so it works well. I created a systemd ...
run_the_race's user avatar
0 votes
1 answer
6k views

systemd-networkd won't configure a static IP

I'm trying to switch to a static IP address, but systemd keeps using DHCP. Here is my /etc/systemd/network/eth0.network file: [Match] Name=eth0 [Network] Address=192.168.5.100/24 DHCP=no I know the ...
Dave's user avatar
  • 61
0 votes
1 answer
765 views

systemd.networkd DHCP server: assign static addresses to DHCP clients

I want to switch from isc-dhcp-server to systemd.networkd but I couldn't find any information about assigning static IP addresses (based on MAC) in systemd.networkd. Is it possible to configure ...
Sergey's user avatar
  • 353
1 vote
1 answer
486 views

VXLAN interface disappears

I have a CentOS 7 server with a VXLAN interface connected to a bridge. The server is using the network service. NetworkManager is not installed. This /sbin/ifup-local script sets up the VXLAN ...
mrog's user avatar
  • 111

1
2 3 4 5