In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to view mtu in linux", the content is easy to understand, clear, hope to help you solve your doubts, let the editor lead you to study and learn "how to view mtu in linux" this article.
Most network devices are 1500. If the MTU of the local machine is larger than the MTU of the gateway, the large packets will be taken apart and transmitted, which will produce a lot of packet fragments, increase the packet loss rate and slow down the network speed. If the local MTU is set to be smaller or the same as the gateway MTU, packet loss can be reduced.
Test (1472 + 8 (ICMP echo request and echo reply message format length) + 20 (IP header) = 1500)
$ping-c 2-M do-s 1472 192.168.0.6 output
The code is as follows:
PING 192.168.0.6 (192.168.0.6) 1472 (1500) bytes of data.
Bytes from 192.168.0.6: icmp_seq=1 ttl=127 time=1.06 ms
Bytes from 192.168.0.6: icmp_seq=2 ttl=127 time=1.06 ms
-192.168.0.6 ping statistics-
Packets transmitted, 2 received, 0 packet loss, time 1002ms
Rtt min/avg/max/mdev = 1.060max 1.062max 1.064amp 0.002 ms
Check the mtu of this computer
$netstat-I output
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
Eth0 1500 0 82879 000 69000 000 BMRU
Lo 16436 0 84 0 0 0 84 0 0 0 LRU
Set up
# set the mtu of this machine
Sudo ifconfig eth0 mtu 1472
# View the results of the settings
$netstat-I
The above is all the contents of the article "how to View mtu in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.