1. Installing NS 2 by Teerawat Issariyakul http://www.ns2ultimate.com March 2010 (last updated September 2010) http://www.ns2ultimate.com
2.
3.
4.
5.
6. Installing Cygwin 1.7.1 1. Go to cygwin.com click here to get file “ setup.exe” 2. Run the file “setup.exe” http://www.ns2ultimate.com
7. Installing Cygwin 1.7.1 2. Run the file “setup.exe” Keep hitting next and provide directory information http://www.ns2ultimate.com
8. Installing Cygwin 1.7.1 3. When you hit this page, choose the required (e.g., gcc4 ) and optional packages Search the package name here Expand package category by clicking ‘+’ Click here to install all the optional package When you are done, hit ‘next’ http://www.ns2ultimate.com
9.
10. Installing NS2 8. When done, call »cd ns-allinone-2.35-RC3 »./install 9. When the installation completes adds the followings into the file “.bashrc” located in your home directory NSHOME=~/ns-allinone-2.35-RC3 OTCL_LIB=${NSHOME}/otcl-1.14 NS2_LIB=${NSHOME}/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB export TCL_LIBRARY=${NSHOME}/tcl8.5.8/library PATH=$PATH:${NSHOME}/ns-2.35:${NSHOME}/nam-1.15 Note: Look carefully at the directory you might have to change something http://www.ns2ultimate.com
11.
12. Verifying the Installation 2. Now type ns An NS command prompt % should appear on the screen, and you are done! http://www.ns2ultimate.com
13.
14.
15. For more information about NS 2 Please see this book from Springer T. Issaraiyakul and E. Hossain, “Introduction to Network Simulator NS2”, Springer 2009 http://www.ns2ultimate.com