Difference between revisions of "MTU"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Cisco IOS]]: <code>[[show system]] mtu</code>
+
[[wikipedia:Maximum transmission unit]] (MTU)
 +
 
 +
* [[Cisco IOS]]: <code>[[show system]] mtu</code>
  
  
  
 
Change configuration on Linux:
 
Change configuration on Linux:
* <code>[[ip link]] set dev eth0 [[mtu]] 9000</code> ([[Jumbo frames]])
+
 
 +
<code>[[ip link]] set dev eth0 [[mtu]] 9000</code> ([[Jumbo frames]])
 +
 
 +
<code>ifconfig -a | grep mtu</code>
  
 
  ifconfig -a | grep mtu
 
  ifconfig -a | grep mtu
 +
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001
  
 +
<code>[[ping -M]] do -s 9000 <some_ip_address></code>
  
* <code>ping -M do -s 9000 <some_ip_address></code>
 
 
  Select Path MTU Discovery strategy. hint may be either do (prohibit fragmentation, even local one), want (do PMTU discovery, fragment locally when packet size is large), or don't (do not set DF flag).
 
  Select Path MTU Discovery strategy. hint may be either do (prohibit fragmentation, even local one), want (do PMTU discovery, fragment locally when packet size is large), or don't (do not set DF flag).
  
* <code>[[netsh]] interface ipv4 show interfaces</code>
+
<code>[[netsh]] interface ipv4 show interfaces</code>
  
 
== Related terms ==
 
== Related terms ==
Line 18: Line 24:
 
* debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
 
* debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
 
* [[Path MTU Discovery (PMTUD)]]
 
* [[Path MTU Discovery (PMTUD)]]
* [[sysctl]]: <code>net.ipv4.tcp_mtu_probing</code>
+
* [[sysctl]]: <code>[[net.ipv4]].tcp_mtu_probing</code>
 
* [[WireGuard]]: https://wiki.archlinux.org/index.php/WireGuard#Low_MTU
 
* [[WireGuard]]: https://wiki.archlinux.org/index.php/WireGuard#Low_MTU
 +
* <code>[[iperf]]: -M, --mss</code>
 +
* <code>[[tun-mtu]]</code> in <code>[[/etc/openvpn/server.conf]]</code>
 +
* [[kubernetes.io/rule/nlb/mtu]]
  
 
== See also ==
 
== See also ==

Latest revision as of 14:25, 26 October 2023

wikipedia:Maximum transmission unit (MTU)


Change configuration on Linux:

ip link set dev eth0 mtu 9000 (Jumbo frames)

ifconfig -a | grep mtu

ifconfig -a | grep mtu
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001

ping -M do -s 9000 <some_ip_address>

Select Path MTU Discovery strategy. hint may be either do (prohibit fragmentation, even local one), want (do PMTU discovery, fragment locally when packet size is large), or don't (do not set DF flag).

netsh interface ipv4 show interfaces

Related terms[edit]

See also[edit]

Advertising: