Смена mtu windows 10

Настройка MTU (Maximum Transmission Unit) знакома большинству пользователей, которые когда-либо настраивали Wi-Fi роутеры, но доступна и в Windows для Ethernet и других подключений. MTU — это максимальный размера блока данных одного пакета в байтах (без учета размера заголовка), стандартный размер — 1500 байт.

При необходимости размер MTU в Windows 11, 10 и других версий можно изменить. В этой инструкции — о том, как это сделать, а также узнать текущий размер MTU.

Способы изменения размера MTU в Windows 11 и Windows 10

Прежде чем приступить, вы можете определить текущий размер MTU для сетевых интерфейсов, для этого достаточно запустить командную строку или Терминал от имени администратора, после чего использовать следующую команду:

netsh interface ipv4 show subinterfaces
Посмотреть текущий размер MTU

Размеры MTU будут указаны в первом столбце в результатах выполнения команды. Если вам требуется изменить размер пакета, вы можете использовать один из следующих способов.

Включение Jumbo frame

Первая возможность — включить Jumbo Frame (Jumbo-кадр), позволяющий передавать данные в размере, превышающем стандартные 1500 байт. Для этого используйте следующие шаги:

  1. Нажмите клавиши Win+R, введите ncpa.cpl и нажмите Enter.
  2. В списке подключений нажмите правой кнопкой мыши по подключению, для которого нужно включить Jumbo frame и выберите пункт «Свойства».
  3. Нажмите кнопку «Настроить» для настройки сетевого адаптера.
  4. На вкладке «Дополнительно» найдите пункт «Jumbo packet» и измените его значение, затем примените настройки.
    Включить Jumbo frame для сетевого адаптера

При включении Jumbo frame соединение может быть кратковременно разорвано, но обычно затем работает исправно. Учитывайте, что настройка Jumbo packet может быть доступна не для всех сетевых карт, также её наличие может зависеть от используемых драйверов.

Изменение MTU в командной строке

Вторая возможность — использование командной строки для изменения размера MTU:

  1. Запустите командную строку от имени администратора и введите следующую команду, чтобы посмотреть список имен интерфейсов:
    netsh interface ipv4 show subinterfaces
  2. В следующей команде измените ИМЯ_ИНТЕРФЕЙСА и значение MTU для изменения MTU для соответствующего подключения:
    netsh interface ipv4 set subinterface ИМЯ_ИНТЕРФЕЙСА mtu=РАЗМЕР store=persistent
    Изменить MTU в командной строке

После успешного выполнения команды, размер MTU будет изменен.

Определить оптимальный размер пакета (значение MTU) для текущего Интернет-подключения можно в командной строке с помощью команды, ping адреса_сайта -f -l РАЗМЕР, например:

ping google.com -f -l 1500
Проверка ping с разными размерами пакета

Задачей будет поиск такого значения MTU, которое не приводит к сообщениям о необходимости фрагментации пакета.

Все способы:

  • Определение текущего размера MTU
  • Определение оптимального MTU
  • Способ 1: Настройка «Jumbo Frame»
  • Способ 2: Консоль
  • Способ 3: Сторонние приложения
  • Способ 4: «Редактор реестра»
  • Вопросы и ответы: 0

Определение текущего размера MTU

Перед настройкой параметра Maximum Transmission Unit может понадобиться определение его текущего значения. Обычно оно составляет 1500 байт, но нельзя исключать, что оно будет отличаться.

  1. Запустите от имени администратора «PowerShell» из контекстного меню кнопки «Пуск».
  2. Как изменить mtu в Windows 10-1

  3. Выполните команду netsh interface ipv4 show subinterfaces. Размеры MTU будут указаны в первом одноименном столбце отдельно для каждого подключения – как физического, так и виртуального.
  4. Как изменить mtu в Windows 10-2

Если на компьютере используется проводное подключение, скорее всего, оно будет называться «Ethernet», если беспроводное – «Wireless», «Wi-Fi» или «Беспроводная сеть».

Определение оптимального MTU

Оптимальным значением MTU является то, при котором пакеты интернет-трафика не фрагментируются. Заданное в Windows 10 значение MTU в 1500 байт не всегда соответствует оптимальному, поэтому определение наиболее подходящего значения MTU не будет излишним.

  1. Откройте от имени администратора консоль «PowerShell» и выполните команду ping google.com -f -l 1500.
  2. Как изменить mtu в Windows 10-3

  3. В случае возвращения командой сообщение «Требуется фрагментация пакета, но установлен ограничивающий флаг» уменьшите значение 1500 на 10-50 единиц и повторите команду.
  4. Как изменить mtu в Windows 10-4

  5. Уменьшайте передаваемое в команде пинга значение постепенно, пока сообщение не исчезнет.

