You are not logged in.
my .link file:
[Match]
Driver=r8168
[Link]
MTUBytes=1480
I turned off MTU-from-DHCP feature, but the MTU is still 1500 after reboot.
Any ideas?
Offline
I have the same issue; networkctl status $DEV actually shows the default link rules are being used instead of my custom ones... what does yours say?
Offline
Same
Offline
For me it seems the .link somehow doesn't match properly; I found this to debug that:
# udevadm test-builtin net_setup_link /sys/class/net/enp2s0f2
calling: test-builtin
load module index
timestamp of '/etc/systemd/network' changed
Parsed configuration file /etc/systemd/network/brocade-mtu.link
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context.
ID_NET_DRIVER=bna
Config file /usr/lib/systemd/network/99-default.link applies to device enp2s0f2
ID_NET_LINK_FILE=/usr/lib/systemd/network/99-default.link
unload module index
Unloaded link configuration context.
Fwiw; my brocade-mtu.link file contains:
[Match]
Driver=bna
[Link]
MTUBytes=9000
Offline
Offline
Ah; that does indeed seem to have a positive effect. It fixes udevadm:
calling: test-builtin
load module index
timestamp of '/etc/systemd/network' changed
Parsed configuration file /usr/lib/systemd/network/99-default.link
Parsed configuration file /etc/systemd/network/01-bna-mtu.link
Created link configuration context.
ID_NET_DRIVER=bna
Config file /etc/systemd/network/01-bna-mtu.link applies to device enp2s0f2
ID_NET_LINK_FILE=/etc/systemd/network/01-bna-mtu.link
unload module index
Unloaded link configuration context.
but it seems networkctl (even after restarting systemd-networkd) needs a reboot to pick up the changes
Offline
Offline
Spider.007 wrote:but it seems networkctl (even after restarting systemd-networkd) needs a reboot to pick up the changes
Probably because networkd doesn't apply link configuration (udev does this).
Yep, this works fine. Thanks!
Offline