How to check and change the MTU value


Iternal
Last Updated: 1 year ago

Here are instructions to check and increase the MTU (Maximum Transmission Unit) on Windows, macOS, and Linux

Terminal shows your maximum system MTU, not the actual MTU. To check your actual MTU go to https://www.speedguide.net/analyzer.php.

To check if your MTU is sufficient for our service, insert the following command into your OS terminal:

  • Windows:

    ping boosteroid.com -f -l 1462 
  • Linux

    ping -M do -s 1462 boosteroid.com 
  • MacOS:

    ping -D -s 1462 boosteroid.com

Windows

Check maximum system MTU

  1. Open Command Prompt (Win + R, type cmd, press Enter).

  2. Run the following command:

    netsh interface ipv4 show subinterfaces

Change MTU

  1. First, identify the interface name (e.g., "Wi-Fi" or "Ethernet").

  2. Use the following command to set a new MTU (e.g., 1500):

    netsh interface ipv4 set subinterface "Wi-Fi" mtu=1500 store=persistent

    Replace "Wi-Fi" with your actual interface name.

  3. Verify the change:

    netsh interface ipv4 show subinterfaces

macOS

Check maximum system MTU

  1. Open Terminal.

  2. Run:

networksetup -getMTU en0 

Replace en0 with your actual interface (use ifconfig to list interfaces).

To set a new MTU (e.g., 1500), run:

networksetup -setMTU en0 1500

Linux

Check maximum system MTU


Run:

ip link show <interface_name>

or:

ifconfig <interface_name>

Replace <interface_name> with the name of the network interface you want to check (e.g., eth0, enp0s3, wlan0). 

Temporarily Change MTU


To set a new MTU (e.g., 1500) for eth0:

sudo ip link set dev eth0 mtu 1500

Make It Persistent

  • Debian/Ubuntu (edit /etc/netplan/*.yaml or /etc/network/interfaces)
    Example using Netplan:

    ethernets:
      eth0:
        mtu: 1500
  • Red Hat/Fedora (edit /etc/sysconfig/network-scripts/ifcfg-eth0)
    Add:

    MTU=1500

How to change MTU on a router

Changing the MTU on a router depends on its manufacturer, model, and firmware. Below are general instructions and links to documentation for popular brands.

General Steps (Most Routers)

  1. Open your web browser and go to your router's IP address, usually:

    • http://192.168.0.1

    • or http://192.168.1.1

  2. Log in to the router (the default is often admin/admin or admin/password).

  3. Navigate to the section usually labeled:

    • Network Settings

    • WAN Settings

    • Advanced Settings

  4. Look for a field called MTU, MTU Size, or Maximum Transmission Unit.

  5. Enter your desired MTU value (e.g., 1500 or 1492 for PPPoE).

  6. Save or Apply the settings.

  7. Reboot the router if necessary.

Tips

  • The default MTU is usually 1500.

  • For PPPoE, set MTU to 1492.

  • To find the optimal MTU, use:

    • Windows:

      ping boosteroid.com -f -l 1472 
    • Linux

      ping -M do -s 1472 boosteroid.com 

      (Add or subtract values until you find the highest size that doesn’t fragment.)

    • MacOS:

      ping -D -s 1462 boosteroid.com

If these steps do not help you, we advise you to contact your ISP


Was this article helpful?