Ns Installation
Ns Installation
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
cygwin.rar .
.
setup.exe .
Next
3
http://farzad-yazdi.do.am
Next .
cygwin . .
D D:\cygwin
http://farzad-yazdi.do.am
Next . cygwin . .
Browse ) setup.exe ( .
:
""ftp%3a%2f%2tp.nctu.edu.tw%2fWindows%2fcygwin
.
Next
:
http://farzad-yazdi.do.am
http://farzad-yazdi.do.am
:
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
) (Skip :
http://farzad-yazdi.do.am
XFree86-base
. .
Next :
Finish . Installation
Complete OK.
cygwin.dat . Command
Prompt .
http://farzad-yazdi.do.am
home
) (Simulation )
(.
nsallinone2.28.rar nsallinone2.28 cygwin Home
) (Simulation :
10
http://farzad-yazdi.do.am
cd nsallinone2.28/ns2.28 :
" "/ ) !( .
:
./configure;makeclean;make
11
http://farzad-yazdi.do.am
Enter :
ns.exe nsallinone2.28/ns2.28 .
:
12
http://farzad-yazdi.do.am
ns.exe :
lsns.exe
: ls ) (list
:
13
http://farzad-yazdi.do.am
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
startxwin.bat :
15
http://farzad-yazdi.do.am
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
16
http://farzad-yazdi.do.am
17
http://farzad-yazdi.do.am
18