The default maximum transmission unit(MTU) size for frames received and transmitted on all interfces on the switch is 1500 bytes.You can increase the MTU size for all interface operating at 10 or 100 mbps by using the system mtu global configuration command. You can increase the MTU size to support jumbo frames on all gigabit ethernet interfaces by suing the system mtu jumbo global configuration command.Gigabit Ethernet ports are not affected by the system mtu command; 10/100 ports are not affected by the system jumbo mtu command.
You cannot set the mtu size for an individual interface; you set it for all 10/100 or all Gigabit ethernet interfaces on the switch.When the system mtu or system mtu jumbo commands.Although
frames that are forwarded or routed typically are not received by the CPU, in some cases , in some
cases packets are sent to the cpu, such as traffic sent to control traffic,SNMP,Telnet,or routing protocols.
Beginning in privileged EXEC mode, follow these steps to change MTU size for all 10/100 or Gigabit Ethernet interfaces:
switch#configure terminal Enter global configuration mode.
swtich(config)#system mtu (optional) change the MTU size for all interface on the switch that
are operating at 10 or 100 Mbps.The range is from 1500to 1998 byte
;the default is 1500 bytes
switch(config)#system mtu jumbo (optional)change the MTU size for all Gigabit Ethernet
interfaces on the switch.The range is form 1500 to 9000
bytes; the default is 1500 bytes.
If you enter a value that is outside the allowed range for the specific type of interface, the value
is not accepted.
Once the switch reloads, you can verify your setting by entering the show system mtu privileged
EXEC command.
This example show how to set the maximum packet size for a Gigabit Ethernet prot to 1800 bytes:
switch(config)#system mtu jumbo 1800
switch(config)#exit
switch#reload
switch#show system mtu
This example shows the response when you try to set Gigabit Ethernet inerface to an out-of-range
number:
switch(config)#system mtu jumbo
3560(config)#system mtu ?
<1500-1998> MTU size in bytes
jumbo Set Jumbo MTU value for GigabitEthernet or TenGigabitEthernet interfaces
routing Set the Routing MTU for the system
<1500-1998> MTU size in bytes
jumbo Set Jumbo MTU value for GigabitEthernet or TenGigabitEthernet interfaces
routing Set the Routing MTU for the system
3560(config)#system mtu routing ?
<1500-1500> MTU size in bytes
3560(config)#
system mtu ?
<1500-1998> MTU size in bytes
jumbo Set Jumbo MTU value for GigabitEthernet or TenGigabitEthernet interfaces
routing Set the Routing MTU for the system
<1500-1998> MTU size in bytes
jumbo Set Jumbo MTU value for GigabitEthernet or TenGigabitEthernet interfaces
routing Set the Routing MTU for the system
3560(config)#
system mtu jumbo ?
<1500-9000> Jumbo MTU size in bytes
<1500-9000> Jumbo MTU size in bytes
3560(config)#system mtu rou
3560(config)# system mtu routing ?
<1500-1500> MTU size in bytes
转载于:https://blog.51cto.com/3layer/44255