Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set the Maximum Transmission Unit (MTU) value in the workstat

Status
Not open for further replies.

nocum

Technical User
May 23, 2002
21
US
Why:
The proliferation of high speed broadband (DSL, Cable, and Partial T1) connections has led to the replacement of dialup connections for Internet and VPN clients. These connections normally require the use of a network card on a Windows OS system employing the TCP/IP protocol. The default MTU in Windows is 1500 when speeds are over 128kbps (kilobits) where the MTU for dialup is 576 (re: below 128kbps). It is remotely possible your MTU will be forced to 576 by a router somewhere between your connection and your desired destination.

The whole concept behind broadband is speed, therefore anything that reduces speed is bad, well not acceptable. When your PC routes a packet larger than the MTU of your broadband provider and any router between, it is fragmented into two, and possibly more packets. This reduces speed and can play havoc with VPN connections – no connects, drops, etc. Determining and adjusting the MTU on your PC can provide you with the speed that you are paying for while eliminating a common problem with VPN connectivity and stability.

There are “tweaking” software packages out there that profess to do it all for you. I cannot attest to their effectiveness and accuracy.

OS Covered:
Windows 95/98
Windows NT
Windows 2000

Prerequisites:
You must have determined the optimum MTU for your connection (connections if you are using a VPN) before applying the procedures in the document. See the document “How do I determine the maximum packet size for DSL and Cable modem Internet Connection (critical for VPN host & clients)?” for instructions on how to do this.

Details:
You will have to set it manually by adding the proper registry entry and with the tested MaxMTU value into the client system only.

Preparation:
-Windows 95/98-
Close all applications. Click on Start > Run > type in
"winipcfg" > click the Ok button. In the window that appears is the current IP address assigned to the selected device. If it says PPP Adapter, you must click on the down arrow to the right and select the Ethernet Adapter. Write down the IP address that appears. Write it down.

-Windows NT/2000-
Close all programs. Click on Start > Run > type in "cmd" >
click the Ok button. In the command prompt window that appears type in "ipconfig /all" and press the ENTER key. Scroll up and down to find the IP address assigned to your network card(s). Write it down.

Edit the Registry:

-WARNING-WARNING-WARNING-WARNING-WARNING-WARNING-WARNING-
Making incorrect changes to the System Registry may cause your system to not operate properly. I strongly recommend someone familiar with the Microsoft System Registry make these changes. I highly recommend backing up your system registry before making manual changes to it for this or any change. If you don't know how to start editing the registry, then you shouldn't be attempting this (or have your resume ready to mail out).

---Windows 95/98---
Click on Edit > Find and enter "MaxMTU" (make sure you examine all registry entries). In most instances it will not be found, so navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Class\NetTrans\000x(identifiable by the IP address written down earlier)

Right click on the right side of the screen in the blank area and click on Add > STRING Value> enter MaxMTU > Ok. Right click on the MaxMTU and click on Modify. Enter the value determined using the ping command earlier > Ok. You should see something like MaxMTU="####" (STRING Value (Reg_SZ)). Click on Registry then Exit to close and save the registry. Reboot this system
properly.

---Windows NT---
Click on Edit > Find and enter "MTU" (make sure you examine all registry entries). In most instances it will not be found, so navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Ethernet-adapter name>\Parameters\Tcpip\
(identifiable by the IP address written down earlier)

Once you have found the proper registry entry, right click on the right-hand side of the screen in the blank space > New > DWORD Value > type &quot;MTU&quot; > Ok. Right click on &quot;MTU&quot; > Modify > Decimal > the value determined using the ping command earlier > Ok. You should see something like MTU=#### (Reg_DWORD). Click on Registry then Exit to close and save the registry. Reboot this system properly.

---Windows 2000---
Click on Edit > Find and enter &quot;MTU&quot; (make sure you examine all registry entries). In most instances it will not be found, so navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\\ (identifiable by the IP address written down earlier)

Once you have found the proper registry entry, right click on the right-hand side of the screen in the blank space > New > DWORD Value > type &quot;MTU&quot; > Ok. Right click on &quot;MTU&quot; > Modify > Decimal > the value determined using the ping command earlier > Ok. You should see something like MTU=#### (Reg_DWORD). Click on Registry then Exit to close and save the registry. Reboot this system properly.

-Unix Family-
Perhaps a guru partial to Unix variants will write us all a how-to document similar to this one.

-Author’s Note-
This document represents a best effort on the part of the author to provide assistance in a “how-to” desert. It is submitted on the basis of “It worked for me.” It may not work for the reader. Use these guidelines at your own risk. If you are not technically adept, then you are advised to seek professional technical assistance.
&quot;Whether you believe you can or you believe you cannot, either way you are right.&quot; Henry Ford
 
Starting with MacOS 7.5.3, in 1994, Macintosh's have used OpenTransport (the previous MacTCP was hard coded at 576 MTU) While OpenTransport dynamically resizes the MTU based on MTU Path Discovery from the intermediate routers you CAN turn this feature off and make your packets fixed size, should your network contain old routers who can't send the ICMP error 'can't fragment'. Look for the Optional Control Panel in TCP extras folder. I tried to remain child-like, all I acheived was childish.
 
I did not read the entire thread, however if you need to test the MTU on your pc go to and do a tweak test on your pc. “Reserve your right to think, for even to think wrongly is better than not to think at all”

Fisher CCNA,(CCNP-Routing)
UOP Student BSIT
[americanflag]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top