The Maximum Transmission Unit (MTU) is the maximum length of data that can be transmitted by a protocol in one instance. For example, the MTU of Ethernet (by default 1500) is the largest number of bytes that can be carried by an Ethernet frame (excluding the header and trailer).
Switch(config)# system mtu 1508 Changes to the system MTU will not take effect until the next reload is done Switch(config)# system mtu jumbo 9000 Changes to the system jumbo MTU will not take effect until the next reload is done Switch# show system mtu System MTU size is 1500 bytes On next reload, System MTU will be 1508 bytes System Jumbo MTU size is 1500 bytes On next reload, System Jumbo MTU will be 9000 bytes
As with Ethernet frames, the MTU can be adjusted for IP packets.
Router(config)# interface f0/0 Router(config-if)# ip mtu 1200
The IP MTU has been modified from its default of 1500:
Router# show ip interface f0/0 FastEthernet0/0 is up, line protocol is up Internet address is 10.0.0.1/24 Broadcast address is 255.255.255.255 Address determined by setup command MTU is 1200 bytes ...
However, the interface’s Ethernet MTU remains unchanged:
Router# show interface f0/0 FastEthernet0/0 is up, line protocol is up Hardware is Gt96k FE, address is c200.5867.0000 (bia c200.5867.0000) Internet address is 10.0.0.1/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255
There are two contexts in which the TCP Maximum Segment Size (MSS) can be configured: transient traffic and terminating traffic.
When a TCP client initiates a connection to a server, it includes its MSS as an option in the first (SYN) packet. On an Ethernet interface, this value is typically 1460 (1500 byte Ethernet MTU – 20 byte IP header – 20 byte TCP header).
However links beyond the host often have a lower effective MSS and full-size packets from the client may be dropped. To inspect and alter the MSS option included in TCP SYN packets passing through the router, use the ip tcp adjust-mss command on the interface:
Router(config)# interface f0/0 Router(config-if)# ip tcp adjust-mss ? Maximum segment size in bytes
Terminating traffic refers to TCP packets which originate from or are destined for the local router (for example, SSH or BGP). In this context, the router itself is considered the TCP client and/or server. The local MSS can be configured with the ip tcp mss command under global configuration:
Router(config)# ip tcp mss ? MSS