[systemd-devel] networkd-218 seems to ignore .link files

Lennart Poettering lennart at poettering.net
Mon Apr 20 16:45:21 PDT 2015


On Mon, 20.04.15 13:17, Ian Pilcher (arequipeno at gmail.com) wrote:

> On 04/20/2015 01:06 PM, Lennart Poettering wrote:
> >On Mon, 20.04.15 13:02, Ian Pilcher (arequipeno at gmail.com) wrote:
> >>I would love to be able to set the MTU of a physical interface in a
> >>.network file.  Is this possible?  (The systemd.network(5) doesn't list
> >>it.)
> >
> >Yes, this is supported via MTU=. This needs documentation indeed.
> 
> Hmm.  I've just tried both MTU and MTUBytes with no effect.  E.g.:
> 
>   [Match]
>   Name=eno1
> 
>   [Network]
>   Address=172.31.250.1/24
>   Gateway=172.31.250.254
>   DNS=172.31.250.254
>   MTUBytes=5000
> 
> (Unless this requires something later than systemd 216 on Fedora 21.)

It needs to be in a [Link] section in the .network file. The option is
indeed called MTUBytes= though.

Oh, and as I see now all this is actually correctly documented in
systemd.network(5)...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list