Enabling Jumbo Frames on a Linux Server (Ubuntu 22.04) Connected to a MikroTik Switch

Abstract: Configure jumbo frames on Ubuntu 22.04 and MikroTik to reduce CPU overhead for high-bandwidth tasks like video surveillance.

Created: 2026-09-30 by

Enabling jumbo frames on Ubuntu 22.04 connected to a MikroTik switch requires configuring the MTU to 9000 on both the Linux interface and the corresponding MikroTik port. This optimization reduces CPU overhead for high-bandwidth tasks like video surveillance by increasing payload size, but it demands end-to-end consistency across all network devices in the path.

Understanding MTU and Jumbo Frames

The Maximum Transmission Unit (MTU) defines the largest packet size that can be transmitted over a network link without fragmentation. The standard Ethernet MTU is 1500 bytes. Jumbo frames typically refer to an MTU of 9000 bytes, allowing significantly more data per packet. For applications such as IP cameras connected to a MikroTik switch and then to an Ubuntu server, larger packets mean fewer interrupts and lower processing overhead, which can improve throughput and reduce latency. However, if any device in the chain does not support this size, packets will be dropped or fragmented, leading to severe performance degradation or connectivity loss.

Configuring the MikroTik Switch

Before modifying the Linux server, you must ensure the MikroTik switch port supports jumbo frames. Log into your MikroTik RouterOS via WinBox or SSH. Navigate to Interfaces and select the specific ether port connected to the Ubuntu server. In the general tab, look for the mtu field. Change this value from the default (usually auto or 1500) to 9000. If you are using a dedicated switch model rather than a router acting as a switch, check the hardware specifications to confirm jumbo frame support. Apply the changes. You should verify that the port status reflects the new configuration. If the port resets or shows errors, the hardware may not support the increased MTU, and you should revert to 1500 immediately.

Configuring Ubuntu 22.04 Network Interface

Ubuntu 22.04 uses Netplan for network configuration. To enable jumbo frames persistently, you need to edit the Netplan YAML file. Identify your interface name using the command ip link show. Common names include eth0, enp3s0, or similar. Open the relevant configuration file in /etc/netplan/. It might be named 00-installer-config.yaml or something similar depending on your installation method. Inside the network section for your interface, add the mtu: 9000 parameter. Ensure proper indentation, as YAML is sensitive to whitespace. Your configuration should resemble the following structure:
network:
  version: 2
  ethernets:
    enp3s0:
      addresses:
        - 192.168.1.10/24
      gateway4: 192.168.1.1
      nameservers:
        addresses:
          - 8.8.8.8
      mtu: 9000
If you are using DHCP instead of static IPs, ensure the DHCP client allows overriding the MTU. Some DHCP servers advertise the MTU, so you may need to explicitly set it to ignore the server's suggestion. After editing the file, apply the changes with the command sudo netplan apply. Check the interface status with ip link show enp3s0 to confirm the MTU is now 9000. Note that applying network configurations can briefly disconnect services; schedule this during a maintenance window if possible.

Verifying Connectivity

After changing the MTU, test connectivity by pinging the MikroTik switch or other devices on the same subnet. Use the -M do flag to prevent fragmentation and ensure the packet size matches the MTU. For example:
ping -c 5 -s 8972 -M do 192.168.1.1
The payload size of 8972 plus the 28 bytes of IP and ICMP headers equals 9000 bytes. If this ping fails, the network path does not support jumbo frames end-to-end. Check intermediate switches, routers, or firewalls. Fragmentation issues often arise when traffic crosses between networks with different MTU capabilities.

Performance Considerations and Risks

While jumbo frames improve throughput for large sequential transfers, they can increase latency for small packets due to longer transmission times on the wire. For mixed traffic environments containing both video streams and small control packets, evaluate whether the benefit outweighs the potential latency impact. Additionally, some older NICs or drivers may not handle jumbo frames efficiently, leading to buffer overflows. Monitor system logs for errors using dmesg | grep -i error after enabling the feature. If you experience instability, consider reducing the MTU to an intermediate value like 4096 or 8192, which offers some benefits without the strict requirements of 9000. For users experiencing broader networking issues on Ubuntu, understanding how interfaces are managed is crucial. See How do Ubuntu-server network interfaces work? for a deeper dive into Netplan and systemd-networkd. Similarly, if you encounter connectivity drops after these changes, check IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready message repeating every minute for related diagnostic steps.

Frequently Asked Questions

What happens if only one side has jumbo frames enabled?

Packets larger than 1500 bytes sent from the Linux server will be dropped by the MikroTik switch if it is still configured for standard MTU. This results in complete communication failure for those flows. Conversely, if the switch sends jumbo frames and the Linux server cannot receive them, the server will drop incoming large packets, causing timeouts and retransmissions.

Can I use jumbo frames with Wi-Fi connections?

No, Wi-Fi standards generally do not support jumbo frames. The IEEE 802.11 protocol stack limits frame sizes significantly below 9000 bytes. If your Ubuntu server connects via wireless, you must keep the MTU at 1500 or lower to maintain stable connectivity.

How do I disable jumbo frames if my network breaks?

Edit the Netplan YAML file again and change the mtu: 9000 line to mtu: 1500 or remove the line entirely to revert to the default. Then run sudo netplan apply to restore standard operation. You can also temporarily reset the interface with sudo ip link set dev enp3s0 mtu 1500 for immediate effect without rebooting.

Do I need to configure jumbo frames on all switches in the path?

Yes, jumbo frames require end-to-end support. Every switch, router, and firewall between the Ubuntu server and the destination must have an MTU of at least 9000 on the relevant interfaces. If any single hop restricts the MTU to 1500, the entire jumbo frame path is broken.

Is there a performance penalty for using jumbo frames?

The primary penalty is increased latency for small packets because the wire is occupied longer by each large frame. Additionally, if buffers are undersized, large frames can cause head-of-line blocking. For pure video surveillance traffic, the throughput gain usually outweighs these minor latency increases.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More