Configures the global or interface MTU value.
Interface config mode
The MTU configured in the specified interface overrides the global MTU.
The no mtu value command sets the MTU to the default value, 9216.
This command is available only to users with admin role.Running this command causes changes that trigger port flap. As a best practice, run this command during a maintenance window to avoid service disruptions.
Error message | Reason |
---|---|
% Unknown command. | Throws an error if MTU value is outside valid range, as shown in the following
example:
device(config-if-eth-1/1)# mtu 100
|
The following examples show how to configure global and interface MTU value.
device# configure terminal device(config)# mtu 4000 device# configure terminal device(config)# interface ethernet 1/10 device(config-if-eth 1/10)# mtu 4000 device(config-if-eth-1/1)# mtu 100 % Unknown command. device# show running interface ethernet 1/10 interface ethernet 1/10 mtu 4000 shutdown