You are not logged in.

#1 2018-06-10 18:01:15

Shibumi
Trusted User (TU)
Registered: 2013-04-14
Posts: 41
Website

How to set MTU on interface with systemd-networkd without reboot

Hey guys,
do you have any idea how I can set the MTU for an interface with systemd-networkd without a reboot?
I tried something like this:

/etc/systemd/network/en0s25.network

[Match]
Name=enp0s25

[Link]
MTUBytes=9000

[Network]
Address=192.168.1.101/24
Gateway=192.168.1.1/24
DNS=192.168.1.1

Problem: When I restart systemd-networkd nothing happens. When I reboot, it works fine. (setting it manually via ip link set enp0s25 works as well, but want to automate several VM clusters so ip link set is unhandy)

Offline

#2 2018-06-22 19:58:21

T4cC0re
Member
From: Germany
Registered: 2018-06-22
Posts: 3
Website

Re: How to set MTU on interface with systemd-networkd without reboot

Hi,

had the same issue recently. The conclusion I came to was to just set it manually once via

ip link set enp0s25 mtu 9000

(Although I recon you might have come to the same conclusion or simply rebooted)
Seems that networkd does not re-configure links on configured interfaces? Don't know.


|_|0|_|
|_|_|0|
|0|0|0|

Offline

Board footer

Powered by FluxBB