- Local time
- 6:14 AM
- Posts
- 213
- OS
- Windows 11 Pro build 26200.5651 (Dev)
MTU packet size that comes by default in any Windows installation may not be the best size. We can make it the best size.
Open a Command Prompt window with admin rights and type in the following command to see what you have:
netsh interface ipv4 show subinterfaces
You will get a MTU value for your internet connection. This is Ethernet in my case and its value is 1500 (see below screenshot).

I will test if this is a good value. Now we should subtract 28 from this value (1500 - 28 = 1472) and test if we get fragmented packets.
(28 is the header of packets. We subtract it to get the actual packet size)
In the Command Prompt window, type in:
ping www.tp-link.com -f -l 1472
(I used tp-link internet address. You can use any internet address, such as www.google.com)

As you can see, I get packets fragmented. I lost 3 packets out of 4 sent during the ping test. So MTU=1500 is not a good value for my system.
Now I decrease this value by 10 or 12 -doesn't matter- (1472 -12 = 1460). Test again.
This value 1460 came clean. No fragmented packets. But we should continue to find the best value.
If you don't get fragmentation, you shoud increase the value 1460 by a small amount (let's say 2) and test again.
I tested 1462 and 1464. They came clean.

Then I tested 1466. Then fragmented packets started again.

So I used 1464.
Now we must add 28 (Packet header) to 1464. 1464 + 28 = 1492. Our MTU size is 1492.
We must set this value in our computer.
Again in Command Prompt window with admin rights, type in, one by one:
netsh
interface
ipv4
The prompt should have been changed to the following: netsh interface ipv4>
Now type in:
set subinterface Ethernet mtu=1492 store=persistent
If your Ethernet has a different name, like Ethernet 2 or Ethernet 3 or another name, use that name directly in the above command instead of Ethernet.
Now we can check (in Command Prompt window with admin rights) if we want. Type in:
netsh interface ipv4 show subinterfaces

As you can see, I have changed MTU size and made it remain (persistent) in my system.
Hope you find this post useful.
Open a Command Prompt window with admin rights and type in the following command to see what you have:
netsh interface ipv4 show subinterfaces
You will get a MTU value for your internet connection. This is Ethernet in my case and its value is 1500 (see below screenshot).

I will test if this is a good value. Now we should subtract 28 from this value (1500 - 28 = 1472) and test if we get fragmented packets.
(28 is the header of packets. We subtract it to get the actual packet size)
In the Command Prompt window, type in:
ping www.tp-link.com -f -l 1472
(I used tp-link internet address. You can use any internet address, such as www.google.com)

As you can see, I get packets fragmented. I lost 3 packets out of 4 sent during the ping test. So MTU=1500 is not a good value for my system.
Now I decrease this value by 10 or 12 -doesn't matter- (1472 -12 = 1460). Test again.
This value 1460 came clean. No fragmented packets. But we should continue to find the best value.
If you don't get fragmentation, you shoud increase the value 1460 by a small amount (let's say 2) and test again.
I tested 1462 and 1464. They came clean.

Then I tested 1466. Then fragmented packets started again.

So I used 1464.
Now we must add 28 (Packet header) to 1464. 1464 + 28 = 1492. Our MTU size is 1492.
We must set this value in our computer.
Again in Command Prompt window with admin rights, type in, one by one:
netsh
interface
ipv4
The prompt should have been changed to the following: netsh interface ipv4>
Now type in:
set subinterface Ethernet mtu=1492 store=persistent
If your Ethernet has a different name, like Ethernet 2 or Ethernet 3 or another name, use that name directly in the above command instead of Ethernet.
Now we can check (in Command Prompt window with admin rights) if we want. Type in:
netsh interface ipv4 show subinterfaces

As you can see, I have changed MTU size and made it remain (persistent) in my system.
Hope you find this post useful.
My Computers
System One System Two
-
- OS
- Windows 11 Pro build 26200.5651 (Dev)
- Computer type
- PC/Desktop
- Manufacturer/Model
- Home Built
- CPU
- Intel i7-4790
- Motherboard
- Asus H97 Pro Gamer with add-on TPM1.2 module
- Memory
- Teams DDR3-1600
- Graphics Card(s)
- MSI Nvidia GeForce GTX 1050Ti
- Sound Card
- Realtek ALC1150
- Monitor(s) Displays
- LG Flatron E2250
- Screen Resolution
- 1920 by 1080 pixels
- Hard Drives
- Crucial NVMe PCIe M2 500 GB (Windows 11 v.24H2); Samsung SSD Evo 870 500 GB (Windows 11 v.24H2);
- PSU
- Corsair HX850
- Case
- Gigabyte Solo 210
- Cooling
- Zalman CNPS7X Tower
- Keyboard
- Microsoft AIO Wireless (includes touchpad)
- Mouse
- HP S1000 Plus Wireless
- Internet Speed
- 200 Mb fiber optic
- Browser
- Chrome; MS Edge
- Antivirus
- Windows Defender
-
- Operating System
- MacOS 12 Monterey
- Computer type
- Laptop
- Manufacturer/Model
- Apple Macbook Air
- CPU
- Intel Core i5
- Memory
- 8 GB
- Graphics card(s)
- Intel integrated
- Screen Resolution
- 1440 by 900 pixels
- Hard Drives
- 128 GB
- Keyboard
- Built-in
- Mouse
- Microsoft Wireless
- Internet Speed
- 802.11 ac
- Browser
- Chrome; Safari
- Antivirus
- N/A