Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [systemd-networkd]

The tag has no usage guidance.

3
votes
3answers
2k 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 ...
0
votes
2answers
510 views

CentOS7 : Need to restart SoftEther VPN interface to have my static IP

i start my VPN client (softEther) with SystemD a OS startup and i have trouble to assignate a static IP to the local interface of vpn client network interface. There is my SystemD config : [Unit]...
3
votes
1answer
46 views

How to make docker.service wait for cni0.netdev bridge during systemd boot?

I'm running Ubuntu 18.04.1 LTS I have created a cni0.netdev and cni0.network file in /etc/systemd/network to create a virtual bridge to use for a local Kubernetes cluster/node. I have enabled ...
2
votes
1answer
50 views

How to add static ipv6 route with systemd-networkd

I'm trying to achieve the equivalent of the ip command below via networkd without success. ip route add default via fe80::1 dev eth0 My networkd configuration looks like below and brings up the ...
2
votes
1answer
697 views

What are link “scopes” in systemd?

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 /...
2
votes
1answer
673 views

systemd-networkd-wait-online failure

The default openvpn-server configuration file depends on systemd-networkd-wait-online, which times out with error: systemd-networkd-wait-online[279]: Event loop failed: Connection timed out My ...
2
votes
1answer
530 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 ...
1
vote
1answer
200 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.
1
vote
1answer
1k views

systemd-networkd IPv6 autoconfiguration

I want to create an IPv6 equivalent of a simple DHCP IPv4 network in systemd-networkd with a server host handing out IPv6 addresses, and a number of clients automatically picking up addresses. In ...
1
vote
1answer
465 views

systemd-networkd delete cached dhcp-assigned ip address

Where are the IP addresses, assigned through systemd-networkd DHCP, cached? I have changed my router and have a totally different setup, including preferred addresses for hosts. My host (my ...
1
vote
1answer
1k views

systemctl status systemd-networkd showing up as dead

I am on Debian testing/strech. I looked at Is that possible for debian users to connect to network through systemd-networkd? and did the same things. [$] cat /etc/systemd/network/wired.network [...
1
vote
1answer
1k 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 ...
0
votes
1answer
15 views

systemd-networkd - wifi fails to connect sometimes

Problem Statement I have an embedded Linux system which uses systemd-networkd for network management. Roughly half the time, the device can connect to a Wifi AP and obtain an IPv4 address via DHCP ...
0
votes
1answer
99 views

Static IP and netplan stop working a couple days after fresh install Ubuntu Server 18.04 LTS

Having some major issues with networking on Ubuntu 18.04 LTS. Fresh install. I set a static IP during install which worked for a couple days and remained set after multiple reboots. Now the interface ...
0
votes
1answer
282 views

systemd.networkd: DHCP and link-local address

Is it possible to configure systemd-networkd in a way like on Windows i nterms of DHCP and link-local address? I mean: if address can be obtained from DHCP, then fine - we are done. if getting ...
0
votes
1answer
419 views

How to set an additional route on the same gateway with systemd-networkd

Due to some network peculiarities involving VPNs and conflicting IP ranges, I have two subnets routing to two different interfaces. I would like to make one IP address in one subnet go out via a ...
0
votes
1answer
502 views

Wired network trouble after migration from Arch to Parabola. Status degraded

/etc/systemd/network/eth0.network [Match] Name=eth0 [Network] DHCP=yes networkctl IDX LINK TYPE OPERATIONAL SETUP 1 lo loopback carrier ...
0
votes
1answer
201 views

Debian systemd boot error with macspoofing: job sockets.target/start deleted to break […]

What I did is adding macspoofing at every boot, following this guide at exactly this section: https://wiki.archlinux.org/index.php/MAC_address_spoofing#macchanger (I'm on Debian Testing) Everything ...
4
votes
0answers
400 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 ...
2
votes
0answers
104 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 ...
2
votes
0answers
2k 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 ...
2
votes
0answers
120 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
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:...
1
vote
0answers
136 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. ...
1
vote
0answers
63 views

How to define vrf interfaces in /etc/network/interfaces

I'm using debian with 4.3 kernel, I want to add eth0 into VRF management network. I don't know if this configure as bellow will be work, if it's not, how to define /etc/network/interfaces file? And ...
1
vote
0answers
174 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
29 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.
1
vote
0answers
229 views

IPv6-subnets with systemd-networkd

My new ISP gives me a public IPv6 address with a /56 prefix to play around: 2001:b:c:d:5:6:7:8/56 I would like to create two subnets divided by a linux server like this: internet - fritzbox - ...
1
vote
0answers
681 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
89 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: %> ...
1
vote
0answers
845 views

systemd-nspawn: redirect ports and keep internet

I'd like to know how to be able to: redirect ports between host and container (like for example forwarding the host 23 port to the container 22 port) be able to connect to the internet, for example ...
1
vote
0answers
531 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-...
1
vote
0answers
589 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 # ...
1
vote
0answers
122 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
0answers
398 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
1k 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
105 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
86 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
36 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 ...
1
vote
0answers
620 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 ...
1
vote
0answers
739 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: [...
0
votes
0answers
26 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 ...
0
votes
0answers
72 views

systemd-networkd: DHCP OFFER not accepted from wifi AP

I’ve got two wifi APs and one station. Each AP got a DHCP server. I’m using systemd-networkd as DHCP client. AP1 : 11:11:11:11:11:11 AP2 : 22:22:22:22:22:22 station (jokobox) : aa:aa:aa:aa:aa:aa (...
0
votes
0answers
32 views

Systemd service for fetching data from the web at startup

I would like to fetch a random picture from unsplash in /usr/share/wallpapers each time I reboot my laptop. I wrote this service as a first try: [Unit] Description=Fetch random picture from unsplash ...
0
votes
0answers
199 views

dnsmasq redirection config rewrite to systemd-networkd configuration

I updated my Ubuntu 16.04LTS to 18.04LTS, first I noticed that systemd-networkd is colliding with dnsmasq because it's using the port 53. After some research, I learned that the systemd-networkd is a ...
0
votes
0answers
495 views

systemd-networkd: Set VLAN device MAC based on host MAC

I am working on a platform with an ARM CPU running linux that has a single MAC in the CPU directly connected to a switch IC. I am trying to set up a VLAN mode using systemd-networkd which I have done ...