By default, the source and destination virtual machine MTU is 1500 bytes. For NSX prepared cluster with VXLAN, the default vSwitch MTU is adjusted to 1600 bytes to accommodate larget VXLAN packet size.
The recommended MTU for each NSX vDS switch is 1600 or higher.
Unless an alternative value is configured, a default MTU size of 1600 bytes is assigned to VTEP vmknics.
Notes:
- Ensure the correct value is configured on the VTEP vmknic as the NSX/VCNS distributed logical router does not fragment or reassemble frames.
Headers needed:
Content-Type : application/xml
Accept: application/xml
Basic Auth
-
GET on https://<NSX/VCNS-mgr-IP>/api/2.0/vdn/switches
Note:
-
PUT on https://<NSX/VCNS-mgr-IP>api/2.0/vdn/switches
BODY:
<vdsContext>
<switch>
<objectId>dvs-100</objectId>
</switch>
<mtu>9000</mtu>
</vdsContext>
Note: Replace dvs-100 with the objectId found in step 1.
When this call succeeds, a 200 OK status is returned.
To update the MTU on existing VTEPs or on the distributed virtual switches, use the vCenter Server UI. Any changes are not expected to affect running VMs with the following exceptions:
- Increasing the DVS/VTEP MTU beyond the MTU of the physical network can cause traffic disruption.
- Decreasing the MTU below (MTU of VM + Encapsulation Header Size) can cause ESX to drop packets, as we do not fragment packets if there is not enough room to add the encapsulation headers. For VXLAN over IPv4, the encapsulation headers are 50 bytes.
For more information about the logical switch configuration, see the
Logical Switch Scenario section in the
NSX Administration Guide.