Точно так же можно определить верхнюю границу оптимального значения MTU. Поскольку при выполнении указанной команды не учитывается размер заголовков IP и запросов протокола ICMP, к тестируемому значению желательно добавить 28 байт – так полученный результат будет более точным.

Способ 1: Настройка «Jumbo Frame»

Этот способ предполагает использование графического интерфейса Windows, однако указанная настройка поддерживается не всеми сетевыми адаптерами.

  1. Откройте «Сетевые подключения», выполнив в вызванном нажатием клавиш Win + R диалоговом окошке быстрого запуска приложений команду ncpa.cpl.
  2. Как изменить mtu в Windows 10-5

  3. Кликните правой кнопкой мыши по используемому сетевому адаптеру и выберите из контекстного меню опцию «Свойства».
  4. Как изменить mtu в Windows 10-6

  5. В окне «Свойств» адаптера нажмите кнопку «Настроить».
  6. Переключитесь на вкладку «Дополнительно» и найдите в поле «Свойство» пункт «Jumbo Packet». Выберите из выпадающего списка «Значение» подходящее значение и сохраните настройки.
  7. Как изменить mtu в Windows 10-8

В момент изменения настроек соединение может разорваться на несколько секунд.

Способ 2: Консоль

Более гибким способом изменения MTU в Windows 10 является использование консоли.

  1. Определите название сетевого интерфейса, для которого хотите изменить значение MTU. Посмотреть его можно в окне «Сетевые подключения».
    Как изменить mtu в Windows 10-9

    Также можно вывести список подключений командой netsh interface ipv4 show subinterfaces, выполненной в запущенной от имени администратора «PowerShell» или «Командной строке».

  2. Как изменить mtu в Windows 10-10

  3. Выполните команду netsh interface ipv4 set subinterface NAME mtu=SIZE store=persistent, заменив NAME названием нужного сетевого интерфейса, а SIZE – новым размером MTU в байтах.
  4. Как изменить mtu в Windows 10-11

Убедитесь, что интернет-соединение работает нормально.

Способ 3: Сторонние приложения

Изменять значение параметра Maximum Transmission Unit могут некоторые сторонние программы для настройки и оптимизации сетевых подключений, например TCP Optimizer.

Скачать TCP Optimizer с официального сайта

  1. Скачайте приложение с сайта разработчика и запустите от имени администратора. Программа портативная, установки не требует.
  2. Включив режим «Custom», измените значение в поле «MTU» и нажмите кнопку «Apply changes».
  3. Как изменить mtu в Windows 10-12

Изменения должны вступить в силу немедленно.

Способ 4: «Редактор реестра»

Вполне рабочий, но не самый удобный способ настройки MTU, поскольку он предполагает ручную правку ключа системного реестра.

  1. Откройте «Редактор реестра», выполнив в диалоговом окошке быстрого запуска «Выполнить» (Win + R) команду regedit.
  2. Как изменить mtu в Windows 10-13

  3. Разверните ключ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}. Ключ содержит несколько вложенных подразделов с названиями «0000», «0001», «0002» и так далее – внимательно просмотрите их содержимое и выберите тот, где в качестве значения параметра «DriverDesc» будет указано название сетевого адаптера, для которого изменяется MTU. Название можно посмотреть в окошке «Свойств» подключения («Подключение через:»), смотрите шаг 2 в Способе 1. В этом же подразделе будет располагаться параметр «NetCfgInstanceId» – запомните или запишите его значение.
  4. Как изменить mtu в Windows 10-14

  5. Затем разверните ключ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces и найдите в нем подраздел, имеющий то же название, что и значение параметра «NetCfgInstanceId». Перейдите в него, отыщите тут параметр MTU и установите для него нужное значение в десятичной системе счисления.
  6. Как изменить mtu в Windows 10-15

Если параметр MTU отсутствует, его нужно будет создать вручную. Для этого кликните правой кнопкой мыши по подразделу или его пустой области и выберите из контекстного меню «Создать»«Параметр DWORD».

Как изменить mtu в Windows 10-16

Сохраните настройки, закройте «Редактор реестра» и обязательно перезагрузите компьютер.

Наша группа в TelegramПолезные советы и помощь

