Get/Set MTU Size from the Command Line of Mac OS X

MTU stands for Maximum Transmission Unit, and a larger MTU size generally increases efficiency of a network connection because each packet carries more data, but sometimes the default MTU sizes (often 1500) will cause issues with some networks and needs adjusting. 

To get current MTU size:
networksetup -getMTU en0

To change that and set a new MTU size:

networksetup -setMTU en0 1453

Comments

  1. FYI, this only works for physical interfaces.

    For additional interfaces like ones created by VPN's etc you need to use the ifconfig tool.

    IE, the following will set the MTU to 1400 for the utun1 interface
    ifconfig utun1 mtu 1400

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete

Post a Comment

Popular posts from this blog

Tuxera NTFS for macOS Sierra

CleanMyMac 3.9 cracked for Mac

VMware Fusion 8 + License Key for MacOSX

How to open the *.war, *.jar files with Midnight Commander (mc)

CleanMyMac 3.9.3 2018 cracked for Mac

How to Disable System Integrity Protection (SIP) for macOS Sierra

ForkLift 3.0.6 cracked for Mac