Questions tagged [systemd-networkd]

For questions pertaining to systemd-networkd, a system deamon that manages network configurations. Use this tag for questions about systemd-networkd itself, using systemd-networkd, or questions about issues arising from network configurations managed by systemd-networkd.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Delay systemd-networkd until all NICs initialized

I am using systemd-networkd to configure my NIC. Its working just fine for most of my boxes, but on one of them, the NIC doesn't come up at boot. This is the message in the logs: eth0: Could not ...
0
votes
0answers
17 views

how to verify status of TCP Segmentation Offloading

we do the following on linux rhel machines ethtool -K ifcfg-478476 tso off now lets say that we want to verify the settings how to do the check with ethtool or other cli? we try ethtool -k ifcfg-...
0
votes
1answer
19 views

Cannot reach Pi via ethernet after disabling wireless interface

I have a raspberry pi running Arch Linux ARM connected on two interfaces. It uses systemd-networkd. eth0 is connected on a DMZ. It has a static ip and it's behind a router with a public ip and port ...
0
votes
1answer
49 views

Correct routing of IPv6

I have a Raspberry Pi connected via eth0 to a router and via eth1 to my computer. I use systemd-networkd to masquerade IPv4 to my computer which works like a charm. Because of some reasons I now need ...
0
votes
0answers
34 views

Use PostUp= in systemd-networkd

I know it's possible to use : PostUp = command PostDown = command In wireguard .conf files, but how can I use its in the systemd-networkd files ? Thanks
0
votes
0answers
27 views

Pass a variable in a systemd networkd file (wireguard)

My systemd-networkd file are auto-generated. I use its to set up automatically my wireguard tunnel. The machine which generates the wireguard networkd files isn't the same than the machine which hosts ...
1
vote
1answer
18 views

How to add an IPv6 routing rule with systemd-networkd?

I'm running on systemd 242 (Ubuntu Eoan) and am trying to do something equivalent to the following iproute2 command with systemd-networkd: ip -6 rule add from all table 1 pref 1000 This is what I ...
1
vote
1answer
81 views

ethtool doesn't change the network speed in pre-up

I want to set the network speed so I created a script in /etc/network/if-pre-up.d/eth-tool: #!/bin/sh ethtool eth0 -s speed 10 duplex full autoneg off I set the execution permission, but on boot the ...
0
votes
1answer
76 views

Restart network interface with Ansible

I have an ansible playbook which moves .network and .netdev files to the /etc/systemd/network/ directory. Theses files are generated automatically and I can't know their names or the name/number of ...
0
votes
0answers
33 views

How to make systemd-networkd automatically start a DHCP Server if there isn't one on the network already

I'm trying to setup systemd-networkd so it will automatically start a DHCP server if it notices that there is no DHCP on the network. If there is a DHCP on the network I want systemd to just acquire a ...
0
votes
0answers
11 views

create a virtual interface - ghost ping

I'm trying to create a virtual interface. So I used this command : ip addr add 10.243.0.5/24 dev ens3:virt_int Here is the output of ip addr # ip addr list ens3 2: ens3: <BROADCAST,MULTICAST,...
0
votes
1answer
109 views

Default gateway metric in systemd-networkd

Why is systemd-network giving a statically configured network the metric 0? If I configure an interface with DHCP I get the metric 1024: [Match] Name=eth0 [Network] DHCP=ipv4 The output of ip ...
3
votes
1answer
272 views

Set routing metrics for static IPs with systemd-networkd?