Changing the Maximum Transmission Unit (MTU) on your Windows 10 computer can help improve network performance, especially if you’re experiencing connectivity issues. It’s a quick and straightforward process that involves using the Command Prompt to adjust the network settings.

Changing the MTU on Windows 10 can optimize how data packets are transmitted over the network, potentially reducing latency and fragmentation. Follow these steps to adjust your MTU settings.

Step 1: Open Command Prompt as Administrator

Begin by opening the Command Prompt with administrative privileges.

Right-click the Start menu and select «Command Prompt (Admin)» or «Windows PowerShell (Admin).»

Step 2: Find the Network Interface

You need to identify the network interface you wish to change.

Type netsh interface ipv4 show subinterfaces and press Enter. This command will display a list of network interfaces and their current MTU settings.

Step 3: Set the New MTU Value

Now, set the MTU value to your desired number.

Type netsh interface ipv4 set subinterface "Local Area Connection" mtu=XXXX store=persistent and press Enter. Replace «Local Area Connection» with the name of your network interface and «XXXX» with the MTU value you want to set.

Step 4: Confirm the Change

Double-check to make sure the change was successful.

Type netsh interface ipv4 show subinterfaces again and press Enter. Verify that the MTU value has been updated.

Step 5: Restart Your Computer

Finally, restart your computer to ensure the settings take effect.

After a reboot, your new MTU settings should be active. This step helps to solidify the changes made to your network configuration.

Once you have completed these steps, your network interface will operate with the new MTU value, which can lead to improved network performance and fewer connectivity issues.

Tips for Changing MTU on Windows 10

  • Test different MTU values to find the optimal setting for your network.
  • Always use the Command Prompt as an administrator to ensure you have the necessary permissions.
  • Note down your original MTU settings before making any changes, so you can revert back if needed.
  • If you experience issues after changing the MTU, try lowering the value incrementally.
  • Use online tools or ping tests to determine the correct MTU value for your specific network.

Frequently Asked Questions

What is MTU?

MTU stands for Maximum Transmission Unit, and it determines the largest size of a data packet that can be sent over a network.

Why change the MTU?

Changing the MTU can help optimize network performance, reduce packet fragmentation, and resolve connectivity issues.

What is a typical MTU value?

The standard MTU value for Ethernet networks is usually 1500 bytes, but it can vary depending on the network.

How do I find the right MTU value?

You can use ping tests with the «don’t fragment» flag to discover the optimal MTU value for your network.

Can changing the MTU harm my computer?

Generally, no. However, setting an incorrect MTU value might cause connectivity issues. Always note down original settings before making changes.

Summary

  1. Open Command Prompt as Administrator.
  2. Find the Network Interface.
  3. Set the New MTU Value.
  4. Confirm the Change.
  5. Restart Your Computer.

Conclusion

By following these steps, you can change the MTU on Windows 10 and potentially improve your network performance. Whether you’re dealing with slow internet speeds, frequent disconnections, or other network-related issues, adjusting the MTU can make a notable difference. Always remember to note down your original settings, so you can easily revert back if needed.

Understanding your network settings is key to maintaining an efficient and fast internet experience. If you’re interested in learning more about network optimization, there are numerous resources available online to deepen your knowledge.

In the meantime, go ahead and give it a try. Sometimes a small tweak like adjusting the MTU can have a big impact on your day-to-day internet usage.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.

His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.

Changing the Maximum Transmission Unit (MTU) value in Windows 10 can help improve your internet connection speed and stability. By adjusting this value, you can optimize the way data packets are transmitted over your network. Here’s how you can change the MTU value in Windows 10:

1. Open Command Prompt as Administrator: To change the MTU value, you’ll need to access the Command Prompt with administrative privileges. Right-click on the Start button and select “Command Prompt (Admin).”

2. Check Current MTU Value: Before making any changes, it’s a good idea to check your current MTU value. You can do this by typing the following command in Command Prompt: “netsh interface ipv4 show subinterfaces.”

3. Determine New MTU Value: Decide on the new MTU value you want to set for your network connection. The default MTU size is typically 1500 bytes, but you can experiment with different values to see what works best for your network.

4. Change MTU Value: To change the MTU value, use the following command in Command Prompt: “netsh interface ipv4 set subinterface ‘Your Network Interface Name’ mtu= store=persistent.” Replace ‘Your Network Interface Name’ with the name of your network adapter and with the desired value.

5. Restart Your PC: After changing the MTU value, it’s recommended to restart your PC to apply the new settings.

By following these steps, you can successfully change the MTU value in Windows 10 and potentially improve your network performance.

