Created on
01-07-2025
04:00 AM
Edited on
01-13-2025
05:28 AM
By
pathik_mehta
| Description | This article describes the behavior and configuration details for setting the MTU on VXLAN interfaces when using a physical or loopback interface as the underlying interface. This document also provides step-by-step guidance on adjusting MTU settings and verifying configurations. |
| Scope | FortiOS. |
| Solution |
The maximum MTU (Maximum Transmission Unit) of a VXLAN interface is determined by the MTU of the underlying physical or logical interface. This MTU value is reduced by the overhead introduced by the VXLAN encapsulation. To calculate the effective VXLAN MTU, use the following formula:
VXLAN MTU = Underlying Interface MTU - VXLAN Encapsulation Overhead VXLAN Encapsulation Overhead:
Total Overhead:
Example Calculation:
The default MTU for Ethernet networks is usually set to 1500 bytes. However, to improve efficiency in high-speed networks, the MTU can be changed to Jumbo MTU, which typically ranges from 9000 to 9216 bytes.
The MTU can be adjusted on physical interfaces in all versions of FortiOS, likewise, the MTU of the VXLAN interface built over the physical interface can also be changed. However, the logical interface like the loopback interface, the ability to change the MTU is version-dependent. Refer to the KB article Technical Tip: FortiGate MTU on loopback interface for further details.
In FortiOS version 7.4.0 and above, the MTU on logical interfaces such as the loopback interface can be modified. So, the MTU of the VXLAN interface built over loopback can also be modified. Below are examples of how to configure the MTU for VXLAN interfaces and MTU override settings.
Case 1: No MTU Override Enabled (Default MTU).
Step 1: Configure the Loopback Interface (Default MTU).
Step 2: Configure the VXLAN Interface and define the MTU value.
Step 3: Verify MTU on VXLAN Interface.
diagnose netlink interface list | grep vxlan-1 if=vxlan-1 family=00 type=1 index=16 mtu=1450 link=0 master=0
Case 2: MTU Override Enabled (Jumbo MTU).
Step 1: Configure the Loopback Interface with MTU Override.
config system interface
Step 2: Configure the VXLAN Interface with the New MTU.
config sys interface Step 3: Verify MTU on VXLAN Interface.
diagnose netlink interface list | grep vxlan-1 if=vxlan-1 family=00 type=1 index=16 mtu=9950 link=0 master=0
The MTU for a VXLAN interface is always related to the MTU of the underlying interface and VXLAN encapsulation overhead. That will make the configuration of the proper MTU of VXLAN tunnels easier and thus ensure efficient transmission of network traffic without fragmentation. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.