HOME ELECTRONICS

Tackle MTU Misalignment on Xiaomi Mi Router 4C with Dual‑Band Access

7 min read
#troubleshooting #WiFi #Xiaomi #Router #Networking
Tackle MTU Misalignment on Xiaomi Mi Router 4C with Dual‑Band Access

Understanding MTU Misalignment

When you connect two networks, the data you send travels in packets. Each packet carries a header and a payload. The Maximum Transmission Unit (MTU) is the largest packet size the network will forward without fragmentation. If a packet is too large for one hop, it must be split into smaller fragments. Fragmentation can hurt performance and sometimes cause packets to be dropped, leading to slow streams, intermittent Wi‑Fi drops, or outright connectivity problems.

On home routers, the MTU is normally set to 1500 bytes for Ethernet and 1492 bytes for PPPoE connections. The Xiaomi Mi Router 4C defaults to 1500 on both its 2.4 GHz and 5 GHz interfaces, which is fine in most cases. However, when the router sits behind a VPN, or when the upstream ISP uses a different MTU, packets may need to be re‑segmented, and the router may not handle this correctly. The result is MTU misalignment, a subtle but crippling problem that shows up as slow video, laggy online gaming, or occasional “timeout” errors.

Below is a full, step‑by‑step guide to detecting, diagnosing, and fixing MTU misalignment on the Xiaomi Mi Router 4C while keeping both Wi‑Fi bands operational.


Why Dual‑Band Access Matters

The Mi 4C ships with a 2.4 GHz band (up to 300 Mbps) and a 5 GHz band (up to 867 Mbps). Each band has its own MTU setting in the router’s firmware. If you change only one, the other may still be misaligned. Users often enable the 5 GHz band for high‑bandwidth tasks like gaming or 4K streaming, while keeping the 2.4 GHz band for IoT devices. A misconfigured MTU on the 5 GHz band can silently poison traffic for all devices connected to it, while leaving the 2.4 GHz band seemingly fine.


Detecting MTU Misalignment

Before you can fix anything, you need to confirm that misalignment exists. The easiest way is to use the ping command with the do not fragment flag (-M do on Linux/macOS, -f on Windows).

  1. Open a command prompt or terminal on a device connected to the router.
  2. Ping a public IP (Google’s DNS works well): 8.8.8.8.
  3. Incrementally increase the packet size until you see packet loss or fragmentation.

Example Session (Linux)

ping -c 10 -M do -s 1472 8.8.8.8   # 1472 bytes payload + 28 bytes header = 1500
ping: sendmsg: message too long

The message too long indicates the MTU is lower than 1500 on the path. Reduce the size:

ping -c 10 -M do -s 1460 8.8.8.8   # 1460 + 28 = 1488

If this succeeds without errors, the MTU is likely 1480 or 1482 bytes.
A similar procedure on Windows uses ping -f -l 1472 8.8.8.8.

Tip: Perform the test on both the 2.4 GHz and 5 GHz connections to compare results.


Checking the Router’s Current MTU

The Xiaomi Mi Router 4C offers two ways to view its MTU:

1. Web Administration Interface

  1. Open a browser and navigate to http://192.168.31.1 or http://miwifi.
  2. Log in with your admin username/password.
  3. Go to Advanced SettingsWireless Settings.
  4. Under each band, look for an MTU field. If it says 1500, that’s the default.
    • The UI may not display the value directly; you’ll need to enable Advanced Mode by checking a box at the bottom of the page.

2. Telnet/SSH (If enabled)

If you have enabled telnet or SSH on the router, log in and run:

uci get network.lan.mtu
uci get wireless.@wifi-iface[0].mtu   # 2.4 GHz
uci get wireless.@wifi-iface[1].mtu   # 5 GHz

If any of these values are 1500, you’re probably not ready to modify them until you’ve confirmed misalignment.


Preparing to Change MTU

Changing MTU on a router can cause temporary disconnections. To minimize disruptions:

  • Backup your router configuration.
  • Schedule the change during low‑usage hours (late evening or early morning).
  • Document current settings so you can revert if something goes wrong.

Step‑by‑Step Fix for the Mi 4C

