0% found this document useful (0 votes)
32 views18 pages

Ns Installation

The document provides instructions for installing the NS2 network simulation software on Windows using Cygwin. It recommends installing version 2.28 of NS2, as newer versions have bugs, especially for building on Windows. It describes how Cygwin provides a Linux-like environment needed to run NS2 on Windows, and warns against using newer versions of Cygwin due to potential unknown issues. The main steps outlined are to install Cygwin, extract NS2 within a directory without spaces in the path, and set environment variables to run NS2 simulations.

Uploaded by

Mohsen Za
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views18 pages

Ns Installation

The document provides instructions for installing the NS2 network simulation software on Windows using Cygwin. It recommends installing version 2.28 of NS2, as newer versions have bugs, especially for building on Windows. It describes how Cygwin provides a Linux-like environment needed to run NS2 on Windows, and warns against using newer versions of Cygwin due to potential unknown issues. The main steps outlined are to install Cygwin, extract NS2 within a directory without spaces in the path, and set environment variables to run NS2 simulations.

Uploaded by

Mohsen Za
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

NS2

Cygwin

:
)(
[email protected]

http://farzad-yazdi.do.am
[email protected]

NS2
2.28 NS2
) (Wireless ) (Wired .
.
) (bug ) (ns2notbuildingwithgcc/g++
Patch
) (http://www.isi.edu/nsnam/ns/nsproblems.html#ns2.29 .
2.8 )(
.
Ns2.27 VisualC++
.
NS2 ) FreeBSD, Linux, SunOS,
(Solaris -
) (Linuxlike . (GNU+Cygnus+Windows =) Cygwin
2001 RedHat .
: NS2 Cygwin
.

NS2
: ) (Space .

. ) (FarzadYazdi
. ) (User
) (ControlPanel ) (Login ) Simulation
(.... .

http://farzad-yazdi.do.am

[email protected]

cygwin.rar .
.

setup.exe .

Next
3

http://farzad-yazdi.do.am

[email protected]

Next .
cygwin . .
D D:\cygwin

http://farzad-yazdi.do.am

[email protected]

Next . cygwin . .
Browse ) setup.exe ( .
:
""ftp%3a%2f%2tp.nctu.edu.tw%2fWindows%2fcygwin
.

Next
:

http://farzad-yazdi.do.am

[email protected]

view ) Category (view Full.


:

http://farzad-yazdi.do.am

[email protected]

:
XFree86-base, XFree86-bin, XFree86-prog, XFree86-lib, XFree86-etc, make, patch, perl, gcc,
gcc-g++, gawk, gnuplot, tar . gzip

) ( )

(New )( ) (
. ) (
. Skip .
XFree86-bin :

http://farzad-yazdi.do.am

[email protected]

) (Skip :

http://farzad-yazdi.do.am

[email protected]

XFree86-base
. .
Next :

Finish . Installation
Complete OK.
cygwin.dat . Command
Prompt .

http://farzad-yazdi.do.am

[email protected]

home
) (Simulation )
(.
nsallinone2.28.rar nsallinone2.28 cygwin Home
) (Simulation :

10

http://farzad-yazdi.do.am

[email protected]

cd nsallinone2.28/ns2.28 :
" "/ ) !( .

:
./configure;makeclean;make

11

http://farzad-yazdi.do.am

[email protected]

Enter :

ns.exe nsallinone2.28/ns2.28 .
:
12

http://farzad-yazdi.do.am

[email protected]

ns.exe :
lsns.exe
: ls ) (list
:

13

http://farzad-yazdi.do.am

[email protected]

NS OTCL .tcl .
notepad tcl .
. :
C:\cygwin\home\Simulation\nsallinone2.28\ns2.28\nstutorial\examples
example2.tcl :
:
cdnstutorial/examples

14

http://farzad-yazdi.do.am

[email protected]


startxwin.bat :

15

http://farzad-yazdi.do.am

[email protected]

nam.exe ns.exe
C:\cygwin\home\Simulation\nsallinone2.28\ns2.28\nstutorial\examples
.
C:\cygwin\home\Simulation\nsallinone2.28\ns2.28 ns.exe :1
C:\cygwin\home\Simulation\nsallinone2.28\nam1.11 nam.exe :2
. ns
ns .tcl
: example2.tcl
nsexample2.tcl

http://farzad-yazdi.do.am

[email protected]

16

http://farzad-yazdi.do.am

[email protected]

17

http://farzad-yazdi.do.am

[email protected]

18

You might also like