Description | This article describes how to change MTU on a loopback interface. |
Scope | FortiGate v6.x.x and 7.x.x. |
Solution |
Since a loopback is a logical interface, it does not exist physically on the device. Hence, the MTU value is fixed and cannot be changed on this interface.
Virtual interfaces, such as VLAN interfaces, inherit their MTU size from their parent interface:
fnsysctl ifconfig <interface name> mtu <value>
MTU change using the above command is temporary. When FortiGate is rebooted, the interface will revert to its original MTU.
Initial Configuration: By default, the MTU for the loopback interface (Example: 'Lo1') is set to 1500.
Manual MTU Change: The MTU of the loopback interface can be changed using the following command. For example, setting it to '10000' in FortiOS v7.2.x and below:
After modification, the MTU reflects the updated value:
After Reboot: Following a system reboot, the MTU reverts to its default value of 1500.
Configuring a Persistent MTU on Loopback (FortiOS v7.4.0 and Above). Starting from v7.4.0, the ability to configure a persistent MTU for the loopback interface is available.
Below is an example configuration:
After applying this configuration, the MTU for the loopback interface remains at 10000 even after a reboot.
di netlink interface list | grep "Lo1"
As an alternative, TCP maximum segment size can be configured on the firewall policy where a loopback interface is used:
config firewall policy
Related articles: Technical Tip: How to adjust the Maximum Transmission Unit (MTU) value on a FortiGate interface Technical Note: MTU size and Jumbo frames support on FortiGate devices
Related document: |