2022 Developer Survey is open! Take survey.

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
1 vote
1 answer
24 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 ...
user avatar
0 votes
0 answers
7 views

systemd network: why wifi gains carrier before wired

This is not a problem. I'm just curious. I have three network devices: eno1 : onboard ethernet eth01 : udev named usb-ethernet adapter wlan0 : onboard wifi Looking through journalctl output : I see ...
user avatar
2 votes
2 answers
45 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 ...
user avatar
1 vote
1 answer
31 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,...
user avatar
0 votes
0 answers
25 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
0 votes
0 answers
153 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 ...
user avatar
  • 41
0 votes
1 answer
56 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 ...
user avatar
  • 293
0 votes
0 answers
20 views

systemd: define a network interface configuration in unit file

Is it possible to replace an /etc/sysconfig/network-scripts/ifcfg-* file with systemd unit file and define interface configuration in there? The reason I'm asking is that I'd like to create a bridge ...
user avatar
  • 1,409
1 vote
1 answer
61 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 ...
user avatar
  • 111
0 votes
0 answers
26 views

How to make WiFi reduced transmit power level persist across reboots?

TL;DR I have reduced the transmit power of a WiFi device and I would like to make this change permanent, so it does not revert after a reboot. Details I have joined two Raspberry Pi 4 devices to an ...
user avatar
  • 5,816
1 vote
0 answers
59 views

How to add IPv6 route with systemd-networkd and select source address from limited subnet

TL;DR In a systemd-networkd .network file, in the [Route] section, what do I put for the PreferredSource= option to make it select any available IP address as long as it's within a specific subnet ...
user avatar
  • 5,816
1 vote
1 answer
86 views

Systemd-networkd does not seem to find interface in the container

I am trying to set up an nspawn-container on Ubuntu 20.04.3. The host network-configuration contains a bridge interface: br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet * ...
user avatar
  • 1,948
1 vote
1 answer
54 views

How to make a systemd service 'follow' another service's status?

