Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 612 Bytes

File metadata and controls

16 lines (10 loc) · 612 Bytes

Running NS3 Scripts-

Considering you have already installed ns3 in your system.

To run a program in NS3 you to need to go to the terminal.
Now go to the directory ehre ns3 is installed (it is generally extracted in home directory by the name of the downloaded tar file).

Example $ cd ns-allinone-3.28/ns-3.28

Now to run the program type

$./waf --run program-name

If you are writing code in (say)filename.cc, then you do not need to add extensions (.cc) with the file name while running the code.

To view the output in visualizer u can type

$./waf --run program-namae --vis