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

CleanMyMac 3.9 cracked for Mac

Tuxera NTFS for macOS Sierra

CleanMyMac 3.9.3 2018 cracked for Mac

VMware Fusion 8 + License Key for MacOSX

DaisyDisk 4.2 Cracked for Mac

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

How to install Oracle 11g XE in MacOS