Search code examples
ubuntu-14.04vpnmtupptp

How to set permanent mtu size for ppp0


every time I connect to my VPN, I should run

sudo ifconfig ppp0 mtu 1300

How could I make it permanent?

I'm using Ubuntu 14.04


Solution

  • You can make your custom script at this address : /etc/network/if-up.d,

    #!/bin/sh
    
    if [ "$IFACE" = "ppp0" ]; then
        sudo ifconfig ppp0 mtu 1300
    fi
    

    finally make executable and enjoy from your life ...