- Documentation
Elastic Compute Service
Elastic Compute Service
User Guide
Network
Network interface and IP address
Jumbo Frames and MTU
Managing the Network Interface MTU value
Jumbo Frames and MTU
Managing the Network Interface MTU value
Managing the Network Interface MTU value
MTU (Maximum Transmission Unit) refers to the maximum amount of data that a single data link layer frame can carry in network communication.
The default MTU value of VolcanoEngine Network Interface is 1500 bytes.
When the default MTU value of the network interface cannot meet requirements (such as traffic mirror), you need to manually modify the network interface's MTU value. danger
Unless necessary, do not modify the MTU value. This is because modifying the ENI MTU value may cause data to be fragmented or dropped.
Taking Ubuntu Server 16.04 LTS and Ubuntu Server 18.04 LTS as examples, the procedure is as follows:
- Execute ifconfig to check the Network Interface MTU value. The output should be similar to the following figure:
-
- Setting the MTU value on different Ubuntu versions.
- Execute the following command to create a script file.
- vim /etc/network/if-up.d/setmtu
- Press i to enter edit mode, then enter the following content to set the MTU value.
The figure demonstrates:
- Press esc key to exit edit mode, then press :wq to save changes and exit.
- Run the following command to grant execute permission to the setmtu file.
- chmod +x /etc/network/if-up.d/setmtu
- Run the reboot command to restart the ECS.
- Execute ifconfig command to check if it takes effect. The output should be similar to the following figure:
-
- Run the vim /etc/netplan/50-cloud-init.yaml command, press i to enter edit mode, and enter the following configuration:
- Press esc key to exit edit mode, then press :wq to save changes and exit.
- Run netplan apply command to restart the network service and apply the configuration.
- Execute ifconfig to check the Network Interface MTU value. The output should be similar to the following figure:
-
Last updated: 2026.10.14 11:56:02