Archive for March, 2010

How to adjust the maximum transmission unit (MTU) size in linux

.
hi again
adjusting the MTU for you NIC is a rare action you will need in setting up your servers ! but i decided to write it and ask you to remember that when ever your network goes for while. especially when your OS has directly connected to the Cisco Devices (eg firewalls!). check that the fragmentation is the reason or not.

mostly the MTU size , will set  40 byte . but if you dont have any idea about the mtu size dont worry still there is way for you because the iptables can adjust it for you.
just type

iptables -t mangle -A POSTROUTING -p tcp –tcp-flags SYN,RST SYN -o eth0 -j TCPMSS –clamp-mss-to-pmtu

which means MSS (Maximum Segment Size) will be set 40 bytes.

but if you have not any firewall and your server directly connected to you router or wan NICs i recommend you to recover your probable network inactivity set the MTU as 1460 ;)

iptables -t mangle -A POSTROUTING -p tcp –tcp-flags SYN,RST SYN -o eth0 -j TCPMSS –set-mss 1460

hummm. its not simple to say what exactly the MTU and MSS and it needs you have detailed knowledge about the OSI layer and its rules.

and in last the MSS size only need to be adjust for SYN packets and after that the host mostly adjusts themselves.

anyway if you have a problem just let me know :)

regards


How to find The Windows Server Uptime

.

Hi again

After surfing many websites i found that the best and easiest way is downloading the uptime.exe file from Microsoft website and run it in the Command Environment of windows.

its support all the windows version from NT4 SP4.

The download links are :

Download Intel (x86) Version  

 (http://download.microsoft.com/download/winntsrv40/install/uptime_1.01/nt4/en-us/uptime.exe)

Download Alpha Version 
 
 (http://download.microsoft.com/download/winntsrv40/install/uptime_1.01/alpha/en-us/uptime.exe)

references : http://support.microsoft.com/kb/232243

Regards


     Copyrighted Mehdi Behamin , All Rights Reserved
    
Blog has been visited 192119 times