Skip to main content

Questions tagged [systemd-networkd]

1 vote
1 answer
223 views

systemd-resolved will not use configured DNS -- "Network is down"

I have a small Linux box which acts as router/firewall/dns-server/dhcp-server/etc. for my network. I have recently reconfigured it to use systemd-networkd and systemd-resolved. Nearly everything ...
Chris Hall's user avatar
0 votes
1 answer
62 views

rkhunter warning in systemd-networkd?

sudo cat /var/log/rkhunter.log | grep -i warning [06:57:21] Checking for packet capturing applications [ Warning ] [06:57:21] Warning: Process '/usr/lib/systemd/systemd-networkd' (PID 620) is ...
Ranjith Dhandapani's user avatar
0 votes
0 answers
367 views

systemd-networkd static leases in DHCPServer for ve

I would like to assign some predefined IP addresses (or addresses from a predefined pool) for virtual ethernets created for systemd-nspawn'ed VMs. Can someone give a hint, how this could be achieved? ...
user3159253's user avatar
0 votes
1 answer
2k views

Add default route on physical interface using `systemd-networkd`

In /lib/systemd/network/10-eth0.network on my client, I am failing to configure anything that can translate my manual command: sudo ip route add default via 192.168.7.1 dev eth0 where 192.168.7.1 is ...
tarabyte's user avatar
  • 135
0 votes
0 answers
128 views

KVM bridge not assign IP to vm which is already a bridge member

I have a problem of configuring a network bridge for VM which is not assigning IP address after use of systemback and dd import data to the new VM. Here is my systemd-networkd configuration ...
Damien Chan's user avatar
1 vote
0 answers
215 views

Configuring systemd-networkd for IPv6 on Azure

I'm new at both Azure and systemd-networkd, so bear with me. I've deployed an Ubuntu 24.04 VM on Azure, and have configured the Azure side of things to a state that appears fully correct — I have both ...
JK Laiho's user avatar
  • 217
2 votes
0 answers
1k views

How to retrieve DHCP information when using systemd-networkd?

Our Ubuntu 22 machines have networking configured using netplan and systemd-networkd. Network manager (and therefore nmcli & co.) are not installed. In a bash script, I am looking to extract ...
Ale's user avatar
  • 1,843
0 votes
1 answer
90 views

Which piece of software touches network configuration files of a VM in a vagrant-libvirt setup with kvm/qemu?

Which element in a vagrant-libvirt-qemu/kvm-chain is responsible to actually configure the VM? Like editing the network configuration files. Wouldn't that totally depend on the details of the OS of ...
Robert Siemer's user avatar
2 votes
0 answers
815 views

One-shot DHCP request with systemd-networkd

How to/is it possible to make a one-shot DHCP request without writing/modifying a .network file for the interface? With dhclient, you could just run dhclient enp23s0f4 to obtain an IP address. I am ...
Marandil's user avatar
  • 131
0 votes
1 answer
249 views

Difficulty setting up a cross-system docker network in NixOS

