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
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 ...
-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 ...
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 ...
-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
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 ...
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
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
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 ...
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 ...
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 ...
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
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 ...
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 - ...
1
vote
1answer
116 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
439 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 ...
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
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
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
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 ...
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 ...
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 ...
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 ~# ...
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 ...
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 ...
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 ...
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 ...
0
votes
1answer
129 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
99 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
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:...
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/...
1
vote
0answers
925 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
560 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
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 ...
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
553 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-...