A. Using the Web UI

  1. Navigate to the Wireless Settings page for the band that needs adjustment.
  2. Enable Advanced Mode if it isn’t already.
  3. Locate the MTU field – it may be hidden under an “Advanced” dropdown.
  4. Enter the corrected MTU value.
    • Commonly, a safe value for most residential ISPs is 1480.
    • For PPPoE connections, 1492 is typical.
    • For VPN connections, 1400 often works best.
  5. Save the settings. The router will reboot automatically.

After reboot, run your ping test again to confirm the new MTU is effective.

B. Using Telnet/SSH

If you prefer command‑line or if the UI is broken, use Telnet/SSH:

# Set 2.4 GHz MTU to 1480
uci set wireless.@wifi-iface[0].mtu='1480'
uci commit wireless
# Set 5 GHz MTU to 1480
uci set wireless.@wifi-iface[1].mtu='1480'
uci commit wireless
# Apply changes
wifi reload

The wifi reload command restarts the Wi‑Fi drivers without rebooting the whole router, which is quicker.


Verifying the Fix

After making the change, confirm that both bands operate without packet loss:

  1. Ping the router from a client on each band: ping -c 10 192.168.31.1.
  2. Check the MTU using ip (Linux) or netsh (Windows) on the client to confirm the OS is negotiating the correct size.
  3. Stress‑test with a high‑bandwidth activity: stream 4K video, run a large file download, or play an online game.
  4. Monitor latency with tools like ping or mtr. You should see no “fragmentation needed” messages.

Common Pitfalls and How to Avoid Them

Pitfall Explanation Fix
Changing only one band The other band may still be misaligned, causing mixed performance Update MTU on both 2.4 GHz and 5 GHz
Using an unsupported MTU value Too low leads to wasted bandwidth, too high causes fragmentation Use standard values (1480, 1492, 1400) based on ISP type
Not rebooting the router Settings may not take effect until a full reboot Reboot or reload Wi‑Fi after changing
Forgetting to enable Advanced Mode MTU field is hidden by default Toggle the “Advanced” switch
Overlooking VPN impact VPNs can reduce MTU significantly Set MTU to 1400 when using VPN

Advanced: Using MPTCP or VPN Optimisation

If you still experience issues after adjusting MTU, consider the following:

  • Multi‑Path TCP (MPTCP): Allows devices to use both 2.4 GHz and 5 GHz simultaneously. Some devices support it, but the Mi 4C firmware does not. However, some third‑party firmware (e.g., OpenWrt) does, and you can install it on the Mi 4C.
  • VPN MTU Negotiation: Many VPN clients allow you to specify an MTU value or auto‑detect it. Ensure the client MTU matches the router’s MTU to avoid fragmentation.
  • QoS Rules: Set Quality of Service to prioritize latency‑sensitive traffic, which can mask minor MTU problems.

Restoring Default Settings

If the new MTU causes unexpected problems, revert to the defaults:

  • Web UI: Set MTU back to 1500 on both bands and save.
  • Telnet/SSH:
    uci set wireless.@wifi-iface[0].mtu='1500'
    uci set wireless.@wifi-iface[1].mtu='1500'
    uci commit wireless
    wifi reload
    

Always re‑run the ping tests to confirm.


Keeping Your Router Firmware Updated

