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.

104 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
8k views

Enabling DHCP for IPv6 in netplan with networkd doesn't seem to do anything

I'm currently configuring the network interfaces for a Ubuntu 18.04 server, using netplan with the networkd backend. My hosting provider provides me with an IPv4 and an IPv6 for this server, however ...
Brendan Abolivier's user avatar
7 votes
1 answer
7k views

What are link "scopes" in systemd-resolved?

While trying to fix a DNS issue with NetworkManager's ModemManager on Ubuntu, I came across this difference in the output of systemd-resolve --status when connected. (ping ip works, manually editing /...
tudor -Reinstate Monica-'s user avatar
5 votes
1 answer
609 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 ...
Sorontik's user avatar
4 votes
0 answers
3k views

Can systemd-networkd handle interfaces in network namespace?

I'm trying to configure systemd-networkd on an embedded system where wlan0 is in a separate network namespace. I'd like for systemd to configure and monitor the interaface so that related services ...
cj8scrambler's user avatar
4 votes
0 answers
324 views

systemd .slice unit to limit a service to a specific interface/network classifier

Running on CentOS 7 [systemd ~243 & cgroup v1], I would like to limit a service to one specific network interface. The target machine has multiple physical network interfaces. The service is ...
THX's user avatar
  • 317
4 votes
0 answers
651 views

per-link (VPN) systemd-resolved configuration but keep link unmanaged by systemd-networkd

Background I manage my WLAN interface through systemd-networkd and use systemd-resolved for the whole system. I have several VPN connections managed by OpenVPN or Openconnect. I have them properly ...
Ondřej Grover's user avatar
3 votes
2 answers
2k views

Execute a script on ethernet connection/disconnection with systemd

I have an embedded device that will connect with systemd-networkd to a DHCP server if connected to the local network and will fall back to being a DHCP server if not. I didn't implement it yet but ...
David Bensoussan's user avatar
3 votes
0 answers
906 views

How to configure ipv4 Link-Local on Linux with systemd-networkd without violating RFC3927 specifications?

I'm using an embedded device with Linux 4.9 and systemd. I configured systemd-networkd in this way: [Match] Name=eth0 [Network] DHCP=v4 [DHCPv4] UseHostname=false How can I setup Link-Local only ...
Stefano Cappa's user avatar
3 votes
0 answers
1k views

'ifpromisc' from chkrootkit detecting networkd as packet sniffer.

Since updating to Debian 9, I've been getting an update every day from chkrootkit on my server about systemd-networkd being a packet sniffer. if using ifpromisc directly, I get the following: %> ...
Guy's user avatar
  • 894
3 votes
0 answers
869 views

Configure ipaddress with systemd-networkd without link

I am running debian (testing) with systemd v234. I decided to give systemd-networkd a shot for my network configuration. Wifi configuration with dhcp form my router worked well thanks to the Arch-...
truschival's user avatar
3 votes
1 answer
2k views

systemd-resolved change dns cname records

I have a PC with Arch Linux (4.7.2-1-ARCH) on it. The PC uses DHCP to get its IP, but uses a different DNS Server that i configured via systemd-resolved. When I use the dig command with a domain the ...
Stoffl's user avatar
  • 131
3 votes
0 answers
598 views

Linux + why dropping issue displayed from ifconfig but not from ethtool?

we have Linux VM red hat 7.2 version with two LAN interfaces the Linux machines are ruining on ESXi - 5.5.0 and we have very strange issue , the conflict is between the ifconfig command to ethtool ...
yael's user avatar
  • 1,521
2 votes
0 answers
265 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
2 votes
1 answer
1k 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 ...
mattf10's user avatar
  • 21
2 votes
0 answers
209 views

Dual network interface control with systemd

On a debian machine, I have two network interfaces: eth1 and eth2. Eth1 is static and eth2 is using dhcp. How to make so that when the eth1 interface is active, the eth2 interface is down and vice ...
Rig0L's user avatar
  • 41