I've got a collection of docker services that run across multiple servers in a local physical stack. For reasons, I'm trying to keep the exposed ports as minimal and secured as possible (using ...
FaerAnne's user avatar
2 votes
1 answer
883 views

How can I run a script when a specific network interface is up with systemd/networkctl?

I need to run a script when a specific network interface is brought up with systemd/networkctl, i.e. each time it enters state "routable". When the interface goes up or down, the device ...
Jochen's user avatar
  • 213
0 votes
1 answer
332 views

systemd-networkd: add second gateway for the second public ip

What is the recipe for adding a second gateway/route for the second public ip that the machine has for systemd-networkd (on the single interface that is used)? This is Alma9/systemd-252 L.E. to ...
Adrian Sevcenco's user avatar
1 vote
1 answer
367 views

Applying initcwn/ initrwnd to routes from DHCP

I am using Amazon Linux 2023 (which is based on Fedora and uses systemd-networkd for DHCP). ip route show shows routes like default via 10.0.0.1 dev enX0 proto dhcp src 10.0.0.211 metric 1024 I would ...
Bobby Impollonia's user avatar
1 vote
0 answers
1k views

Contents of /etc/systemd/network/10-eth0.network gets overwritten on reboot

I am using a VMware photon OS VM. I want to configure a secondary IP address for my eth0 interface. And following the lead in : How to configure interface aliases using Systemd-Networkd? I added an ...
gkns's user avatar
  • 111
0 votes
0 answers
2k views

How to overwrite an interface config with match option in netplan?

I am using an Ubuntu 18 on a virtualbox machine and I am trying to overwrite a netplan config related to an interface. There are two config files located in /etc/netplan/. 50-cloud-init.yaml: network: ...
Ssaf's user avatar
  • 43
1 vote
1 answer
922 views

untagged traffic must become tagged traffic after passing through the bridge

I'm trying to achieve something simple. I have a machine which has a single physical port enp89s0. this is connected to the native VLAN (VLAN=1). I need to create VMs and place them on a separate VLAN=...
Mazzy's user avatar
  • 277
0 votes
2 answers
5k views

linux bridge vlan-aware and untagged traffic

I have the following use case. A machine which runs VMs that have to be located to a VLAN with ID 166. The traffic must go out of an physical interface enp89s0 which is connected to the primary ...
Mazzy's user avatar
  • 277
2 votes
0 answers
402 views

systemd-nspawn can't auto login

I'm trying to config auto login for my nspawn container and I created /etc/systemd/system/[email protected]/autologin.conf and inside of that I wrote this config: [Service] ExecStart= ...
Jessica's user avatar
  • 21
0 votes
1 answer
941 views

Ubuntu 22.04 netns with veth connected to bridge unable to ping gateway

Hey guys this is probably just something stupid I'm missing, but I'm having trouble setting up a net namespace to use for my VPN. The weird part is that this script/setup was working, and has suddenly ...
samikool's user avatar
3 votes
0 answers
4k views

Why is my systemd-networkd not aquiring an IP address via DHCP?

On my notebook running Gentoo, I set up the following things: Kernel with all necessary settings and modules WPA_Supplicant Systemd Systemd-Networkd Almost everything works as expected, the ...
ahuemmer's user avatar
  • 135
4 votes
0 answers
1k views

Setting up multiple IPv6 routes over a single interface on Linux

tldr; A LAN device is able to get 2 separate internet connection (1 NATted from ISP Router, 1 from manual PPP connection). Able to separate ISP-WAN and PPP-WAN IPv4 into 2 routes using ip rules but ...
RuMAN S's user avatar
  • 61
3 votes
1 answer
3k views

Bridge on a bonded interface with systemd-networkd

So I recently changed my server from a Debian based distribution that used the old ifupdown style configs over to systemd-networkd. What I want is, my two primary interfaces, bonded, and then a bridge ...
dogman's user avatar
  • 71
4 votes
1 answer
4k views

systemd-networkd not launching DHCPv6 client

The systemd-networkd documentation makes this statement... By enabling DHCPv6 support explicitly, the DHCPv6 client will be started regardless of the presence of routers on the link This is the ...
Coops's user avatar
  • 6,224
4 votes
2 answers
6k views

What controls the NIC naming convention after fresh Ubuntu 20.04 install?

This is a fresh install Ubuntu server 20.04.04 system. I'm using networkd and netplan to configure networking. I did not do any custom install steps, just loaded the .iso and installed Ubuntu server ...
Rino Bino's user avatar
  • 722
0 votes
0 answers
2k views

IPv6 forwarding enabled but not working. How to get it to work?

My system is running Debian GNU/Linux 11 (bullseye) My network is configured with two interfaces, one to my ISP and one to my lan. I am using systemd-networkd to manage the interfaces. The problem is ...
Jeremy Ardley's user avatar
0 votes
1 answer
1k views

Networkctl: Manual VLAN IP Link

I've a network interface eth0 that carries my main network as untagged traffic and a "management" network with tagged traffic with the id 18. This is how it's configured: 10-eth0.network: [...
TCB13's user avatar
  • 1,398
0 votes
1 answer
2k views

Can't connect container with bridge to the internet using networkd

i have a server running Ubuntu 20.04 LTS connected through one physical ethernet interface to the internet. My prodiver assigned me a static primary IP4 (i will use A.A.A.A here for this IP), so my ...
Misc08's user avatar
  • 26
0 votes
0 answers
4k views

Force DHCP client to use only IPv4

I have Linux client (running systemd-networkd, version 244), and I want to configure it's network only with IPv4. However, the DHCP server offers both v4 and v6. Is it possible to limit the client to ...
user951769's user avatar
1 vote
0 answers
409 views

Systemd-networkd fails IPv6 autoconfig where ifupdown succeeds

Title is a bit vague, since I do not know what is going on. I want to switch to systemd-networkd, and I want it to autoconfigure both IPv4 and IPv6. I come from ifupdown, with the following config: # ...
Cheiron's user avatar
  • 458
2 votes
0 answers
1k views

OpenSSH server on Ubuntu Impish fails to start after reboot, only manual restart works

Preface and issue I have an Ubuntu 21.10 (Impish) server, which network is managed by netplan and systemd-networkd. My /etc/netplan/01-netcfg.yaml looks like this: network: version: 2 renderer: ...
burnersk's user avatar
  • 2,186
0 votes
1 answer
1k views

lost network interface to systemd-networkd. What is going on?

I have a systemd host with 4 ethernet ports. one port is reserved for isolated containers. It is set as: # /etc/systemd/network/20-eth3-reserved.network [Match] Name=eth3 [Link] Unmanaged=yes I also ...
gcb's user avatar
  • 341
1 vote
1 answer
1k views

systemd-networkd configuration not adding any routes and not finishing configuration

With systemd 241 on Debian 10, I am attempting to configure systemd-networkd style networking for an edge server. The problem I have is that when systemd-networkd starts up, it does not add the v4 or ...
MikeyB's user avatar
  • 40.1k
2 votes
1 answer
1k views

Route untagged vlan to a tagged vlan with nftables

I have played around a lot with nftables, but I am stuck on this problem for the entire day. I have a wifi ssid that gets tagged vlan20. This part works, and I can see that dnsmasq is assigning ip ...
techwreck's user avatar
0 votes
1 answer
809 views

systemd-networkd: how to elegantly switch between creating a wireless access point and connecting to a wifi network

I'm working on a headless IoT device that creates its own access point so that the user can access its web UI and do necessary configuration. The system uses networkd but I'm not very attached to it ...
Zbigh1's user avatar
  • 101
1 vote
2 answers
2k views

How to tag IPv4 and IPv6 packets with different VLAN tags on a Linux box?

I want to tag incoming IPv4 and IPv6 packets from a dual stack enabled connection with different VLAN tags, e.g. IPv4 packets should go to VLAN4 and IPv6 packets should go to VLAN6. To be more general,...
Ingo's user avatar
  • 505
1 vote
1 answer
3k views

How to translate "ip route add local 0.0.0.0/0 dev lo table 100" to systemd-networkd?

I am trying to setup a software router with the goal of routing packets to a proxy server on the router. The tutorial I am reading has the following routing rules: ip rule add fwmark 1 table 100 ip ...
Minsheng Liu's user avatar
3 votes
3 answers
17k views

VLAN support with libvirt for linux bridge to virtual machines

I'm using systemd-networkd to configure network interfaces managed by libvirt for KVM (Kernel-based Virtual Machine) with Debian Bullseye on all nodes. I want to have transparent VLAN support on the ...
Ingo's user avatar
  • 505
0 votes
1 answer
1k views

WireGuard via systemd-networkd but with /etc/wireguard/wg0.conf

Is there any solution to use /etc/wireguard/wg0.conf for both, wg-quick and systemd-networkd. Following this example I have to duplicate configuration, but I want to store config in one place. How to ...
kAldown's user avatar
  • 161
2 votes
1 answer
2k views

systemd-nspawn container DNS not working

I'm trying to launch a container with systemd-nspawn (from the systemd-container package, version 241), but the container is not able to resolve host names. The host environment is PureOS 9.0, which ...
Rich Remer's user avatar
1 vote
1 answer
3k views

Netplan - Configure two interfaces on same network

I have a set of Ubuntu 18.04.5 LTS servers with two interfaces each. eno1 - 1g management interface eno5 - 10g data interface Both interfaces are in the same L2 subnet (10.98.16.0/22). My issue is ...
Apatt's user avatar
  • 21
0 votes
1 answer
1k views

How to drop dhcp ip assignated when using clevis/tang on Ubuntu 20.04

I unlock my drive with clevis/tang on an Ubuntu server (NBDE). It works fine, but even if my server is configured to use a static ip in /etc/netplan/01-netcfg.yaml, my network interface also listen on ...
Francis's user avatar
  • 511
2 votes
1 answer
4k views

How to create dummy interface in /etc/systemd/network?

I am trying to create an equivalent to the following for systemd. auto strongswan0 iface strongswan0 inet static address 10.0.2.1/24 pre-up ip link add strongswan0 type dummy
sunknudsen's user avatar
5 votes
1 answer
8k views

How to configure interface aliases using Systemd-Networkd?

I am trying to port the following alias from /etc/network/interfaces to /etc/systemd/network/eth0.network. auto eth0:1 iface eth0:1 inet static address 10.0.2.1/24
sunknudsen's user avatar
0 votes
0 answers
2k views

Add DNS options to systemd-resolved /etc/resolv.conf

I am using systemd-networkd and systemd-resolved. I have /etc/resolv.conf being a symlink to /run/systemd/resolve/stub-resolv.conf as recommended. I guess that /run/systemd/resolve/stub-resolv.conf ...
Vicente Olivert Riera's user avatar
0 votes
1 answer
2k views

Add IP addresses to systemd-network besides netplan

On an Ubuntu 20.04 server, netplan is used to configure the network. It can configure ordinary static IP addresses but I need additional IPv6 addresses with preferred_lft=0. Netplan can't do that (...
ygoe's user avatar
  • 143
1 vote
1 answer
4k views

Configuring DHCP lease when using systemd-networkd on Ubuntu 18.04 Server

we have an Ubuntu 18.04 dedicated server hosted by IONOS (1&1) and want to use one IPv4 and 2 IPv6 addresses. Recently we decided to switch from networking.service to systemd-networkd.service to ...
Artur's user avatar
  • 11
2 votes
1 answer
1k views

Stop Google Compute instance from configuring second network interface

I'm spinning up a VM in Google Compute Engine running Debian Buster, and configuring it with two network interfaces. The first uses an ephemeral IP config, and is assigned to a publicly routable ...
hunmonk's user avatar
  • 83
3 votes
2 answers
2k views

Failure to configure Wireguard device via systemd-networkd on Google Compute Engine VM

Debian Buster image on a Google Compute Engine VM, and I have this systemd-networkd config placed at /etc/systemd/network/wg0.netdev to configure a Wireguard device: [NetDev] Name=wg0 Kind=wireguard ...
hunmonk's user avatar
  • 83
2 votes
0 answers
748 views

systemd-networkd: Set DNS via CLI for managed link

I want to set the DNS for an interface managed by systemd-networkd via cli. The file system is mounted read-only, so is there way to achieve this without manipulating any files? I tried e.g.: ...
Malte's user avatar
  • 21
2 votes
2 answers
2k views

create alias for network link using systemd-networkd configuration

I want to add aliases to my network links to use them as short descriptions. I am configuring my interfaces using systemd-networkd, having systemd version 241 on a debian buster server. I've created ...
betanummeric's user avatar