Setting the MTU on NetworkManager connections

August 5, 2015

It is August 2015. Unfortunately it is still not possible to manually specify the MTU to be used on non-Ethernet NetworkManager connections (eg. VPN connections but also PPP).

Not that is has not been requested years ago. Choose one of the many bug reports:

Safe for the fact that they’re partially redundant reports, just imagine what would have happened if the devs had simply provided a MTU field for every connection type, empty by default but allowing to explicitly configure one. But no, that would have confused users *rolleyes*

Enough ranting, for VPN connections the workaround remains. Create a script /etc/NetworkManager/dispatcher.d/vpn-up:

#!/bin/sh

if [ "$2" = "vpn-up" ]; then
	/sbin/ifconfig "$1" mtu 1392
fi

Still thinking that it’s sufficient to backup /home before your next distribution upgrade/reinstall? Good luck…

Tags: , , , , , ,
Posted in Software by Pieter Hollants

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

You must be logged in to post a comment.

 
Copyright © 2020 by Pieter Hollants. All rights reserved. - Legal notices & Privacy policy