Questions tagged [systemd-networkd]
The systemd-networkd tag has no usage guidance.
47
questions
0
votes
0
answers
9
views
How does centos handle empty fields in an IFCFG file?
I'm looking to automate setting up certain network interfaces on a centos server. The easiest way for me to implement this is to create a template config file and render it based on the interface ...
0
votes
0
answers
9
views
use sytemd-networkd forcerenew on a wifi network to renew that DHCP leases of connected clients
I am trying to use networkctl forcerenew on a wifi network to renew that DHCP leases of connected clients, but it does not seem to work
What I am trying is
update wlan1.network to have a new subnet
...
1
vote
1
answer
123
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 ...
0
votes
0
answers
90
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 ...
0
votes
0
answers
54
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 ...
0
votes
1
answer
97
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:
[...
0
votes
1
answer
145
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 ...
0
votes
0
answers
241
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 ...
0
votes
0
answers
92
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:
# ...
0
votes
0
answers
99
views
Systemd limit network bandwidth for multiple services
I have a machine with multiple systemd services running which have some network bandwidth requirements. On that same machine I have a FTP server and I need to make sure that if someone is uploading or ...
2
votes
0
answers
224
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: ...
0
votes
1
answer
246
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 ...
0
votes
0
answers
140
views
How to configure new (DHCP configured) interface with non system default route using systemd/networkd?
I am trying to configure Linux system, so during boot/adding new modem (visible as usb0 interface ) any software binding to modem interface (usb0) IP# will use offered by modem GW/routing instead of ...
1
vote
1
answer
188
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 ...
2
votes
0
answers
181
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 ...
0
votes
1
answer
337
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 ...
0
votes
2
answers
721
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,...
1
vote
1
answer
993
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 ...
1
vote
2
answers
4k
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 ...
0
votes
1
answer
400
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 ...
1
vote
1
answer
823
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
638
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 ...
2
votes
1
answer
1k
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
4
votes
1
answer
2k
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
0
votes
0
answers
743
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 ...
0
votes
1
answer
948
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 (...
1
vote
1
answer
1k
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 ...
2
votes
1
answer
357
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 ...
2
votes
2
answers
1k
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
...
1
vote
0
answers
362
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.:
...
1
vote
2
answers
850
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 ...
1
vote
0
answers
266
views
KVM: centos get no bridged ip on fedora
I've installed on my fedora machine centos as vm over kvm. My vm does not get an ip-address from my dhcp server over the bridge interface. When I want to active the interface via nmtui on my centos ...
0
votes
1
answer
1k
views
systemd: Why "ens3: Could not set route: Network is unreachable" when default route is valid?
Recently my VPS hosted at OVH abrutly lost connectivity. Upon further inspection, systemd-networkd was failing to set default route: ens3: Could not set route: Network is unreachable. It isn't clear ...
1
vote
1
answer
418
views
Make temporary changes to systemd-networkd which go away after reboot, for testing?
systemd-networkd is the way to configure a network using systemd. The files live in /etc/systemd/network. If I want to change a setting, I can edit a file there, and then do a systemctl restart ...
2
votes
1
answer
511
views
How to set custom settings in resolv.conf when using system-resolvd
I would like to use option values in /etc/resolv.conf.
From reviewing the relevant man page (https://linux.die.net/man/5/resolv.conf) I noticed that I can configure various options.
For example one ...
3
votes
1
answer
1k
views
Why is networkd changing the MAC addresses of my bonded interfaces?
When I add the config files below into /etc/systemd/network and restart systemd-networkd, I find that the MAC addresses of bond0, eth0 and eth2 have all been changed to a single, locally administered ...
0
votes
1
answer
936
views
Change multiple interface IP’s with networkd on coreos
I have a working CoreOS machine where I need to change two virtual network interface IP’s in the /etc/systemd/network file like this:
[Match]
Name=interface name
[Network]
Address=ip address.
This ...
2
votes
1
answer
1k
views
Systemd's Networkd: Unable to add ipv6 default route
I am having a hell of a time getting IPv6 address connectivity set up on my new VPS. I thought I knew what I was doing but apparently networkd disagrees, I keep getting issues when trying to add a ...
3
votes
1
answer
2k
views
Renaming networking interface through systemd-networkd not working in upgraded Ubuntu 18.04
In an Ubuntu 18.04 server, I was not able to rename network interfaces through proven config-management-applied systemd-networkd configuration working on all other servers.
The only difference I see ...
2
votes
1
answer
3k
views
systemd networkd is restarted after systemctl stop
I have some python code that needs to change the configuration of a linux bond using systemd-networkd. I tried editing the .network and .netdev config files and restarting networkd but it doesn't ...
1
vote
0
answers
104
views
Systemd host-only bridge
I'm trying to create a bridge device for host to virtual machine only communication with systemd networking.
Currently I have a netdev and a network file. The bridge is created after a restart of ...
0
votes
0
answers
337
views
What does interface state "configuring" mean?
My systemd-networkd-wait-online.service fails. When I take a look:
% networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier ...
4
votes
2
answers
2k
views
Is there a way to automatically add network interfaces to systemd-networkd and/or netplan?
I'm currently building pre-configured disk images for Ubuntu 18.04 servers. While the hardware is mostly the same, there are a few different network interfaces between the devices (and some are ...
1
vote
0
answers
365
views
netplan apply breaks bonding
Whenever I change my Network configuration on my Ubuntu 18.04 Server and apply it using netplan apply command, the bonding interface is no longer usable. While the IPs are correct, there is simply no ...
1
vote
0
answers
1k
views
Issue with bond + vlan + bridge on top of systemd-network
We are using two switches (let's call them A and B), and each host (running debian 9) has 2 nics (eno1 and eno2), connected to A and B. Those interfaces are bonded together (bond0) in active-backup ...
0
votes
1
answer
1k
views
Too many symlinks error setting up a network bridge with systemd on debian9
After a reboot the host is unreachable and I see this error in the logs vmbr0: Could not join netdev: Too many levels of symbolic links I really don't know what's causing it and I don't find anything ...