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.

1
vote
2answers
695 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:...
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 ...
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 ...
-1
votes
0answers
27 views

Route requests from wlan0 to eth0 on Debian Jessy

I am trying to route requests from wlan0 (port 8080) to eth0 (port 80) on a Single Board Computer (SBC) running Debian Jessy. The device I am trying to access is a network camera. I've testing ...
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 ...
0
votes
0answers
25 views

Two bridges with two WAN interfaces

I want to create two bridges with two upstream WAN interfaces. Virtual Machines connected to the bridges should be able to communicate with each other, but each bridge would have a different WAN ...
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 ...
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....
0
votes
0answers
29 views

Ubuntu 18.04.2 Static IP is set but also accessible via DHCP address

I have set a static ip on my Ubuntu server using netplan and it worked perfectly fine. After a reboot the device is still accessible via the static ip I have set in /etc/netplan/01-netcfg.yaml file ...
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 ...
-1
votes
1answer
32 views

10-eth0.network

I was trying to ping my machine from a photon OS IP but wasn't able to do so. So I followed a post and changed the /etc/systemd/network/10-eth0.network to the following: [Match] Name=eth0 [Network] ...
0
votes
2answers
515 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 ...
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 ...
0
votes
1answer
68 views

systemd-networkd - wifi fails to connect sometimes [closed]

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
19 views

No IP4 connectivity over bond; slaves listed as “routable” instead of “enslaved”

Bond settings: root@gentooserver /etc/systemd/network # tail -n +1 * ==> bond1.netdev <== [NetDev] Name=bond1 Kind=bond [Bond] Mode=802.3ad MIIMonitorSec=1s LACPTransmitRate=fast ...
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 ...
3
votes
1answer
185 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
2answers
104 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 ...
1
vote
0answers
39 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
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 ...
0
votes
1answer
208 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 ...
1
vote
1answer
2k 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 ...
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 ...
1
vote
0answers
294 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. ...
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 ...
1
vote
1answer
864 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
1answer
123 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
0answers
109 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
91 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
312 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
33 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
411 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
234 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
40 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
162 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 ...
0
votes
0answers
285 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 - ...
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 ...
1
vote
1answer
115 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-...
2
votes
2answers
438 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
534 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 ...
0
votes
1answer
241 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
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
548 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 ...
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 ...
1
vote
1answer
2k 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
0answers
763 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 ~# ...
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 ...
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
787 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 ...
1
vote
1answer
288 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 ...