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.

0
votes
1answer
13 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 ...
2
votes
1answer
47 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 ...
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 ...
2
votes
2answers
58 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
87 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
133 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
44 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
300 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
69 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
59 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
192 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
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
1answer
272 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
169 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
28 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
100 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
223 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
67 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
334 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
442 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
173 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 ...
9
votes
1answer
2k 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
900 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
108 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
415 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
281 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
238 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
677 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 ~# ...
12
votes
1answer
15k 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
198 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
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
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 ...
3
votes
1answer
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
105 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
87 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
605 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
840 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
504 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
688 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
530 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
587 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
462 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
670 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
5k 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
259 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
501 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 ...