Knowledgebase

Failure to set MTU on CloudLinux installation

If you're experiencing difficulties setting the MTU (Maximum Transmission Unit) on a CloudLinux installation, there could be a few potential reasons for this. Here are some troubleshooting steps you can take:

  1. Check Network Interface Name:

    • Ensure you're specifying the correct network interface. You can list all available interfaces using the command ifconfig.
  2. Verify Syntax:

    • Ensure that the syntax you're using to set the MTU is correct. It should be something like:
    bash
sudo ifconfig <interface_name> mtu <mtu_value>

Example:

bash
  • sudo ifconfig eth0 mtu 1500
  • Check for Active Connections:

    • Sometimes, the MTU of a network interface cannot be changed if there are active connections. Ensure that there are no active connections on the interface you're trying to modify.
  • Temporary MTU Setting:

    • Use the ifconfig command to temporarily set the MTU for testing:
    bash
  • sudo ifconfig <interface_name> mtu <mtu_value>

    If this works, it might indicate that something else is preventing you from setting the MTU permanently.

  • Check for NetworkManager:

    • If you're using NetworkManager, it might be managing your network configurations. You can try configuring the MTU through NetworkManager by editing the respective connection profile.
  • Persistent Configuration:

    • To make the MTU setting persistent across reboots, you should add it to the network configuration files. For example, in CentOS/RHEL, you'd edit the file:
    bash
sudo nano /etc/sysconfig/network-scripts/ifcfg-<interface_name>

Add or modify the line:

makefile
MTU=<mtu_value>

Save the file and restart the network service:

bash
  1. sudo systemctl restart network
  2. Check for Driver or Hardware Limitations:

    • In some cases, the MTU may be limited by the network card driver or the hardware itself. Ensure that your network hardware and driver support the desired MTU value.
  3. Contact CloudLinux Support:

    • If none of the above steps resolve the issue, consider reaching out to CloudLinux support for further assistance. They may have specific troubleshooting steps for your environment.

Remember to replace <interface_name> and <mtu_value> with the appropriate values for your specific configuration. Always ensure that you have backups of your data and configuration files before making significant changes to your server.

 
  • 0 Users Found This Useful
Was this answer helpful?