Configure TCPIP Max Transfer Unit (MTU) size

The default Max Transfer Unit (MTU) size for ethernet is 1500 bytes, if using a network with a different MTU size, then one should make sure to configure MTU in Windows to avoid packet fragmentation or connection loss.

Open an Elevated Command Prompt and run this command to view current MTU size of the available IPv4 sub-interfaces (Can also be done with IPv6):

netsh interface ipv4 show interfaces

To change the MTU size of sub-interface no. 1 (See "Idx" from above command):

netsh interface ipv4 set subinterface 1 mtu=1500 store=persistent

Related Registry settings to Configure MTU size.

Updated: 26 July 2012

Comments:

  1. Phantom says:

    The show interfaces line reveals that the loopback is set to a much higher number, should that be changed to 1500 as well?

  2. Coscu says:

    i have make a change with a friend in the MTU but now we want to delete it and we dont know the command =/ can someone help ?

  3. kontol says:

    If you have more than one NICs and you want to see which subinterface is, you need to run:

    netsh interface ipv4 show interfaces

    The result will be like this:
    Idx Met MTU State Name
    --- --- ----- ----------- -------------------
    1 50 4294967295 connected Loopback Pseudo-Interface 1
    17 25 1500 connected Wireless Network Connection 1
    19 25 1500 connected Wireless Network Connection 2

    Hence, if you like to change MTU of "Wireless Netwrok Connection 1", you should run command:

    netsh interface ipv4 set subinterface "17" mtu=1384 store=persistent

    and so on for the other interfaces.

  4. Snakefoot says:

    Phantom
    The show interfaces line reveals that the loopback is set to a much higher number, should that be changed to 1500 as well?

    The loopback adapter can only communicate with the local machine hence the name. No need to change the MTU.

  5. Lennon Zimmerman says:

    When looking in the ipv6 i find 6 other NICs but they are not given a index number. How do i change the MTU for these?

  6. MOMO says:

    Dear All,
    Could you help me for the below issue.
    I've a VoIP device (SBC) that's connected to a L2 network then to a router.
    The problem is that the Server interface is divided into several logical subinterfaces(the same for the router) & each interface has its own VLAN tag.
    I dont have any administration right for both the router & the L2 network while I need to connect my vista PC instead of the SBC to troubleshoot a problem.
    This means that I've to make my PC undersatand VLAN ID as the router is going to send the packets tagged to me.
    Do you have any idea of how to make my PC aware of tagged packets?

  7. Rafael says:

    In my case, when I type the netsh interface ipv4 set subinterface “11″ mtu=1384 store=persistent - 11 is in my case - I get an error: the following command was not found. What can I do ??

    Regards.

  8. Michael says:

    The correct command would be:
    netsh interface ipv4 set subinterface interface=11 mtu=1384 store=persistent

    Then it should work fine

  9. John says:

    Michael's command works correctly for me. Many thanks.

  10. avnish says:

    when I tried to change the values it says that, the requested operation require elevation . what would I do now??

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>