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.

77 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
1k views

systemd-networkd DHCPServer configuring static lease

Does systemd-networkd DHCPServer support configure static lease based on for example mac addresses? If yes how? The systemd-networkd documentation doesn't mention anything about it.
4
votes
0answers
4k views

Making hostapd work with systemd-networkd using a bridge

I have two ethernet ports and one wireless port on a router I am setting up. I am using systemd-networkd. I am renaming the ports first then creating a bridge then am bridging one of the the ...
3
votes
0answers
128 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 ...
3
votes
1answer
279 views

Can an NTP client dynamically detect when to try connecting to servers, without integrating with the specific network configuration system?

ntpd handles dynamic network configurations just fine, as does timesyncd; ntpdate never handled dynamic network configurations, and I don't think it makes sense to work around that with scripts ...
3
votes
0answers
515 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 ...
3
votes
0answers
520 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 ...
3
votes
3answers
5k views

setup wireless router using systemd-networkd *.network files

I would like to configure an embedded device to behave as a wireless router, and I would like to achieve it preferably using networkd configuration files. I have two *.network files, a wired WAN ...
2
votes
0answers
19 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 ...
2
votes
0answers
94 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 ...
2
votes
0answers
108 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 ...
2
votes
0answers
109 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 ...
2
votes
0answers
269 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 ...
2
votes
2answers
249 views

Make systemd-resolved ignore a DNS server and only use the one I specify

I am experiencing an issue with DNS and to help narrow down the problem, I have been asked to configure my machine's DNS settings manually, only specifying one DNS server instead of the two returned ...
2
votes
0answers
3k 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 ...
2
votes
2answers
843 views

Prevent systemd-networkd (DHCP) from registering (NTP) time servers

I'm trying to stop some SBCs (running Debian) from updating their time via the router's own NTP server. We just want to use a manually configured one such as one from *.pool.ntp.org. I believe the ...
2
votes
1answer
1k 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 ...
2
votes
0answers
2k 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. ...
2
votes
0answers
124 views

systemd.networkd: how to set default link-local address?

systemd-networkd: Is it possible to configure default link-local address, which will be tried as the first one? Something like '--start=' parameter for avahi-autoipd.
2
votes
0answers
362 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: %> ...
2
votes
0answers
716 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-...
2
votes
1answer
2k 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 # ...
2
votes
0answers
243 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 ...
2
votes
1answer
1k 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 ...
2
votes
0answers
1k 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:...
2
votes
1answer
3k views

Reload network interfaces without rebooting

I'm doing a BASH script for Arch Linux in a Raspberry Pi 2. The thing is that in some point I'd like to reload the network interfaces without reboot and have my new named network interfaces (en0 and ...
1
vote
0answers
14 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 ...
1
vote
0answers
57 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 ...
1
vote
0answers
19 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 ...
1
vote
1answer
65 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 ...
1
vote
0answers
48 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 ...
1
vote
0answers
90 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 ...
1
vote
1answer
144 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 ...
1
vote
0answers
355 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 ...
1
vote
0answers
101 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 ...
1
vote
0answers
35 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....
1
vote
0answers
67 views

systemd-networkd - delayed dhcp allocation?

I'm seeing a delay in networkd on bootup as follows (see large time gap between the last 4 lines of the log, and all the lines before it). My guess is it's a 60 second timeout happening - somewhere - ...
1
vote
0answers
158 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 ...
1
vote
0answers
51 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 ...
1
vote
0answers
131 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 ...
1
vote
0answers
533 views

Setting Ethernet interface with no address systemd-networkd

I am trying to figure out a way to tell systemd-networkd to bring up an interface with no IP address and force an operation state in networkctl. This is what the output of my networkctl command looks ...
1
vote
1answer
926 views

How to add a default route to a DHCP-enabled interface?

All my servers' networking is configured via DHCP which sends, among others, a static route (needed for a VPN) and a gateway. This works fine. I have one exception: a server which should not get the ...
1
vote
0answers
432 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 ...
1
vote
0answers
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 ~# ...
1
vote
0answers
175 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 ...
1
vote
2answers
847 views

systemd-networkd seems to ignore .link files

I'm using Archlinux on a Raspberry Pi 3. The wireless adapter was working with systemd-networkd and wpa_supplicant. I named the device to "wlan0" using a 00-wlan0.link file containing: [Match] ...
1
vote
0answers
2k 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 servier: # more /etc/systemd/network/main.network ...
1
vote
0answers
2k 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 ...
1
vote
0answers
131 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 ...
1
vote
0answers
111 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 ...
1
vote
0answers
38 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 ...