mtu (interface)

Configures the Layer 2 maximum transmission unit (MTU) size for all Ethernet interfaces and Port-channels.

Syntax

mtu number
no mtu

Command Default

The default is 1548 bytes.

Parameters

number
Size of the Layer 2 MTU in bytes. Range is from 1548 through 9216.

Modes

Global configuration mode

Interface configuration mode for an Ethernet or port-channel interface

Usage Guidelines

This command can be executed both globally and on an interface. If it is executed globally, interface configurations take precedence over the global configuration.

Use the no form of this command to revert to the default.

Examples

The following example configures the Layer 2 MTU size globally.

device# configure terminal
device(config)# mtu 2000

The following example configures the Layer 2 MTU size on an Ethernet interface.

device# configure terminal
device(config)# interface ethernet 1/13
device(conf-if-eth-1/13)# mtu 2000

The following example configures the Layer 2 MTU size on a port-channel interface.

device# configure terminal
device(config)# interface port-channel 10
device(config-Port-channel-10)# mtu 2000