Introduction
In modern network environments, there is a growing need to support larger Maximum Transmission Units (MTUs) to improve network performance and reduce packet fragmentation. This article will walk you through the process of enabling jumbo frames on a Linux server (Ubuntu 22.04) connected to a MikroTik CRS328-24P-4S+RM switch.
Prerequisites
Before we begin, ensure the following:
- You have physical access to the Ubuntu server and MikroTik switch.
- Both the server and switch are connected via Ethernet cables.
- You have administrative access to the server and switch.
Enabling Jumbo Frames on the MikroTik Switch
First, let's configure the MikroTik switch to support jumbo frames:
# Log in to the MikroTik RouterOS CLI
/system interface set [find default-gateway=] jumbo-frames enabled=yes
Replace
Enabling Jumbo Frames on the Ubuntu Server
Now, let's configure the Ubuntu server:
# Edit the network interface configuration file
sudo nano /etc/network/interfaces
Add the following lines at the end of the file
auto <interface_name>
iface <interface_name> inet manual
iface <interface_name> inet6 manual
iface <interface_name> mtu 9000
Replace <interface_name> with the name of your network interface (e.g., eth0)
Save and exit the file.
Restart the networking service:
sudo systemctl restart networking.service
Verifying Jumbo Frames
To verify that jumbo frames are enabled:
# Check the interface MTU
ifconfig | grep "MTU"
The output should display the new MTU value (e.g., 9001)
In this article, we covered the process of enabling jumbo frames on a Linux server (Ubuntu 22.04) connected to a MikroTik switch. By following the steps outlined, you should now have jumbo frames enabled on both the server and switch, improving network performance and reducing packet fragmentation.