Questions tagged [systemd-networkd]

The tag has no usage guidance.

22
votes
3answers
15k views

Debian systemd network-online.target not working?

So, I'm trying to make systemd service on Debian Jessie. I need it to start after network-online.target is reached. The problem is network-online.target fires in the same time as network.target and ...
15
votes
2answers
19k views

How to configure systemd-resolved and systemd-networkd to use local DNS server for resolving local domains and remote DNS server for remote domains?

I'm connected to local area network with access to the Internet through gateway. There is DNS server in local network which is capable of resolving hostnames of computers from local network. I would ...
13
votes
2answers
6k views

How can I make my user services wait till the network is online?

I have written a couple of systemd user service files which I want users to enable and which need a working network connection. I thought that would be as easy as: Wants=network-online.target After=...
11
votes
1answer
4k views

How exactly are NetworkManager, networkd, netplan, ifupdown2, and iproute2 interacting?

I am learning about Linux networking on my Kubuntu 18.04 workstation, and I see there that both NetworkManager and networkd-dispatcher are running: oleg@eclectic:~$ sudo ps -ef | grep -i net root ...
10
votes
1answer
20k views

systemd-networkd - how to force new configuration without reboot?

On my Arch box, I had a network bridge. The goal was to remove the bridge and to only use the network adapter not bridged. In order to do so, I removed all the *.netdev and *.network configuration ...
9
votes
4answers
11k views

Predictable Network Interface Names break vm migration

How do you reset /etc/networking/interfaces when using "predictable network interface names"? Versions of Ubuntu older than 15.10 use network adapter names like: eth0 eth1 eth2 Replacing a ...
9
votes
3answers
4k views

With systemd-networkd, perform an action upon network configuration change

I am switching from Debian’s ifupdown to systemd-networkd, and it mostly works fine. One missing bit is that upon every network change, I want to call killall -ARLM tinc, so that my VPN is going up in ...
7
votes
1answer
5k views

avahi-daemon withdraws IP address from my network interface

I am running an Arch Linux server in my local network. It has avahi-daemon running on it to advertise some services (like a print server). It has happened for the second time now that my server was ...
6
votes
2answers
542 views

systemd-resolved block a domain name

Using systemd-resolved how do I block, route, or resolve, a domain name to a black hole, or a nowhere address. Bonus points for subdomains as well. I tried a single domain in /etc/hosts: 127.0.0.1 ...
5
votes
1answer
1k views

systemd-networkd default static address if dhcp fails

Is there a way to configure the systemd-networkd.service to automatically switch over to a static IP configuration if a DHCP server is not present? Or if systemd-networkd doesn't support this ...
5
votes
1answer
2k views

How can I set device mode via networkd

How can I set mode to device (for example monitor/ap to wlan) via networkd deamon in .link file ??? Because I want to set bridge in .network of wlan device and I can't do it until I set it in ...
4
votes
2answers
3k views

Why are my cloned linux VMs fighting for the same IP

I've cloned two vSphere VMs off of an Ubuntu 17.10 template. After boot, they both claim the same IP and fight for it (ssh connections break off as the IP switches between them). The hostnames and ...
4
votes
1answer
971 views

Why are IPV6 privacy extensions not working in Arch Linux?

I have native IPv6 via my ISP, with a routed /64 block. IPv6 is working on my internal network. (ie. I can ping ipv6.google.com) All devices on the network have IPv6 addresses allocated, and with the ...
4
votes
1answer
6k views

Proper DNS suffix setup Ubuntu 17.04?

I have trouble getting DNS suffix to work properly Basically, I have jira.mycompany.local in the company DNS server mapped to 192.168.100.5 I want to be able to access it using both jira and jira....
4
votes
1answer
4k views

mount samba shares at boot with systemd

I have some Samba shares that I want to mount at boot time. They're not needed for anything immediately, but I'd like them to be available when I first access them. I've tried using a .mount file ...
3
votes
1answer
322 views

new IP address whereas DHCP lease time not out

My embedded system uses systemd and gets its IP address via DHCP. The DHCP server uses lease time to give the same IP unique address to every computer on the network if lease time is respected. The ...
3
votes
1answer
3k views

Is that possible for debian users to connect to network through systemd-networkd?

Systemd offers the ability to manage the network by itself without additional tools such as netctl or NetworkManager. I am running debian 8 and i need to configure my network using systemd-networkd ...
3
votes
1answer
2k views

How to setup network subnet mask with systemd-networkd?

The systemd's systemd-networkd service enables to setup a networks using the .network unit files. However, as far as it is documented in the official man page (man systemd.network) it allows to ...
3
votes
1answer
2k views

Setup VLAN on linux bridge for virtual machines with systemd

I want to switch to systemd and with this I have to setup the linux bridge for my virtual machines in KVM to use VLAN. Having Debian GNU/Linux 9.1 (stretch), using its systemd-networkd and libvirt. ...
3
votes
1answer
39 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
1answer
190 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 ...
3
votes
1answer
79 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 ...
3
votes
0answers
405 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
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 ...
2
votes
2answers
3k views

