You are not logged in.
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
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