I recently set up a server with its network managed directly by systemd-networkd (nuked netplan.io and Network Manager) and gave it static IPs like this: /etc/systemd/network/10-ethernet.network [...
0
votes
0answers
14 views

How can I setup network when creating VM using debootstrap?

I worked over to set up of qemu image file for ubuntu using debootstrap using ubuntu18.04 i.e bionic ubuntu using a command debootstrap --variant=minbase --arch amd64 --include=less,locales,vim,sudo,...
0
votes
1answer
444 views

How to fully disable IPv6 in LXD containers with systemd-networkd

I am trying to fully disable IPv6 on an IPv4-configured virtual network adaptor in an LXD container, but it seems to be autoconfiguring an IPv6 address anyway. Quoth to the documentation: Note ...
1
vote
1answer
451 views

Systemd Networkd Vlan configuration

I am trying to setup the following using systemd networkd on debian 9: Interface eth0 ip address from DHCP server Interface vlan5 on eth0 vlan id 5 with static ip address: 172.16.0.1 This is the ...
0
votes
1answer
99 views

Ubuntu won't reply on same interface

I have an Ubuntu 18.04 (i.e. NetworkManager / netplan / systemd-networkd) VM which was working nicely until I tried adding a second interface. I initially had problems with the DHCP still running ...
2
votes
2answers
635 views

What is the systemd-native way to manage NIC ring buffer sizes before bonded interfaces are set up?

Managing NIC ring buffer sizes with ethtool is simple, for example: ethtool -G eth0 rx 4096 tx 4096 (Or replace eth0 with whatever interface you need to manage.) Doing this live is easy. Trouble ...
0
votes
2answers
419 views

systemd .link files not working

I'm running Armbian Buster on an Odroid HC2. Actually, my interfaces names looks like that : enx001e0632c19d for eth0, and wlx503eaa4a712a for wlan0. I would like to not use the predictive interfaces ...
-1
votes
1answer
260 views

Creating a VLan interface in SystemD, creates extra interface. What is this?

In order to substitute my ISP router, I decied to build a custom router using ArchLinux and connecting it directly to the ONT. My ISP applies QoS by seperating services into different VLANs. The ...
1
vote
2answers
418 views

Stable-private IPv6 address with systemd-networkd

I am trying to setup an IPv6 stable-privacy adress on a box with systemd-networkd. The box is an rpi runnning archlinux-arm but this is the same than for archlinux So following the wiki @archlinux....
0
votes
0answers
22 views

UDP not working for secondary IP in ubuntu

I have dco-access named interface configured on VM based on ubuntu wherein I configured 8 IP from same pool, but only global dco-access accepts udp and no other IP from global secondary accepts udp, ...
0
votes
0answers
33 views

Configure eth1 as a router's gateway porty using systemd-networkd

I am trying to program a RPi to act as a router. For that I need to configure eth1 as the gateway port for the network. eth0 is to be configured as the WAN port. I am using systemd-networkd for this....
0
votes
0answers
22 views

br0 is under control of NetworkManager despite renderer: networkd

I recently switched from iptables-persistent to using firewalld on my Ubuntu-based router (desktop install, not server). The first and only time I used netplan is when I set this machine up initially ...
0
votes
1answer
171 views

Route all traffic of external IP directly to KVM guest with systemd-networkd

I have a dedicated server running Debian Buster. I am connected through a single network interface and I orderd an extra IP from the server provider. I would like to setup a KVM guest which will be ...
0
votes
0answers
826 views

Enabling DHCP for IPv6 in netplan with networkd doesn't seem to do anything

I'm currently configuring the network interfaces for a Ubuntu 18.04 server, using netplan with the networkd backend. My hosting provider provides me with an IPv4 and an IPv6 for this server, however ...
2
votes
1answer
255 views

Prevent systemd-networkd (DHCP) from registering (NTP) time servers

I'm trying to stop some SBCs (running Debian) from updating their time via the router's own NTP server. We just want to use a manually configured one such as one from *.pool.ntp.org. I believe the ...
1
vote
2answers
43 views

systemd.network(5) get a value from file, or environment?

I know that *.service units support Environment=key=val and EnvironmentFile=fname entries, but it appears that *.network files don't. Is there any other way of getting, the value of an Address ...
1
vote
0answers
295 views

Setting Ethernet interface with no address systemd-networkd

I am trying to figure out a way to tell systemd-networkd to bring up an interface with no IP address and force an operation state in networkctl. This is what the output of my networkctl command looks ...
3
votes
1answer
137 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 ...
2
votes
1answer
403 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
97 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
64 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
187 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] ...
1
vote
1answer
473 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
331 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
26 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 ...
4
votes
2answers
995 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
1answer
396 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 ...
3
votes
3answers
1k 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
872 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
991 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
269 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 ...
4
votes
1answer
5k 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
0answers
222 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 ...
4
votes
1answer
684 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
39 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 ...
1
vote
1answer
1k 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
331 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 ...
2
votes
0answers
68 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.