2 votes
0 answers
1k views

How do I (correctly) manage/update search domains with systemd?

I have a system (running Ubuntu 20.04) with multiple network interfaces and I realized that the search domains (I'm looking at /etc/resolv.conf, which I know is just a symlink to a systemd-resolved ...
NicApicella's user avatar
2 votes
0 answers
388 views

Successfully start systemd service only if eth0 is not connected to the internet after boot

Problem: I am attempting to start a systemd service which enables a connection to an LTE/GSM provider by running a script but I only want the service to successfully start when eth0 is in the ...
ustayready's user avatar
2 votes
0 answers
556 views

How to make sure a systemd service start after network fully connected?

System Hardware: RPi 4 OS: Manjaro Arm Network app: systemd-networkd I feel like I've done everything to ensure my testbot will be called once network connection is established and yet I still ...
Folaht's user avatar
  • 1,042
2 votes
0 answers
410 views

Pass DHCP user class in netplan

Is it possible to pass a DHCP option 77 and/or DHCPv6 option 15 in netplan using the networkd backend. Currently networkd supports passing DHCP option 77 and I believe there is work on adding the ...
Joshua Schaeffer's user avatar
2 votes
0 answers
3k views

systemd LACP bond mess up aggregation ID for NICs

arch linux with lts kernel systemd networkd is configured to bond two NICs into LACP trunk with smart switch (DGS-1210-28). But it fails after OS startup - only one NIC is used for bond connection. ...
avi9526's user avatar
  • 339
2 votes
0 answers
2k views

Should localhost be managed by systemd-networkd?

I am moving from NetworkManager to systemd-networkd (after an upgrade to Ubuntu 18.04). I configured all my interfaces, bridges and VLANs and everything works. The log shows that root@srv ~# ...
WoJ's user avatar
  • 1,515
2 votes
2 answers
3k views

Enabling networking in a systemd-nspawn container

I'm trying to setup container that has access to the internet but have been unsuccessful so far. # sudo systemd-nspawn -nb -M debian-tree # systemctl enable --now systemd-networkd systemd-resolved # ...
Ava's user avatar
  • 133
2 votes
0 answers
418 views

Rollback misconfigured network settings in systemd using etckeeper?

I was thinking how to automatically rollback network misconfigurations with etckeeper and systemd. Workflow: # etckeeper commit # $EDITOR /etc/systemd/network/wired.network # systemctl restart ...
raspi's user avatar
  • 1,376
2 votes
1 answer
3k views

systemd-networkd-wait-online.service keeps failing

I am having a strange problem trying to get network working on Linux using systemd. My network eth0 is connected to a corporate network with a DHCP server: # more /etc/systemd/network/main.network #...
Alex Gdalevich's user avatar
2 votes
0 answers
2k views

create a specific route with systemd-networkd

I am trying for days to setup a specific route with systemd-networkd. And it all fails. [Match] Name=en* [Network] DHCP=yes IPv6PrivacyExtensions=kernel IPv6AcceptRA=true [Route] Destination=2001:...
22decembre's user avatar
2 votes
0 answers
3k views

automatic reconnect of wifi via systemd on raspbian

Setup: rasbian raspberry pi 4.4.14-v7+ with systemd for network related stuff. Using the internal broadcom wifi Access Point: Another RPi3 with Hostapd 1:2.3-1+deb8u3 and 4.4.14-v7+ I will refer to ...
Dennis Nolte's user avatar
1 vote
0 answers
227 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
0 answers
125 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
1 vote
1 answer
252 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
0 answers
515 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 ...
Malvineous's user avatar
  • 6,813
1 vote
0 answers
565 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 ...
Koguni's user avatar
  • 11
1 vote
0 answers
259 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, ...
graf_mefisto's user avatar
1 vote
0 answers
320 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 ...
Déjà vu's user avatar
  • 626
1 vote
0 answers
93 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 ...
Martijn Otto's user avatar
1 vote
0 answers
233 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 ...
Dmitry's user avatar
  • 23
1 vote
0 answers
712 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 ...
Travis Griggs's user avatar
1 vote
0 answers
408 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 ...
Hersi's user avatar
  • 21
1 vote
0 answers
2k 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 ...
user52366's user avatar
  • 201
1 vote
1 answer
791 views

MultiPathRoute directive in systemd-networkd

I have a NAS host with two LAG interfaces. Each LAG goes to a different switch in the same subnet. I'd like to setup multipath routing such that connections to the local subnet (and beyond) are free ...
Huckle's user avatar
  • 1,005
1 vote
1 answer
520 views

systemd-networkd multicast route removed when no carrier

We have a gateway product running Ubuntu 20.04 LTS. It has two network interfaces (WAN/LAN) configured using systemd-networkd. We use multicast messages to communicate to thousands of IoT devices ...
andy.jackson's user avatar
1 vote
0 answers
487 views

Virtual NIC interface is not visible in ifconfig command

I want to create a virtual interface for enp1s0, so that i can have multiple IP Address. I ran the below commands: # ifconfig enp1s0 192.168.0.2 netmask 255.255.255.0 up # ifconfig enp1s0:0 192.168.0....
md.jamal's user avatar
  • 291
1 vote
0 answers
286 views

Missing service file

Server - Ubuntu Bionic 18.04, Application - HAproxy. In one of our app servers, the networking service (the unit file was made by our provisioning team) suddenly disappeared. We received notifications ...
Vignesh SP's user avatar
1 vote
0 answers
552 views

How does avahi enable mDNS and expose it via LAN with ipv6 compared to Apple's mDNSResponder?

I'm using a device with Linux 4.9 and systemd-networkd. With ipv4 everything is ok, so I want to talk only of ipv6. In fact, I completely disabled ipv4 to use ipv6 with DHCP. So this is my initial ...
Stefano Cappa's user avatar
1 vote
0 answers
209 views

Choices for persistent-ipoib.rules for a non RDMA setup? (rhel7.3)

Im getting errors in journalctl -xe when i manually restart my network, not sure about on reboot, haven't check the times that closely. My 2nd adapter is certifiably down. It somehow seems ...
Brian Thomas's user avatar
1 vote
0 answers
155 views

Fedora 21 - no Network Online ever happened

I have some custom service, which is relies on network-online.target NetworkManager removed. chkconfing network on replaces it. Service have In journalctl -b I don't see network-online happen (as ...
WarP's user avatar
  • 11
1 vote
0 answers
133 views

Systemd and controlling network settings

I'm trying to figure out best way to control network settings in best way possible in real time. My current plan is this: Start ip -s -d -o monitor with systemd and write its output to file ...
raspi's user avatar
  • 1,376
1 vote
0 answers
43 views

Is it possible to make my system boot if systemd-networkd fails?

Is it possible to make an interface optional in case it is managed by systemd-networkd? I am using Debian GNU/Linux (unstable) on a Raspberry Pi 2 and I want to make my system continue booting in ...
dubbaluga's user avatar
  • 111
1 vote
0 answers
1k views

Random packet loss with bonded interfaces?

I'm trying to setup a LACP bond using systemd-networkd on an arch server. When I try to ping the gateway I seem to be getting intermittent package loss which lead me to believe the LACP isn't setup ...
krizzo's user avatar
  • 319
1 vote
0 answers
1k views

Can't setup private network with systemd-networkd

I created two files in /etc/systemd/network/ vbr0.netdev vbr0.network Then I reloaded systemd-networkd, however interface vbr0 is DOWN vbr0.netdev: [NetDev] Name=vbr0 Kind=bridge vbr0.network: [...
ynnt's user avatar
  • 11
1 vote
1 answer
849 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