I have a 'dummy' network interface setup with systemd-networkd; by default the interface is left 'down'. There is a service unit which runs an application that binds to the address on that interface (...
user avatar
0 votes
1 answer
179 views

Mount Network Drive with systemd on Startup

I'm trying to mount my local NAS on startup with a script that is called by a systemd-service. Yesterday I did the same on a Debian 11-Install and it worked. Today on Arch I run into the problem that ...
user avatar
  • 43
0 votes
1 answer
36 views

finding wifi when using systemd

Many guides explain how to setup wifi connections when you know the SSID and the WPA2 Key. But what to do when you doesn't know the SSID, or you wanna use a public AP, or just need a list of available ...
user avatar
  • 186
0 votes
0 answers
56 views

How to override default route metric (1024) for dhcp client interface with systemd-networkd config?

systemd 237 in Ubuntu 18.04 sets route metric for defaultroute received via DHCP on wired interface to 1024. However, defaultroute on NetworkManager's controlled wlan interface is set to 20. Is there ...
user avatar
4 votes
0 answers
35 views

How can i find out which network interface managing solution is used on a given linux distribution in an easy and robust way?

I frequently find myself sitting in front of various different Linux installations and need to check or change network settings. They are different versions from different distributions (mostly debian ...
user avatar
0 votes
0 answers
50 views

Openvpn packet and NetworkManager VPN trouble with DNS and with call function

Spent a lot of time to figure out what's going on. But still issue not a clear. Summarize, installed OVPN packets for NetworkManager. And installed clear openvpn with new version 3, so have openvpn, ...
user avatar
0 votes
0 answers
56 views

Avoid to create a route in systemd-networkd same as using noprefixroute

I've the following systemd networkd config [Match] Name=br5.mac [Network] Address=192.168.200.33/29 [Route] Destination=192.168.200.34/32 Scope=link However this create two routes 192.168.200.32/29 ...
user avatar
  • 243
0 votes
1 answer
135 views

WiFi interface configured as AP is down after system restart

I'm trying to setup my WiFi interface in AP mode using hostapd. However, after system restart startup hangs for about 2min on: A start job is running for Wait for Network to be Configured It seems ...
user avatar
  • 1
0 votes
1 answer
144 views

getting ipv6 stable-privacy address with systemd-networkd

I am trying to get stable-privacy address geneted on my box for the router advertisement prefix. If I just set the kernel parameters like below I do get a good stable privacy address. sysctl net.ipv6....
user avatar
  • 1
0 votes
1 answer
362 views

Systemd-networkd bridge not being created at boot

I am trying to create an ethernet bridge with systemd-networkd so KVM guests can access the network. I am on Debian 11 Bullseye, attempting to create bridge "host1" on physical device "...
user avatar
0 votes
0 answers
115 views

How to configure DNS with systemd and PXE boot

I am PXE booting an Arch Linux system, and everything is working fine except that I can't get systemd-resolved to set up my local DNS servers, so I can't resolve any hostnames on my local LAN. The ...
user avatar
  • 5,816
0 votes
0 answers
45 views

IP link -show works but ip link up does not

li@ilak:~$ lsusb Bus 001 Device 014: ID 0bda:817f Realtek Semiconductor Corp. RTL8188RU 802.11n WLAN Adapter li@ilak:~$ sudo ip link set wlan0 this was acepted without error message (didnt know ...
user avatar
0 votes
1 answer
70 views

Why does my bond have two ipv6 addresses?

You can see below, the bond has two ipv6 addresses, 2603:8080:4540:7cfb::13fc and 2603:8080:4540:7cfb:4866:4bff:fe44:a988. Which makes me think systemd-networkd is somehow failing to treat the bond as ...
user avatar
1 vote
1 answer
138 views

How disable IPv6 on Fedora Silverblue?

I tried to create a file /etc/sysctl.d/10-network-override.conf then sudo systemctl daemon-reload net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.default.disable_ipv6=1 net.ipv6.conf.lo.disable_ipv6=1 ...
user avatar
  • 13
2 votes
1 answer
406 views

How to bind a user-level systemd service to network events?

I want to bind a user systemd timer (or service) to network events. For example consider this service: [Unit] Description=shows if connection changed [Service] Type=oneshot Environment=DISPLAY=:0 ...
user avatar
2 votes
1 answer
325 views

Network Fails to Start Intermittently on Ubuntu 20.04 Server

I have an intermittent problem with networking on a new VPS running Ubuntu 20.04. Roughly one out of 10 times, the network fails to start after reboot. When this happens, the server appears to start ...
user avatar
  • 21
0 votes
0 answers
71 views

Why does systemd-networkd start so late in the boot process? Question about systemd dependencies

I'm investigating whether I can improve the boot speed of my Gentoo Linux system which uses systemd. I've noticed that my onboard network cards (rtl8111g) take a long time to detect a carrier, but ...
user avatar
  • 440
1 vote
0 answers
69 views

Netplan: give IPv6 priority over IPv4

On a dual-stack workstation (single interface, Ubuntu 18.04), I'd like IPv6 to be chosen first, before IPv4. I guess that means essentially to have domains being resolved first by DNS6, and then by ...
user avatar
  • 602
0 votes
2 answers
475 views

systemd-networkd routing configuration with two interfaces

I have a wired connection and a wireless connection configured in this way [Match] Name=eth01 [Network] Address=10.0.0.120/24 Gateway=10.0.0.1 [Route] Destination=0.0.0.0/0 Metric=1000 I have tried ...
user avatar
0 votes
1 answer
320 views

IP forwarding in linux namespaces

I am currently trying to simulate a network using network namespaces under Linux. I have already set up the nodes and connected them, and they can ping each other, one hop at a time. But I am really ...
user avatar
0 votes
1 answer
236 views

Wireless network interface won't come up

The wireless connection of my device (OS Ubuntu 20.04) won't activate. This is the state before $ ip a sh dev wlp1s0 4: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue ...
user avatar
  • 165
1 vote
0 answers
25 views

systemd-networkd: Static address not added during boot

I have a .network file for my eth0 device: [Match] Name=eth0 [Network] DHCP=yes [Address] Address=XXXX:XXXX:XXXX:XXXX::617/64 When I boot the system, the interface gets an IPv4 and IPv6 address ...
user avatar
0 votes
0 answers
180 views

IPv6 Prefix Delegation for use on a single device

I want to setup IPv6 prefix delegation on a machine with only a single ethernet port and then request a set number of addresses and route them on the same device only. From what I have read so far ...
user avatar
2 votes
2 answers
582 views

systemd networking is ignoring network configuration file on boot

I have an embedded linux system compiled with Yocto, using systemd. I have a network configuration file at /etc/systemd/network/20-wired.network. The contents of that file are: [Match] Name=eth0 [...
user avatar
  • 41
0 votes
0 answers
138 views

Automate bringing up bridge with systemd

When I reboot my card, the interfaces seem to be deleted from the bridge! here is how I make the bridge work: I create these 3 files: /etc/systemd/network/19-gfxbridge.netdev [NetDev] Name=br0 Kind=...
user avatar
1 vote
1 answer
871 views

How to add a new network device on CentOS 7?

My VPS is assigned two IPs but "ip a" shows only one real network interface eth0 and one loopback interface lo. I copy /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-...
user avatar
  • 115
1 vote
0 answers
49 views

CAN bus interface does not come up after CAN bus restart

I am fighting with an industrial PC running Ubuntu 18.04.1 This PC is equipped with Apacer CAN module APEHC-D40 to receive data from external sensors. 95% of the time the module is running fine and ...
user avatar
  • 13
1 vote
1 answer
292 views

Ethernet network not starting on raspberrypi: DHCP6 CLIENT: Failed to set DUID: No medium found

I was trying to set up a static ip via systemd-networkd and it all worked, after I've removed my custom file and restarted the device both eth0 and wlan0 don't start. I was hoping they would get their ...
user avatar
  • 101
0 votes
1 answer
909 views

Can't set static IP on systemd-networkd

I can't set static IP on a wired interface using systemd-networkd. based on here, I should be able to set static IP using below code on /etc/systemd/network/eth0.network path: [Match] Name=enp1s0 [...
user avatar
  • 1
0 votes
0 answers
119 views

No GUI Program for Network(Both for WiFi and Ethernet) {Ocurred after reinstalling some packages}

I am using Kali Linux grep VERSION /etc/os-release VERSION="2021.1" VERSION_ID="2021.1" VERSION_CODENAME="kali-rolling" uname -v ...
user avatar
  • 3
0 votes
1 answer
49 views

Ethernet won't come up until link status is toggled

I am using systemd-networkd. I was able to fix this issue by adding this in systemd-networkd.service: ExecStartPost=bash -c 'ip link set dev eth0 down;ip link set dev eth0 up' I would rather this ...
user avatar
  • 153
1 vote
0 answers
160 views

Can systemd-networkd notify when network goes down?

I use systemd-networkd to configure my network with and basically just have: cat /etc/systemd/network/eth1-dhcp.network [Match] Name=eth1 [Network] DHCP=yes But now ,I need to make some changes to ...
user avatar
1 vote
0 answers
172 views

LAN devices can't reach IPv6 internet/WAN addresses

I have set up a double-stack, two-interface computer as a router for home use, but LAN devices can't reach the outside world with IPv6. (IPv4 works perfectly). traceroute also stops at the router when ...
user avatar
  • 21
0 votes
0 answers
458 views

samba network share fails to mount at boot time

On a box with Ubuntu 20.04, I struggle to mount a network share at boot time. Manually mounting the same share with sudo mount /media/SHARE works without any issues, and the same /etc/fstab entries ...
user avatar
  • 191
0 votes
2 answers
1k views

systemd-networkd.service and networking.service alternatively actives at reboot on a fresh install

I installed a LEMP web server on top of a Debian Buster template given by my server provider OVH. The server has connectivity problem : from time to time the ping is lost, then it needs a hard reboot ...
user avatar
  • 113
0 votes
1 answer
165 views

DNS server selection between two LAN interfaces

I have an box running Ubuntu 18.04.4. There are two LAN interfaces enp3s0 and eno1: the former is connected to a 3G modem on LAN network and the latter is connected to a satellite modem on another ...
user avatar
  • 13
1 vote
1 answer
594 views

Can you get systemd-networkd to accept an IPv6 RA *route* but not auto-assign an *address*?

I've got a network with both an radvd and a kea-dhcp6 server running. Clients are running systemd-networkd (currently debian stable) and: [Network] IPv6AcceptRA=true DHCP=yes The desired behaviour is ...
user avatar
  • 161