How do I check DHCP lease time in systemd-networkd?

How do I find the DHCP lease time when I am using systemd-networkd? My network is defined in /etc/systemd/network/eth0.network: [Match] Name=eth0 [Network] DHCP=yes There are other question on ...
2
votes
1answer
1k views

systemd: who setup lo interface without ifupdown?

What component / package is responsible bringing up lo network interface with systemd as PID1 without ifupdown package? In Debian, we have quite a lot of component to manage network, ifupdown, ...
2
votes
1answer
4k views

Configuring a bridge interface with systemd-networkd

I'm attempting to create a bridge interface in Clear Linux with systemd-network to ultimately use it for KVM. I've attempted to create the following files as part of this guide: /etc/systemd/network/...
2
votes
1answer
279 views

Get WiFi SSID upon connection

When I'm connected to my metered mobile phone's wifi hotspot I would like to run a script to do things like kill the torrent downloader, stop syncthing, etc. When I'm back on my unmetered home wifi ...
2
votes
1answer
2k views

Unable to set mac address to tap interface using systemd-networkd

I'm trying to migrate some tap interfaces setup from tunctl to systemd-networkd. I'm using systemd version 215-8. So I have this test.netdev file: [Match] [NetDev] Name=tap_test Kind=tap MACAddress=...
2
votes
1answer
2k views

Cannot access internet from VirtualBox guest (Arch Linux)

I am using VirtualBox 5.0.20. The host machine is a MacBook running OS X 10.11.5 (El Capitan). The guest OS is 64-bit Arch Linux. When I installed Arch from the ISO, the guest's internet connectivity ...
2
votes
1answer
89 views

How do I to debug a slow network? (ArchBang)

Situation: MacBook Pro (late 2011/i3) with ArchBang has inconsistent network issues (very slow speed, pages fail to load, dns resolution failing). The workaround: systemctl restart NetworkManager....
2
votes
2answers
105 views

Is there a way to save current state of network configuration in linux into a datafile or set of ip commands like iptables-save?

Let's say I ran quite a few ip commands and ended up with a required network configuration, but I didn't save the command history. Instead of rewriting commands in a file or script again, is there a ...
2
votes
1answer
2k views

How do I configure APN settings on my QMI-based 4G modem?

I've got a custom Buildroot-based Linux system (running on a Raspberry Pi) that uses systemd for the init system. I've plugged a Quectel LTE EC20 modem into it and created the following file /etc/...
2
votes
1answer
357 views

IP address removed from network interface managed by systemd-networkd

I would like to have systemd-networkd manage only specific properties (DNS server name and search domains) of tun interface which is otherwise configured by OpenVPN client (which assigns IP address). ...
2
votes
1answer
673 views

systemd-networkd .network ignored within systemd-nspawn container

I'm fiddling with systemd-nspawn containers on my RaspberryPi. So far booting works fine. I use the --network-veth and --network-bridge=br0 options and bridging did work well with a kvm virtual ...
2
votes
2answers
2k views

systemd-networkd won't reload virtual network interface configuraion file

I'm trying to configure a tap interface using systemd-networkd configuration files. I created the files: /etc/systemd/network/tap_test.network /etc/systemd/network/tap_test.netdev with the contents: ...
2
votes
1answer
18 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
164 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
2answers
443 views

How single-label dns lookup requests are handled by systemd-resolved?

I looked into the systemd-networkd and systemd-resolved: systemd.network(5) on manpages.ubuntu.com systemd-resolved.service(8) on manpages.ubuntu.com and I am confused by some words: systemd-...
2
votes
1answer
810 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
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
1answer
532 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 ...
2
votes
1answer
789 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
0answers
127 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
549 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:...
1
vote
1answer
883 views

How to add a static route in systemd-networkd?

I have a host which is on 192.168.0.0/24 with an IP of 192.168.0.13. Its DHCP-provided gateway is 192.168.0.254. The configuration is done via systemd-networkd and the issue below is present at ...
1
vote
3answers
1k views

Systemd-networkd: Run script after DHCP client aqcuires new address

I am on ubuntu 18.04 server. I need to run a script that updates an IP address on CloudFlare (kind of DynDNS script). In previous versions I could do this with a DHCLIENT exit hooks for the interface ...
1
vote
2answers
696 views

nfs boot hangs after systemd-networkd starts

I am trying to nfs-boot a linux managed with systemd, via tftp kernel + nfs rootfs, my bootargs: root=/dev/nfs rw nfsroot=192.168.0.10:/nfsroot/rootfs,nolock ip=192.168.0.60:192.168.0.10:192.168.0.10:...
1
vote
1answer
3k views

How do I to set multiple IP addresses on an interface in systemd?

So in /etc/systemd/network I have a file lan.network: [Match] Name=eth0 [Network] DHCP=no [Address] Address=192.168.59.1/24 Sometimes I bring additional equipment onto that same interface but it's ...