What is MTU and why is it important?

MTU stands for Maximum Transmission Unit, which is the maximum size of a data packet that can be transmitted over a network. It is important because setting the correct MTU value can improve network efficiency and performance.

How can changing MTU value improve internet speed?

By adjusting the MTU value to match your network’s capabilities, you can reduce the likelihood of packet fragmentation and improve the overall efficiency of data transmission, resulting in faster internet speeds.

Can changing MTU value cause issues with my network?

While changing the MTU value can potentially improve network performance, setting it too high or too low could lead to connectivity issues such as packet loss or slow data transfer speeds. It’s important to find the optimal MTU value for your network.

What are common MTU values used in networking?

The most common MTU value used in networking is 1500 bytes, which is the default for Ethernet connections. However, different network types may have different optimal MTU values.

Can I revert back to the default MTU value?

If you experience any issues after changing the MTU value, you can revert back to the default MTU value by setting it back to 1500 bytes using the same Command Prompt commands.

Does changing MTU value affect all devices on the network?

No, changing the MTU value on one device only affects the network performance of that specific device. Other devices on the network will not be impacted by this change.

Is changing MTU value necessary for all users?

Not necessarily. Changing the MTU value is more commonly done by users who are experiencing network performance issues or looking to optimize their network connection. If you are satisfied with your current network speed and stability, there may be no need to change the MTU value.

Are there any risks associated with changing MTU value?

While changing the MTU value itself does not pose a significant risk, setting it too high or too low could potentially cause connectivity issues. It’s important to test different MTU values to find the optimal setting for your network.

Can changing MTU value improve online gaming performance?

Yes, adjusting the MTU value can potentially improve online gaming performance by reducing latency and packet loss. Gamers may benefit from experimenting with different MTU values to optimize their network connection.

Does changing MTU value require technical knowledge?

While changing the MTU value involves using Command Prompt, the process is relatively straightforward. As long as you follow the steps outlined above, you can adjust your MTU value even without advanced technical knowledge.

Can changing MTU value impact streaming quality?

Yes, changing the MTU value can impact streaming quality by improving data transmission efficiency and reducing buffering issues. Users who frequently stream content online may benefit from optimizing their MTU value.

By understanding how to change the MTU value in Windows 10 and considering the related FAQs, you can effectively enhance your network performance and enjoy a smoother internet experience.

Dive into the world of luxury with this video!

Your friends have asked us these questions — Check out the answers!

How to Change MTU on Windows 10 and Windows 11



12th January 2019


No Comments



Networks, Windows


admin


HOW TO CHANGE MTU IN WINDOWS 10 and WINDOWS 11

It often is observed that some websites don’t perform optimally on some Broadband Connections . When nothing else works, It can be fixed by adjusting your MTU . Please see the below steps to change MTU

Lets see HOW TO CHANGE MTU IN WINDOWS 10

  1. Open a command prompt as administrator. You can do this by Hitting Windows start button, type CMD, right click on command prompt and run as administrator
  2. type the command  netsh interface ipv4 show subinterfaces
  3. The Output will show as below listing your Interfaces and MTU Size currently.

Command output before any modification
  1. Note Down the interface name as we will need it in next command to change the MTU size , Ethernet0 in above Example.
  2. In the next command substitute Ethernet0 with your interface name and new MTU size of 1518.
  3. netsh interface ipv4 set subinterface “Ethernet0” mtu=1518 store=persistent

Output after Command to change MTU Runs

That’s it, As you can see in image above, we can now see the MTU has changed.

You can either Increase or Decrease your MTU to see what works in your case.

This command works on Windows 10 and Windows 11 Both.

What is MTU

For those who are more Curious , maximum transmission unit (MTU) is a measurement representing the largest data packet that a network-connected device will accept. Lets put it like a height limit for freeway underpasses or tunnels: Vehicles that exceed the height limit cannot fit through, just as packets that exceed the MTU of a network cannot pass through that network.

However, unlike cars and trucks, data packets that exceed MTU are broken up into smaller pieces so that they can fit through. This process is called fragmentation. Fragmented packets are reassembled once they reach their destination.

MTU is measured in bytes — a “byte” is equal to 8 bits of information, meaning 8 ones and zeroes. 1,500 bytes is the maximum MTU size.

Let us know in comments if this article helped you or if you have additional questions



Tags



About The Author


Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Reset windows password download
  • Vag can commander windows 10
  • Windows удалить профиль powershell
  • Оптимальные системные требования windows 10
  • Как поставить свой курсор мыши на windows 11