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:
To get current MTU size:
networksetup -getMTU en0
To change that and set a new MTU size:
networksetup -setMTU en0 1453
FYI, this only works for physical interfaces.
ReplyDeleteFor 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
This comment has been removed by the author.
ReplyDelete