Hello!
I'm using openrc and iwd standalone for wireless, that is, with
[General]
EnableNetworkConfiguration=true
in /etc/iwd/main.conf. Now, it appears my ISP (4G/LTE) uses a smaller MTU than the default of 1500, so I've tried to change mine to 1400. But whenever iwd is (re)started, the MTU resets to 1500. For example:
# ip link set wlan0 mtu 1400
# ip link | grep wlan0
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1400 qdisc noqueue state UP mode DORMANT group default qlen 1000
# /etc/init.d/iwd restart
* Stopping iwd ... [ ok ]
* Starting iwd ... [ ok ]
# ip link | grep wlan0
5: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
Same thing with setting the MTU persistently in /etc/sysctl.conf.
How do I make it not do that? I have looked at all the iwd man pages and found no mention of MTU anywhere, and Internet searches only give me systemd crap. Or is the culprit openrc or netifrc somehow? Or even my router? I'm at a loss.