Underestimate the MTU value

Source: Internet
Author: User

Objective

Modifying the MTU value (that is, the maximum number of transmit bytes for a packet) may not be significant to the personal Internet user, after all, we do not have so much traffic. However, for the server is very unusual, the other side of this is to show your network expertise, on the other hand, improve network performance, so it is a small skill worth mastering. The following respectively describes the Windows and Linux MTU value modification method, the method may be single, the meaning of this article is to guide, network is a process of exploration!


One, Windows MTU

1, detection of the maximum MTU value of the gateway (using the replacement method):

Ping-l 1500-f 192.168.111.254

"-F means no unpacking"


2. Check the MTU value of each interface of the machine:

netsh interface ipv4 show subinterfaces


3. Set the MTU value of "Local Area Connection" to 1472:

netsh interface ipv4 set subinterface "Local Area Connection" mtu=1472


Second, the Linux MTU

1. Check the MTU value of the eth0:

Cat/sys/class/net/eth0/mtu

Description:/sys/class/net/eth0 also contains settings for other parameters, please know for yourself.


2. Change the MTU value of eth0 to 1472:

#echo "1472" >/sys/class/net/eth0/mtu


I am a novice, keen on network technology and Linux learning, have like-minded friends, I am glad to welcome to the Penguin Group "Computer Dream Factory."


This article is from the "Edge" blog, so be sure to keep this source http://jsjmgc.blog.51cto.com/4896296/1691724

Underestimate the MTU value

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.