Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Changing Windows MTU: Difference between revisions

Content deleted Content added
AA-Andrew (talk | contribs)
AA-Andrew (talk | contribs)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<indicator name="Front">[[File:Menu-packet.svg|link=:Category:MTU|30px|Back up to the MTU Page]]</indicator>
<indicator name="Front">[[File:Menu-packet.svg|link=:Category:MTU|30px|Back up to the MTU Page]]</indicator>
[[Category:MTU]]


The MTU (Maximum Transmission Unit) is the size of the largest network packet that can be transferred in a single network transmission without any fragmentation happening.
Sometimes you may have a reason to change the MTU on your windows computer. Here is how.


We have a separate page on testing your [[MTU]].
===1. Open Command Prompt as Administrator===

# Click start
Sometimes you may have a reason to change the MTU on your windows computer. Here is how.
# Type cmd

# On the Right hand side, click 'Run as administrator'
We will show you how to show the existing MTU, and then how to change it, and then how to revert it back to what it was originally. We're using Windows 10 in this example.

===1. Open Command Prompt, as Administrator===
# Click <SyntaxHighlight inline>start</SyntaxHighlight>
# Type <SyntaxHighlight inline>cmd</SyntaxHighlight>
# On the Right hand side, click <SyntaxHighlight inline>'Run as administrator'</SyntaxHighlight>


<gallery widths=600 heights=300>
<gallery widths=600 heights=300>
Line 14: Line 21:
===2. Show the current MTU and the interface name ===
===2. Show the current MTU and the interface name ===
#Enter in the command: <SyntaxHighlight inline>netsh interface ipv4 show subinterfaces </SyntaxHighlight>
#Enter in the command: <SyntaxHighlight inline>netsh interface ipv4 show subinterfaces </SyntaxHighlight>
#Make a note of the existing MTU (probably 1500)
#Make a note of the existing MTU (probably <SyntaxHighlight inline>1500</SyntaxHighlight>)
#Make a note of the interface name - eg Ethernet
#Make a note of the interface name - eg <SyntaxHighlight inline>Ethernet</SyntaxHighlight>


<gallery widths=700 heights=300>
<gallery widths=700 heights=300>
Line 24: Line 31:
#Enter the command: <SyntaxHighlight inline>netsh</SyntaxHighlight>
#Enter the command: <SyntaxHighlight inline>netsh</SyntaxHighlight>
#Then: <SyntaxHighlight inline>interface</SyntaxHighlight>
#Then: <SyntaxHighlight inline>interface</SyntaxHighlight>
Then: <SyntaxHighlight inline>ipv4</SyntaxHighlight>
#Then: <SyntaxHighlight inline>ipv4</SyntaxHighlight>
Then: <SyntaxHighlight inline>set subinterface "Ethernet" mtu=1320</SyntaxHighlight>
#Then: <SyntaxHighlight inline>set subinterface "Ethernet" mtu=1320</SyntaxHighlight>
Then: <SyntaxHighlight inline>exit</SyntaxHighlight>
#Then: <SyntaxHighlight inline>exit</SyntaxHighlight>

The screenshot shows all these commands being run...


<gallery widths=700 heights=400>
<gallery widths=700 heights=400>
Line 37: Line 46:


===6. Reverting back===
===6. Reverting back===
# restarting the computer should change the MTU back to default
# Restarting the computer should change the MTU back to default
# Or, you can run the commands above, but set <SyntaxHighlight inline>1500</SyntaxHighlight> instead of <SyntaxHighlight inline>1320</SyntaxHighlight>
# Or, you can run the commands above, but set <SyntaxHighlight inline>1500</SyntaxHighlight> instead of <SyntaxHighlight inline>1320</SyntaxHighlight>

===7. Keeping the MTU change permanent===
If you want to keep thje lower MTU even after a reboot, then re-run the commands, but when you come to change the MTU add <SyntaxHighlight inline>store=persistent</SyntaxHighlight> to the command.

eg <SyntaxHighlight inline>set subinterface "Ethernet" mtu=1320 store=persistent</SyntaxHighlight>