Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
1answer
34 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 ...
0
votes
0answers
14 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 (...
1
vote
0answers
16 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
1answer
41 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.
0
votes
0answers
26 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
1answer
53 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 ...
1
vote
0answers
37 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
19 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
47 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 ...
1
vote
0answers
73 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
1answer
20 views

do “search domain” in networkd configuration and LLMNR conflict?

in networkd man page, the search domains are used to handle single-label names: The domains without the prefix are called "search domains" and are first used as search suffixes for extending single-...
1
vote
2answers
81 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-...
6
votes
2answers
222 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 ...
-1
votes
0answers
71 views

systemd-networkd - wlan no IPv4 address via DHCP

Setup I'm trying to set up a Wifi modem to connect to a WPA wireless network. The embedded target platform is running Linux 4.9.x, systemd-networkd (v237), systemd-resolved, and wpa_supplicant. I'...
0
votes
1answer
61 views

Double entry in DHCP lease file

I noticed that my DHCP lease file (/var/lib/dhcp/dhclient.eth1.leases) has more than one entry for my external Internet-facing IP interface. Some of the lease entries have overlapping timeframe. I'm ...
2
votes
1answer
567 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 ...
1
vote
2answers
416 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
1answer
66 views

Loading netplan scripts from optional mount target

I'm trying to leverage netplan's ability to override configurations with lexicographically later files, but when these files come from another mount point, the whole thing fails. I've created a ...
0
votes
1answer
281 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 ...
3
votes
1answer
225 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 ...
1
vote
1answer
125 views

Why does systemd-networkd consider UseDomains= (domain search list from DHCP) less safe than LLMNR?

UseDomains= Takes a boolean argument, or the special value "route". When true, the domain name received from the DHCP server will be used as DNS search domain over this link, similar to the ...
1
vote
0answers
504 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 ~# ...
11
votes
1answer
8k 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 ...
0
votes
0answers
176 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 ...
1
vote
1answer
985 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 ...
0
votes
2answers
2k 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

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 ...
0
votes
1answer
79 views

Match any ethernet interface with systemd.networkd

How can I match any local ethernet interface within a systemd.networkd configuration? I want it to match all ethernet interfaces, but not wifi interfaces or tunnel interfaces etc. on the local host ...
1
vote
0answers
62 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
1answer
478 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

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/...
0
votes
0answers
701 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 ...
0
votes
2answers
399 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]...
2
votes
1answer
519 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
1k 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
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. ...
1
vote
0answers
471 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
542 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
1answer
290 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
508 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 ...
3
votes
1answer
4k 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....
2
votes
1answer
242 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
1k 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/...
0
votes
1answer
420 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 ...
1
vote
2answers
2k views

Systemd Service Run When Network Interface Up/Down (eth0)

I would like to run a systemd service each each time eth0 goes up/down (perhaps a separate service for up and down). This value should change when the ethernet is plugged in. Does anybody know how to ...
2
votes
1answer
271 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). ...
1
vote
0answers
101 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 ...
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, ...
8
votes
4answers
9k 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 ...
1
vote
1answer
280 views

How do I get segmentation offload working with systemd-networkd?

I'm trying to set up a Linux system (Debian 8.5, kernel 3.16.36-1+deb8u2, 64-bit) using systemd-networkd to configure the network interface. I need segmentation offload disabled, so I set up my link ...