See the full video for detailed instructions
Extract it either in GUI or using command $] tar jxvf ns-allinone-3.32.tar.bz2 $] cd ns-allinone-3.32/ $] ./build.py --enable-examples --enable-tests The above command will take some time to install all the packages
You can see the output as shown below
![]() |
ns3 |
$] ./waf --run first
This is the example from the ns-3.32/examples/tutorial/first.cc file which will run directly using the above command
But python files have to be moved to scratch folder. Use the following command to move it to scratch folder
$] cp examples/tutorial/second.py scratch/
$] ./waf --pyrun scratch/second.py
The following figure shows the actual output.
0 comments:
Post a Comment