The Mi 4C firmware occasionally includes bug fixes for MTU handling and dual‑band stability. To check for updates:

  1. Open the admin page (http://192.168.31.1).
  2. Go to SystemFirmware Update.
  3. Follow prompts to download and install any available updates.

A recent firmware version may already correct hidden MTU alignment bugs, reducing the need for manual tweaking.


Summary Checklist

  • [ ] Run ping tests on both Wi‑Fi bands to confirm misalignment.
  • [ ] Note the lowest packet size that works without fragmentation.
  • [ ] Log in to the router and view current MTU settings.
  • [ ] Adjust MTU to a standard value that matches your ISP/VPN requirements.
  • [ ] Save changes and reboot/reload Wi‑Fi.
  • [ ] Re‑run ping tests to ensure stability.
  • [ ] Perform real‑world usage tests (streaming, gaming).
  • [ ] Update firmware if a newer version is available.
  • [ ] Document the final MTU values for future reference.

Final Thought

MTU misalignment is a quiet villain in home networking. By systematically testing, diagnosing, and adjusting MTU on the Xiaomi Mi Router 4C’s dual‑band interface, you can restore smooth connectivity for every device in your home. With the router properly tuned, your 5 GHz band will finally deliver the high‑speed performance you expect, while the 2.4 GHz band remains stable for legacy devices. Enjoy seamless streaming, lag‑free gaming, and reliable VPN sessions—all thanks to a few careful tweaks to an otherwise overlooked setting.


Discussion (4)

AU
Aurelius 8 months ago
I’ve read a lot about MTU, but i think it’s overkill for most home users. I get great streaming on my router without messing with the MTU. Maybe the article is too technical for the average person
HA
Halden 8 months ago
yo bro, you’re missing the point. I got my whole home wired and the wireless is still laggy. i tried the 1492 trick and bam, no buffering. so trust me, don't ignore it
QU
Quinton 8 months ago
In short, make sure the MTU is the same on both the WAN and the wireless interface. The Mi 4C’s default of 1500/1492 can cause issues if your ISP caps at 1400. Use the command line or custom firmware for precise control, and test with ping or traceroute. That’s all I’ve learned from the field.
QU
Quinton 8 months ago
MTU misalignment is a classic cause of latency spikes on dual‑band routers. In the Mi 4C the WAN MTU defaults to 1500, but the wireless side drops to 1492 when 802.11n is used. Unless you align them, fragmentation will kick in and you’ll notice buffering when streaming. The fix is to run `mtu 1492` on the interface that uses 802.11n or set the Wi‑Fi MTU in the web‑ui to 1492. I’ve done this on my home network and the ping latency dropped from 60 ms to 15 ms. Also remember to check the MTU on your ISP side – sometimes they advertise 1400 which forces you to use 1400 on the router as well.
GE
Gennaro 8 months ago
i read u said 1492, but on 4c the wireless uses 1472 sometimes. i tried 1472 and no difference. also my video stream still stuttered. maybe it’s the MTU on the cable side? i set it to 1492 on the router but my ISP says 1400. i think that is the real culprit
EV
Evaristo 7 months ago
i’ve been hacking the 4c for years. the real issue was the firmware’s default route MTU. i flashed a custom image that lets you set the MTU on the WAN interface via `/etc/network/interfaces`. after setting it to 1400, my streaming was flawless. the web‑ui still shows 1500, but the actual kernel MTU changed. if you’re not comfortable with SSH, just stick with 1492
QU
Quinton 7 months ago
Thanks for the heads‑up, Evaristo. I actually used the same custom image and saw a 30 % reduction in packet loss. I agree the UI can be misleading. The real check is to run `ping -M do -s 1472 8.8.8.8` and watch for fragmentation. That tells you if the MTU is right

Join the Discussion

Contents

Evaristo i’ve been hacking the 4c for years. the real issue was the firmware’s default route MTU. i flashed a custom image that l... on Tackle MTU Misalignment on Xiaomi Mi Rou... Mar 05, 2025 |
Quinton MTU misalignment is a classic cause of latency spikes on dual‑band routers. In the Mi 4C the WAN MTU defaults to 1500, b... on Tackle MTU Misalignment on Xiaomi Mi Rou... Feb 19, 2025 |
Quinton In short, make sure the MTU is the same on both the WAN and the wireless interface. The Mi 4C’s default of 1500/1492 can... on Tackle MTU Misalignment on Xiaomi Mi Rou... Feb 17, 2025 |
Aurelius I’ve read a lot about MTU, but i think it’s overkill for most home users. I get great streaming on my router without mes... on Tackle MTU Misalignment on Xiaomi Mi Rou... Feb 09, 2025 |
Evaristo i’ve been hacking the 4c for years. the real issue was the firmware’s default route MTU. i flashed a custom image that l... on Tackle MTU Misalignment on Xiaomi Mi Rou... Mar 05, 2025 |
Quinton MTU misalignment is a classic cause of latency spikes on dual‑band routers. In the Mi 4C the WAN MTU defaults to 1500, b... on Tackle MTU Misalignment on Xiaomi Mi Rou... Feb 19, 2025 |
Quinton In short, make sure the MTU is the same on both the WAN and the wireless interface. The Mi 4C’s default of 1500/1492 can... on Tackle MTU Misalignment on Xiaomi Mi Rou... Feb 17, 2025 |
Aurelius I’ve read a lot about MTU, but i think it’s overkill for most home users. I get great streaming on my router without mes... on Tackle MTU Misalignment on Xiaomi Mi Rou... Feb 09, 2025 |