Jump to content

How to change RWIN and MTU?


dagwoood
 Share

Recommended Posts

MTU use this command as root:

ifconfig ETH MTU SIZE

Replace ETH with your ethernet device (probably eth0)

Replace SIZE with the MTU size.

For your RWIN, execute these commands, or save them as a script and execute it as root:

echo 1 > /proc/sys/net/ipv4/tcp_timestamps
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling
echo 1 > /proc/sys/net/ipv4/tcp_sack

This simply optimizes it, it does not specifically set it. I'm not sure how to do that, and Google isn't giving any relevant results for your distro of choice. Note: This will reset on reboot. In order for this to become permanent, you need to put those three commands in your system initialization scripts (the scripts that run on startup - again, no idea...)

You might try

man ifconfig

to see if it includes an ability to change RWIN...

Hope this helps :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy