MTU (Maximum Transmission Unit)

Example model & SONiC version:

  • Aurora 830, Aurora 721, Aurora 621
  • Netberg SONiC: sonic-broadcom-202311.n0

Defaults:

  • MTU is 9100 on every port.
  • MTU range is 68 to 9216

Restrictions:

  • VLAN and PortChannel MTU cannot be modified. It’s 9100 by default.

Usage:

sudo config interface mtu <interface_name> <interface_mtu>

Parameter description:

interface_name - the interface name.
interface_mtu - MTU value.

Example:

admin@sonic:~$ sudo config interface mtu Ethernet10 1500
admin@sonic:~$ sudo config save -y
admin@sonic:~$ show interfaces status Ethernet10
  Interface    Lanes    Speed    MTU    FEC          Alias    Vlan    Oper    Admin    Type    Asym PFC
-----------  -------  -------  -----  -----  -------------  ------  ------  -------  ------  ----------
 Ethernet10       11      25G   1500    N/A  Eth10(Port10)  routed    down       up     N/A         N/A

An invalid MTU value will return an error:

admin@sonic:~$ sudo config interface mtu Ethernet0 40000
Usage: config interface mtu [OPTIONS] <interface_name> <interface_mtu>
Try "config interface mtu -h" for help.
Error: Invalid value for "<interface_mtu>": 40000 is not in the valid range of 68 to 9216.
NEWS

Latest news